#HOW-TO: Virtualize Raspian with Qemu
0.Workspace
mkdir -p ~/workspace/raspdev
cd ~/workspace/raspdev
1.Install Qemu
#HOW-TO: Virtualize Raspian with Qemu
0.Workspace
mkdir -p ~/workspace/raspdev
cd ~/workspace/raspdev
1.Install Qemu
| imap jj <esc> |
| https://superuser.com/questions/1027957/zsh-change-prompt-just-before-command-is-run | |
| https://gist.github.com/PaulCapestany/4736311#file-oh-my-zsh-prompt |
| $ \curl -sSL https://get.rvm.io | bash | |
| $ source /home/<user>/.rvm/scripts/rvm | |
| $ rvm -v | |
| $ rvm install ruby | |
| $ ruby -v | |
| $ sudo apt-get install rubygems | |
| $ gem update | |
| $ sudo apt-get install ruby-dev zlib1g-dev liblzma-dev build-essential patch |
| print("ββββββββββββββββββββββββββββ") | |
| print("ββββββββββββββββββββββββββββ") | |
| print("ββββββββββββββββββββββββββββ") | |
| print("ββββββββββββββββββββββββββββ") | |
| print("ββββββββββββββββββββββββββββ") | |
| print("ββββββββββββββββββββββββββββ") | |
| print("ββββββββββββββββββββββββββββββββ") | |
| print("ββββββββββββββββββββββββββββββββ") | |
| print("βββββββββββββββββββββββββββββββββ") | |
| print("ββββββββββββββββββββββββββββββββββ") |
| #!/bin/ksh | |
| typeset port=$((RANDOM % 60000)) | |
| while ((port < 30000)); do | |
| port=$((RANDOM % 60000)) | |
| done | |
| typeset pipe=`mktemp -u` | |
| mkfifo $pipe | |
| trap "rm -f $pipe" INT |
| function string.fromhex(str) | |
| return (str:gsub('..', function (cc) | |
| return string.char(tonumber(cc, 16)) | |
| end)) | |
| end | |
| function string.tohex(str) | |
| return (str:gsub('.', function (c) | |
| return string.format('%02X', string.byte(c)) | |
| end)) |
| http://stackoverflow.com/questions/2016404/git-status-shows-modifications-git-checkout-file-doesnt-remove-them |
$ find /etc/ -name passwd
find: /etc//cups/certs: Permission denied ->stderr(2)
/etc//pam.d/passwd ->stdout(1)
/etc//passwd
#Redirect stdout
| /** | |
| * Definition for singly-linked list. | |
| * struct ListNode { | |
| * int val; | |
| * struct ListNode *next; | |
| * }; | |
| */ | |
| struct TNode{ | |
| struct ListNode *node; |