[CentralOH] 2014-06-13 道場 Scribbles 落書/惡文?
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Sat Jun 21 23:58:48 CEST 2014
immutability
hashing
http://pyvideo.org/video/542/pyohio-2011-names-objects-and-plummeting-from
https://mail.python.org/pipermail/centraloh/2013-June/001718.html
ick: variable width font shrinks indentation in plain text email:
# http://grokbase.com/t/python/centraloh/136a0mdf1r/2013-06-07-道場-scribbles-落書-惡文
Ubuntu 14.04 LTS had audio muted by default
alsamixer
ogg123 http://stream-dc1.radioparadise.com/rp_96m.ogg
https://duckduckgo.com/html/?q=pytest%20unittest%20brandon%20rhodes
https://pypi.python.org/pypi/
virtualenv is _highly_ recommended
sudo apt-get install virtualenv
mkdir foo
cd foo
virtualenv env
source env/bin/activate
pip install whatever
...
deactivate
https://mail.python.org/mailman/listinfo/centraloh
https://mail.python.org/pipermail/centraloh/2013-February/001551.html
python -m SimpleHTTPServer 8000
http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
http://xkcd.com/327/
http://xkcd.com/936/
student at dojo:~/bin$ ll vidf
-rwxr-x--- 1 student student 35 Jun 13 20:42 vidf
student at dojo:~/bin$ cat vidf
vim -O "$1" "$2" <(diff "$1" "$2")
student at dojo:~/bin$
git keeps coming up in discussion,
so a modified version of my summary for myself follows:
--------------------------------------------------------------------------------
Mad Man Muntz Version of how to use git
once per user:
git config --global user.name "John Doe"
git config --global user.email "john.doe at python.com"
git config --global core.autocrlf input
git config --global core.safecrlf false
once per repository:
mkdir foo
cd foo ;# Repository lives in a directory. Execute all git comamnds in same.
git init
once per version commit:
vi *
git add * ;# * is of files one wants to track in repository
git commit -m 'short explanation of this version'
git tag v1.n ;# optional "bookmark" that does not change like branches
list versions:
git log
git log --pretty-format
git log --all
git log --all --pretty-format
git log --all --pretty-format="%h %cd %ad %an %ac"
git log --pretty=oneline
git log --pretty=oneline --max-count=2
git log --pretty=oneline -2 ;# same as --max-count=2
git log --pretty=oneline --since='5 minutes ago'
git log --pretty=oneline --until='5 minutes ago'
git log --pretty=oneline --author='James Prior'
git log --all --pretty=format:"%h %cd %s (%an)" --since='7 days ago'
git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
git tag ;# list tags
get a version of code from repository:
git checkout master ;# by branch name
git checkout v1.n ;# by tag name
git checkout 3456514321 ;# hash from output of git log
git checkout -- . ;# maybe restore all files from repository
----
fatter version
in .git/config,
The following is correct, but will ask for password:
url = https://johndoe@bitbucket.org/flower/rose.git
The following is correct and will not ask for password:
url = ssh://git@bitbucket.org/flower/rose.git
wp:Madman Muntz
https://duckduckgo.com/html/?q=bob+pease+madman+muntz
More information about the CentralOH
mailing list