├── readme.md ├── Archs ├── ubuntu.txt └── mac.txt └── SCSM └── git_svn.txt /readme.md: -------------------------------------------------------------------------------- 1 | my notes. 2 | -------------------------------------------------------------------------------- /Archs/ubuntu.txt: -------------------------------------------------------------------------------- 1 | lshw : hardware lister 2 | -html output device tree as an HTML page 3 | -short output device tree showing HW paths 4 | -businfo output device list showing bus info (e.g. USB, IDE, etc.) 5 | -class class only show give class of HW, class from -businfo 6 | 7 | parted (the CLI brother of GParted) : a partition manipulation program 8 | check do a simple check on the filesystem 9 | 10 | print [dev|free|list, all|num] display partition table, avaiable 11 | devices, free space, all found 12 | partitions, or a particular partition 13 | 14 | cp [FROM-DEV] FROM-NUM TO-NUM copy FS to another partition 15 | 16 | select DEVICE 17 | set NUM FLAG STATE 18 | 19 | -------------------------------------------------------------------------------- /Archs/mac.txt: -------------------------------------------------------------------------------- 1 | Hold during startup 2 | ................................... 3 | C -- startup from bootable CD/USB/etc 4 | 5 | D -- hardware test/diagnostics 6 | Opt + D -- hardware test/diagnostics over internet 7 | 8 | Cmd + R -- Startup OSX Recovery 9 | Cmd + Opt + R -- Startup OSX Recovery over the Internet 10 | 11 | Cmd + S -- Startup in single-user mode 12 | 13 | T -- startup in target disk mode 14 | 15 | shift + Control + Eject -- lock desktop (snow leopard) 16 | shift + Command + Q -- to logout 17 | 18 | shift + Command + Delete -- to empty your trash, w/ prompt 19 | shift + Command + Option + Delete -- to empty your trash, w/o prompt 20 | 21 | Option + Command + W -- to close all the windows in an application 22 | Option + Command + D -- to show or hide the Dock 23 | 24 | Command + Shift + 3 -- capture the screen to a file 25 | Control + Command + Shift + 3 -- capture the screen to the clipboard 26 | 27 | Command + Shift + 4 -- capture a selection to a file 28 | Control + Command + Shift + 4 -- capture a selection to the clipboard 29 | 30 | Cmd+shift+G -- go to a particular folder 31 | 32 | Opt+Cmd+Esc -- choose an app to quick 33 | Opt+Shift+Cmd+Esc -- choose an app to quick 34 | 35 | 36 | Cmd+Opt+p+r -- resetting NVRAM 37 | step #1: shutdown 38 | step #2: turn on mac 39 | step #3: press Opt+Cmd+P+R when hear sounds 40 | step #4: hold these keys until the computer 41 | restarts and you hear the startup 42 | sound for a second time. 43 | 44 | 45 | Cmd+Opt+O+F -- resetting NVRAM using Open Firmware 46 | step #1: restart mac, at the same time 47 | hold down Opt+Cmd+O+F 48 | step #2: boot into ">" prompt 49 | step #3: type the following 3 lines 50 | (end the line with a 51 | a) reset-nvram 52 | b) set-defaults 53 | c) reset-all 54 | 55 | Ctrl+Cmd+Power button -- force mac to restart 56 | Ctrl+Cmd+eject -- quit all apps, then restart 57 | Ctrl+Opt+Cmd+(power or eject) -- quit all apps, then shutdown 58 | 59 | Ctrl+Shift+Power button -- put display to sleep 60 | 61 | -------------------------------------------------------------------------------- /SCSM/git_svn.txt: -------------------------------------------------------------------------------- 1 | 2 | from: http://git.or.cz/course/svn.html 3 | 4 | git svn 5 | --------------------------------------- ------------------------------------ 6 | git init svnadmin create repo 7 | git add . svn import file://repo 8 | git commit 9 | 10 | git clone http://url/pub/AliRoot svn co http://url/svn/AliRoot/trunk 11 | git clone http://url/pub/AliRoot svn co http://url/svn/AliRoot/tags/v5 12 | git checkout v5 13 | 14 | git diff svn diff | less 15 | git diff rev path svn diff -rrev path 16 | 17 | git apply patch -p0 18 | 19 | git status svn status 20 | git fetch 21 | git log 22 | git merge 23 | 24 | git checkout path svn revert path 25 | 26 | git add file svn add file 27 | git rm file svn rm file 28 | git mv file svn mv file 29 | 30 | git pull svn update 31 | git fetch && git merge 32 | 33 | git commit -a svn commit 34 | git commit -a -v 35 | git push 36 | 37 | git log svn log | less 38 | git blame file svn blame file 39 | 40 | git show rev:path/to/file svn cat url 41 | git show rev:path/to/directory svn list url 42 | git show rev svn log -rrev url 43 | svn diff -crev url 44 | 45 | git tag -a name svn copy http://url/svn/trunk 46 | http://url/svn/tags/name 47 | git tag -l svn list http://url/svn/tags/ 48 | git show tag svn log --limit 1 49 | http://url/svn/tags/tag 50 | 51 | git branch branch svn copy http://url/svn/trunk 52 | http://url/svn/branches/branch 53 | git checkout branch svn switch http://url/svn/branches/branch 54 | 55 | git branch svn listhttp://url/svn/branches 56 | 57 | git checkout rev svn update -r rev 58 | git checkout prevbranch svn update 59 | 60 | git merge branch svn merge -r 20:HEAD 61 | http://url.com/svn/branches/branch 62 | (assuming the branch was created 63 | in revision 20 and you are inside 64 | a working copy of trunk) 65 | 66 | git cherry-pick rev svn merge -c rev url 67 | 68 | git revert rev svn revert rev 69 | 70 | 71 | --------------------------------------------------------------------------------