2017年11月17日 星期五

Tanning snake skin

50% Alcohol
50% Glycerin

Tanning snake skin - YouTube
https://youtu.be/aJl_R8mN9DU

how to tan a snake skin with household items - YouTube
https://youtu.be/prDHA741uRU

HOW TO TAN A SNAKE SKIN!! - YouTube
https://youtu.be/T3vyjbM_4Cs

2017年11月7日 星期二

GIT/ERROR: fatal: malformed index info XXXX XXXXXX

 perl - git svn clone malformed index info error - Stack Overflow
https://stackoverflow.com/questions/32465621/git-svn-clone-malformed-index-info-error

perl -d /usr/lib/git-core/git-svn fetch
Enter the following into the debugger and press ENTER:
b /usr/share/perl5/Git/SVN/Fetcher.pm:368 $base==undef or $dup==undef
This basically adds a conditional breakpoint at the position where I get the signal 11.

Then enter c to continue the execution and press ENTER.
Neither "git svn gc" nor "git gc" works. Only inserting the breakpoint works. Running perl debugger without breakpoint also failed.

2017年9月3日 星期日

pelt skinning/fleshing/tanning

Everything You Were Afraid to Ask About Roadkill
http://news.nationalgeographic.com/2016/08/roadkill-animals-disposal-science-food/

Self Tanning

Tan Your Pelts With Nature's Tools: page 5
https://www.braintan.com/articles/furs/miller5.html

Everything You Need to Know About Tanning Animal Pelts.: 9 Steps
http://www.instructables.com/id/Everything-you-need-to-know-about-Tanning-animal-p/

Bark Tanning: Soaking
http://www.braintan.com/barktan/5soaking.htm

Curing Small Animal Pelts, Squirrels Rabbits Etc..: 6 Steps
http://www.instructables.com/id/Curing-Small-Animal-Pelts%2C-Squirrels-Rabbits-etc../

Tanning service in US

Moyle Mink & Tannery / Services
http://www.moytown.com/services.html

Rocky Mountain Tanners - RMT Home
http://www.rockymountaintanners.com/

Tanning
http://www.usafoxx.com/index.php?route=product/category&path=62



2017年8月5日 星期六

San Jose activity search


San Jose, CA - Official Website - Volunteer Opportunities
http://www.sanjoseca.gov/Index.aspx?NID=211

Creek Connections Action Group
http://www.cleanacreek.org/

Don Edwards San Francisco Bay National Wildlife Refuge - Alviso Events | Eventbrite
https://www.eventbrite.com/o/don-edwards-san-francisco-bay-national-wildlife-refuge-alviso-6363846263

San Francisco Bay Trail – A 500-Mile Trail Around the Bay
http://baytrail.org/

Story Night in San Francisco Downtown Hostel Tickets, Mon, Aug 28, 2017 at 6:30 PM | Eventbrite
https://www.eventbrite.com/e/story-night-in-san-francisco-downtown-hostel-tickets-31953351334?aff=es2


2017年7月25日 星期二

List Linux network interface driver in all the network namespaces

Linux: How to find the device driver used for a device? - Unix & Linux Stack Exchange
https://unix.stackexchange.com/questions/41817/linux-how-to-find-the-device-driver-used-for-a-device
networking - How do I find what kernel module is behind a network interface? - Ask Ubuntu
https://askubuntu.com/questions/216110/how-do-i-find-what-kernel-module-is-behind-a-network-interface

Improved driver finding and output format:

#!/bin/bash
for f in /sys/class/net/*; do
    dev=$(basename $f)
    driver=$(ethtool -i $dev 2>/dev/null | grep driver: | cut -c 9-)
    addr=$(cat $f/address)
    operstate=$(cat $f/operstate)
    printf "%020s [%017s]: %015s (%s)\n" "$dev" "$addr" "$driver" "$operstate"
done
 Save the above script as test.sh.

Enumerate all the interface in all the network namespaces
echo === NameSpace: Global ===
sh test.sh
for a in $(ip netns list | sed -e 's/(.*$//g') ; do
echo
echo === NameSpace: $a ===
    ip netns exec $a sh test.sh
done

2017年6月29日 星期四

主題 垃圾


公共電視 我們的島-漂流地圖
https://www.youtube.com/watch?v=e3vDzAr2hbk#action=share
http://ourisland.pts.org.tw/content/%E6%BC%82%E6%B5%81%E5%9C%B0%E5%9C%96-0#sthash.cBAykbIP.dpbs

一個垃圾的旅行 - 每日頭條
https://kknews.cc/travel/ae9enoj.html

乘著海漂垃圾去旅行——日本海洋廢棄物高峰會 | 荒野保護協會
https://www.sow.org.tw/blog/37/20161210/5122

「你知道為什麼日本會那麼乾淨嗎?」從設置垃圾桶反思的國際觀 | 楊宗翰/空屋筆記 | 換日線 Crossing
https://crossing.cw.com.tw/blogTopic.action?id=535&nid=7502

全球塑膠生產總量分析 揭83億噸的「重量級」傷害 | 台灣環境資訊協會-環境資訊中心
http://e-info.org.tw/node/206322

2017年4月23日 星期日

undefined reference to `rpl_malloc'


undefined reference to `rpl_malloc'
http://www.linuxquestions.org/questions/linux-software-2/undefined-reference-to-%60rpl_malloc%27-587256/

ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ./configure --with-gnu-ld


2017年3月27日 星期一

MaaS

https://docs.ubuntu.com/static/maas-1.9/orientation_architecture-diagram.png

https://github.com/opencord/maas/blob/master/API.md

Debugging ephemeral image
Troubleshooting | MAAS | MAAS documentation
https://docs.ubuntu.com/maas/2.1/en/troubleshoot-faq#debugging-ephemeral-image

MaaS images at
/var/lib/maas/boot-resources/*/*/*/*/*/*/root-image

Running JNLP on Ubuntu 16.04 Firefox

firefox - Why can't I run Java Web Start Applications? - Ask Ubuntu
http://askubuntu.com/questions/259819/why-cant-i-run-java-web-start-applications
sudo apt install icedtea-8-plugin

2017年3月13日 星期一

iPhone on Google Spreadsheets


Iphone users not able to edit google spreadsheets - Google Product Forums
https://productforums.google.com/forum/#!topic/docs/h3T-a8FVslE

add Googlesheets:// in front of the file name or full sheet URL to force it to open in App.

2017年2月28日 星期二

[node.js] phantomjs doesn't has arm64 support

not recognizing arm64. · Issue #579 · Medium/phantomjs
https://github.com/Medium/phantomjs/issues/579

Unexpected platform or architecture: linux/arm64
It seems there is no binary available for your platform/architecture
Try to install PhantomJS globally
Phantomjs doesn't has arm64 support. Need to rebuild it manually.

Build | PhantomJS
http://phantomjs.org/build.html

2017年2月3日 星期五

ssh port forward

Local Port Forward
(On MYPC) ssh -L A:B:X:Y HOST
On  MYPC, map A:B to access X:Y via HOST
A is usually 0.0.0.0, 127.0.0.1, or any existing IP on HOST

ssh -L 8080:localhost:80 prod -o GatewayPorts=yes
ssh -L 0.0.0.0:8080:localhost:80 prod

Remote Port Forward
(On MYPC) ssh -R A:B:X:Y HOST
On HOST, map A:B to access X:Y via MYPC
A is usually 0.0.0.0, 127.0.0.1, or any existing IP on MYPC



tunnel - Reverse port tunnelling - Ask Ubuntu
http://askubuntu.com/questions/50064/reverse-port-tunnelling

Why can I not connect to a reverse SSH tunnel port remotely, even with GatewayPorts enabled? - Super User
http://superuser.com/questions/767524/why-can-i-not-connect-to-a-reverse-ssh-tunnel-port-remotely-even-with-gatewaypo

networking - How does reverse SSH tunneling work? - Unix & Linux Stack Exchange
http://unix.stackexchange.com/questions/46235/how-does-reverse-ssh-tunneling-work

Setup local APT repo

How to create a local APT repository? - Ask Ubuntu
http://askubuntu.com/questions/170348/how-to-create-a-local-apt-repository


sudo apt-get install dpkg-dev
sudo mkdir -p /usr/local/mydebs
cd /usr/local/mydebs
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz


Add a line to /etc/apt/source.list, or source.list.d

deb [ trusted=yes ] file:/usr/local/mydebs ./
Adding the trusted=yes to avoid --force-yes.

2017年1月9日 星期一

gmail search


Selecting all inbox emails and removing a particular label if they have that label - Google Product Forums
https://productforums.google.com/forum/#!topic/gmail/wyS1AR6WT1E

in:inbox label:label-a

Finding Gmail Messages with No Label | Raised by TurtlesRaised By Turtles
http://raisedbyturtles.org/view-unlabeled-gmail
-has:userlabels -in:sent -in:chat -in:draft -in:inbox

2016年12月31日 星期六

juju

Juju | Cloud | Ubuntu
https://www.ubuntu.com/cloud/juju

Getting started with Juju | Documentation | Juju
https://jujucharms.com/docs/stable/getting-started

Charm hooks | Documentation | Juju
https://jujucharms.com/docs/stable/authors-charm-hooks

Dealing with errors encountered by charm hooks | Documentation | Juju
https://jujucharms.com/docs/devel/authors-hook-errors

Debugging Juju charm hooks | Documentation | Juju
https://jujucharms.com/docs/1.25/authors-hook-debug

Charm Tools | Documentation | Juju
https://jujucharms.com/docs/1.25/tools-charm-tools

juju debug-hooks _unit_ _hooks_
juju resolved _unit_

gradle

Installing Gradle - Gradle User Guide Version 3.2.1
https://docs.gradle.org/current/userguide/installation.html

Build Script Basics - Gradle User Guide Version 3.2.1
https://docs.gradle.org/current/userguide/tutorial_using_tasks.html

2016年12月27日 星期二

ansible

Installation — Ansible Documentation
http://docs.ansible.com/ansible/intro_installation.html#latest-releases-via-apt-ubuntu
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible

Getting Started — Ansible Documentation
http://docs.ansible.com/ansible/intro_getting_started.html
/etc/ansible/hosts

Intro to Playbooks — Ansible Documentation
http://docs.ansible.com/ansible/playbooks_intro.html

Playbook Roles and Include Statements — Ansible Documentation
http://docs.ansible.com/ansible/playbooks_roles.html



Tags — Ansible Documentation

http://docs.ansible.com/ansible/playbooks_tags.html

Playbook Debugger — Ansible Documentation
https://docs.ansible.com/ansible/playbooks_debugger.html

An Ansible Tutorial - Servers for Hackers
https://serversforhackers.com/an-ansible-tutorial


2016年12月24日 星期六

Linux Google Drive

sudo apt-get install golang git mercurial
go get -u github.com/odeke-em/drive/cmd/drive
drive init


drive list
drive pull
drive push

An Official Google Drive for Linux is Here, Sort Of — Maybe This Is All We’ll Ever Get
http://www.howtogeek.com/196635/an-official-google-drive-for-linux-is-here-sort-of-maybe-this-is-all-well-ever-get/

GitHub - odeke-em/drive: Google Drive client for the commandline
https://github.com/odeke-em/drive#requirements

GitHub - tools/godep: dependency tool for go
https://github.com/tools/godep

2016年11月16日 星期三

Setting PCIe MPS/MRRS with setpci

setpci(8): configure PCI devices - Linux man page
https://linux.die.net/man/8/setpci

PCI express maximal payload size: Finding it and its impact on bandwidth
http://billauer.co.il/blog/2011/05/pcie-pci-express-linux-max-payload-size-configuration-capabilities-tlp-lspci/

Intel Ethernet Drivers and Utilities / Mailing Lists
https://sourceforge.net/p/e1000/mailman/message/30249072/

Intel PCI Express base 1.0 spec.pdf
http://teacher.en.rmutt.ac.th/ktw/MicroProcessor/buses/Intel%20PCI%20Express%20base%201.0%20spec.pdf
p337, ch7.8.3. Device Capabilities Register (Offset 04)
p341, ch7.8.4. Device Control Register (Offset 08h)

dev=0002:01:02.2

setpci --dumpregs

setpci -v -s $dev CAP_EXP.l
#display the first 4-byte of CAP_EXP...
for a in $(lspci | cut -d' ' -f1 ); do echo $a ----; --;setpci -v -s $a CAP_EXP.l 2>&1 ; done | less

#Show Device Capabilities Register
setpci -v -s $dev CAP_EXP+4.l
#Show Device Control Register
setpci -v -s $dev CAP_EXP+8.l

#Set value to Device Control Register 
setpci -v -s $dev CAP_EXP+8.l=aabbccdd

2016年11月9日 星期三

btrfs


Installing btrfs as boot drive on Ubuntu 14.04 - James DiGioia
http://jamesdigioia.com/installing-btrfs-boot-drive-ubuntu-14-04/

btrfs - Community Help Wiki
https://help.ubuntu.com/community/btrfs#Converting_Ubuntu_12.10_ext4_root_filesystem

How to Create and Manage Btrfs Snapshots and Rollbacks on Linux (part 2) | Linux.com | The source for Linux information
https://www.linux.com/learn/how-create-and-manage-btrfs-snapshots-and-rollbacks-linux-part-2

How to Manage Btrfs Storage Pools, Subvolumes And Snapshots on Linux (part 1) | Linux.com | The source for Linux information
https://www.linux.com/learn/how-manage-btrfs-storage-pools-subvolumes-and-snapshots-linux-part-1