mkdir -p ~/bin ~/lib/python2.6/site-packagesConfigure the environment by putting something like this in your
.bashrcand sourcing it:export CFLAGS=-I/usr/local/pgsql/include export LDFLAGS=-L/usr/local/pgsql/lib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Convert all Restructured Text files in all subfolders recursivley to HTML | |
| for i in $( find . -name '*.rst' ); do | |
| string=$i | |
| length=${#string} | |
| file=${string:2:$length-6} | |
| rst2html.py $file.rst $file.html | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set myFile to (choose file with prompt "Select a file to read:") | |
| open for access myFile | |
| set fileContents to read myFile using delimiter {linefeed} | |
| close access myFile | |
| tell application "Things" | |
| repeat with currentLine in reverse of fileContents | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| osascript -e 'tell application "Finder" to eject "Backup"' | |
| osascript -e 'tell application "Finder" to eject "Media"' | |
| osascript -e 'tell application "Finder" to eject "Daten"' | |
| osascript -e 'tell application "Finder" to delay 5' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| from __future__ import with_statement # needed for python 2.5 | |
| from fabric.api import * | |
| from fabric.contrib.console import confirm | |
| # ================================================================ | |
| # NOTE: | |
| # using this fabfile expects that you have the python utility | |
| # fabric installed locally, ssh access to reamea.com, and your | |
| # ssh public key associated with the account '[email protected]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <img src="http://dummyimage.com/${1:300}x${2:200}/${3:ddd}/${4:fff}${5:&text=${6:Image}}" width="${1:300}" height="${2:200}" alt="${6:Image}" />${0:$TM_SELECTED_TEXT} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http_path = "/" | |
| sass_dir = "src" | |
| css_dir = "css" | |
| images_dir = "css/img" | |
| javascripts_dir = "js" | |
| line_comments = false | |
| preferred_syntax = :sass | |
| output_style = :compact | |
| relative_assets = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ServerRoot "/home/user/webapps/django_project/apache2" | |
| LoadModule dir_module modules/mod_dir.so | |
| LoadModule env_module modules/mod_env.so | |
| LoadModule setenvif_module modules/mod_setenvif.so | |
| LoadModule log_config_module modules/mod_log_config.so | |
| LoadModule mime_module modules/mod_mime.so | |
| LoadModule rewrite_module modules/mod_rewrite.so | |
| LoadModule wsgi_module modules/mod_wsgi.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http_path = "/" | |
| css_dir = "css" | |
| sass_dir = "src" | |
| images_dir = "css/img" | |
| javascripts_dir = "js" | |
| output_style = :expanded # :nested, :expanded, :compact, :compressed | |
| line_comments = false | |
| relative_assets = true |