This file contains 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
touch index.php; echo 'php_flag engine off' > .htaccess; git init; heroku create -s cedar; git add -A && git commit -m "initial"; git push heroku master; |
This file contains 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
... | |
STATIC_PATH=str(os.environ.get("STATIC_PATH")) | |
@app.route(STATIC_PATH, build_only=True) | |
def static_path(): | |
pass | |
... |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "precise64" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" |
This file contains 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
$ git clone git://github.com/lunixbochs/sublimelint.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/sublimelint/ |
This file contains 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
<!-- | |
Google Weather API Conditions. Compiled by Dennis Delimarsky | |
--> | |
<!-- Last updated: March 12, 2010 --> | |
<conditions> | |
<type>PARTLY SUNNY</type> | |
<type>SCATTERED THUNDERSTORMS</type> | |
<type>SHOWERS</type> | |
<type>SCATTERED SHOWERS</type> | |
<type>RAIN AND SNOW</type> |
This file contains 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
#!bash | |
# | |
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# |
This file contains 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
# Example: http://s.jack.ly/iXhJ | |
prompt() { | |
PS1="${GREEN}\W\$(parse_git_branch) $BROWN\$(parse_vm_state) ${GREEN}→ ${GREY}" | |
PS2="\[[33;1m\]continue \[[0m[1m\]> " | |
} | |
parse_git_branch() { |
This file contains 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 bash | |
# Run as root (sorry mom) like this: curl http://gist/test.sh | sed 's/defaulthost/pablo/g' | sudo sh | |
# This basically turns on ssh and sets a new hostname. | |
scutil --set HostName defaulthost | |
echo "Succesfully changed hostname to `hostname`" | |
echo "Enabling SSH access.." | |
systemsetup -setremotelogin on |
This file contains 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 | |
# Converts a directory of .flac files to the proprietary and lossy | |
# .mp3 format, retaining meta data. | |
# | |
# Note: Requires ffmpeg (brew/apt-get install ffmpeg) | |
# | |
# Use: | |
# | |
# flactomp3 DIRECTORY |
This file contains 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 | |
# cp host /usr/local/bin/ | |
# I only use host for checking records, and 9 times out of 10 | |
# I copy paste the url from my browser. Chrome adds http[s]:// | |
if [ -n "$1" ] | |
then | |
# 1 parameter, let's do this thing | |
/usr/bin/host ${1#*//} |
OlderNewer