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 | |
host=$1 | |
pub_key=$2 | |
function help { | |
echo 'usage: ./bootstrap-devstack.sh host public_key' | |
echo ' example: ./bootstrap-devstack.sh 1.1.1.1 ~/.ssh/id_dsa.pub' | |
exit 1 | |
} |
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
from myapp.forms import MyForm | |
def my_view(request): | |
form = MyForm(request.POST or None) | |
if form.is_valid(): | |
name = form.cleaned_data['name'] | |
email = form.cleaned_data['email'] | |
# do something great with that data | |
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
# -*- coding: utf-8 -*- | |
""" | |
This test module will run setUp and tearDown only *once* for all test cases in this module. | |
This is very convenient for users who want to just test multiple urls whether they are reachable and respond with the correct http response code. | |
""" | |
import logging | |
log = logging.getLogger(__name__) | |
from os import path |
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
localbox:~% ssh my-linode-account "git init --bare /tmp/myrepo.git" | |
dstanek@my-linode-account's password: | |
Initialized empty Git repository in /tmp/myrepo.git/ | |
localbox:Projects/my_awesome_project% git push ssh://my-linode-account/tmp/myrepo.git master | |
dstanek@my-linode-account's password: | |
Counting objects: 162, done. | |
Compressing objects: 100% (161/161), done. | |
Writing objects: 100% (162/162), 39.62 KiB, done. | |
Total 162 (delta 78), reused 0 (delta 0) | |
To ssh://my-linode-account/tmp/myrepo.git |
NewerOlder