Category : Mac OS

convert

April 24th, 2011 by Slavi | 0

convert – convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

ps

August 19th, 2010 by Slavi | 0

ps – reports a snapshot of the current processes. ps displays information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, use top(1) instead. This version of ps accepts several kinds of options: 1   UNIX options, which may be grouped and must be preceded [...]

vnc

January 22nd, 2010 by Slavi | 0

How to Start Vine Server (OSXvnc) on 5901 port with no authentication on a different port [code language="bash"] Server:~ Slavi$ /Applications/Vine Server.app/OSXvnc-server  -rfbnoauth -rfbport 5901 [/code] This is usually considered insecure however I am using this configuration in conjunction with ssh to connect to the LAN network first! I also start the vnc server when [...]

split – split a file into pieces

November 30th, 2009 by Slavi | 0

split – split a file into pieces

How to use tracd from the command line

October 21st, 2009 by Slavi | 0

trac can be found at http://trac.edgewall.org/ [code language="bash"] tracd --port 8000 /var/trac_project_env tracd --port 8000 --auth=Product1,/var/trac_project_env/conf/trac.htpasswd,CompanyName /var/trac_project_env tracd --port 8000 --basic-auth="*",/var/trac_project_env/conf/trac.standalone.htpasswd,CompanyName /var/trac_project_env [/code] [code language="bash"] tracd --help Usage: tracd [options] [projenv] ... Options: --version             show program's version number and exit -h, --help            show this help message and exit -a DIGESTAUTH, --auth=DIGESTAUTH [projectdir],[htdigest_file],[realm] --basic-auth=BASICAUTH [projectdir],[htpasswd_file],[realm] -p [...]

curl

October 16th, 2009 by Slavi | 0

[code language="php"] /usr/bin/curl https://secure.mydomain.com/cronjob.php 2>/dev/null >/dev/null [/code] if you forget to renew your certificate your cron job may stop working so you may want to use this syntax instead [code language="php"] /usr/bin/curl --insecure https://secure.mydomain.com/cronjob.php 2>/dev/null >/dev/null [/code]

bashrc

August 25th, 2009 by Slavi | 0

Useful bashrc aliases edit your ~/.bashrc file by using VI vi ~/.bashrc alias l=”ls -la” alias st=’svn st’ alias di=’svn di’ alias di=’svn diff –diff-cmd diff -x -uw’ # ignore whitespaces alias ci=’svn ci’ alias up=”svn up” alias rs=”rsync –verbose –stats –recursive –times –perms –links –delete –exclude ‘*bak’ –exclude ‘*~’  –exclude ‘._*’ $1 $2″ EDITOR=vi [...]

wget

May 14th, 2009 by Slavi | 0

How to download a site using wget [code language="bash"] wget --mirror --convert-links --backup-converted --html-extension -o domain.log http://domain.com/ [/code] Download the file in background. [code language="bash"] wget -bd http://domain.com/file.zip -o file-download.log [/code]   Will download all the links from the list.txt file and pretending that it’s Firefox. wget –continue –verbose –input-file=”list.txt” –output-file=”list.log” –user-agent=”Mozilla/5.0 (Windows NT 6.1; [...]

VBoxManage

April 16th, 2009 by Slavi | 0

VirtualBox command line usage [code language="bash"] VBoxManage [-v|-version] print version number and exit VBoxManage -nologo ... suppress the logo VBoxManage -convertSettings ... allow to auto-convert settings files VBoxManage -convertSettingsBackup ... allow to auto-convert settings files but create backup copies before VBoxManage -convertSettingsIgnore ... allow to auto-convert settings files but don't explicitly save the results VBoxManage [...]

tar

April 14th, 2009 by Slavi | 0

Create a tar file and verify the tar archive [code language="bash"] tar -cvWf domain.com.tar /var/www/vhosts/domain.com [/code] Related http://www.cyberciti.biz/faq/unix-verify-tape-backup/