start new:
tmux
start new with session name:
tmux new -s myname
| function exportFileToPNG(dest, artBoardIndex) | |
| { | |
| var exportOptions = new ExportOptionsPNG24(); // or ExportOptionsPNG8 | |
| var type = ExportType.PNG24; // or ExportType.PNG8 | |
| var file = new File(dest + ".png"); | |
| exportOptions.artBoardClipping = true; | |
| exportOptions.antiAliasing = true; | |
| exportOptions.transparency = true; | |
| exportOptions.qualitySetting = 72; |
| #!/bin/bash | |
| repos=.git/config | |
| gito=`grep 'gitorious' .git/config` | |
| hub=`grep 'github' .git/config` | |
| if [ -n "$1" ] | |
| then | |
| if [ -n "$gito" ] | |
| then | |
| echo "Gitorius already mirrored." |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: btsync | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Should-Start: $network | |
| # Should-Stop: $network | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Multi-user daemonized version of btsync. |
| Edit mc’s ini file (either ~/.mc/ini or ~/.config/mc/ini) and look for the line [Colors]. Then, change the line base_color to this: | |
| [Colors] | |
| base_color=linux:normal=white,black:marked=yellow,black:input=,green:menu=black:menusel=white:menuhot=red,:menuhotsel=black,red:dfocus=white,black:dhotnormal=white,black:dhotfocus=white,black:executable=,black:directory=white,black:link=white,black:device=white,black:special=white,black:core=,black:stalelink=red,black:editnormal=white,black |
| div#ciccio{ | |
| background-image:url("http://i117.photobucket.com/albums/o60/alexrah/eBay/back.png"); | |
| } | |
| ul#gallery, ul#gallery li{ | |
| margin:0 auto; | |
| padding:0; | |
| list-style:none; | |
| } | |
| ul#gallery{ | |
| width:600px; |
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
| After upgrading to Mountain Lion : 10.8 I noticed that I was getting Python errors which prevented me from starting vim: | |
| Traceback (most recent call last): | |
| File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 565, in <module> | |
| File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 547, in main | |
| File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 278, in addusersitepackages | |
| File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 253, in getusersitepackages | |
| File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 243, in getuserbase | |
| File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 523, in get_config_var | |
| File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py", line 419, in get_config_vars |
| #!/bin/sh | |
| TMPFILE="/tmp/xtrabackup-runner.$$.tmp" | |
| USEROPTIONS="--user=${MYSQL_USER} --password=${MYSQL_PASSWORD} --host=${MYSQL_HOST}" | |
| BACKDIR=/srv/mysql-bak | |
| BASEBACKDIR=$BACKDIR/base | |
| INCRBACKDIR=$BACKDIR/incr | |
| FULLBACKUPCYCLE=604800 # Create a new full backup every X seconds | |
| KEEP=1 # Number of additional backups cycles a backup should kept for. | |
| START=`date +%s` |
| " from https://github.com/spf13/spf13-vim/blob/master/.vimrc | |
| if has('statusline') | |
| set laststatus=2 | |
| " Broken down into easily includeable segments | |
| set statusline=%<%f\ " Filename | |
| set statusline+=%w%h%m%r " Options | |
| set statusline+=%{fugitive#statusline()} " Git Hotness | |
| set statusline+=\ [%{&ff}/%Y] " filetype | |
| set statusline+=\ [%{getcwd()}] " current dir | |
| set statusline+=%#warningmsg# |