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
import requests | |
class HoverException(Exception): | |
pass | |
class HoverAPI(object): | |
def __init__(self, username, password): | |
params = {"username": username, "password": password} | |
r = requests.post("https://www.hover.com/api/login", params=params) |
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
class wiki_role ( | |
likewiseconfig_options = { }, | |
sudoers_config = { }, | |
){ | |
class {'basenode' : } -> | |
anchor {'likewiseconfig::begin': } | |
create_resources(likewise::likewiseconfig, $likewiseconfig_options) | |
anchor {'likewiseconfig::end': } -> | |
anchor {'sudoersconfig::begin': } | |
create_resources(basenode::sudoers, $sudoers_config) |
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
# Download Sublime Text 2 from http://www.sublimetext.com/2 | |
# If you aren't root, sudo su | |
tar -xvjf Sublime\ Text\ 2*.tar.bz2 | |
mv Sublime\ Text\ 2/ /opt/sublime-text-2/ | |
ln -s /opt/sublime-text-2 /usr/local/sublime-text-2 | |
ln -s /usr/local/sublime-text-2/sublime_text /usr/local/bin/sublime_text | |
rm Sublime\ Text\ 2*.tar.bz2 | |
# Sublime Text 2 can now be run as normal user with command "sublime_text" |
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 | |
### BEGIN INIT INFO | |
# Provides: gunicorn | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the gunicorn server | |
# Description: starts gunicorn using start-stop-daemon |