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/bash | |
# Curl and run this script as part of your .travis.yml before_script section: | |
# before_script: | |
# - curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash | |
CONNECT_URL="http://saucelabs.com/downloads/Sauce-Connect-latest.zip" | |
CONNECT_DIR="/tmp/sauce-connect-$RANDOM" | |
CONNECT_DOWNLOAD="Sauce_Connect.zip" | |
READY_FILE="connect-ready-$RANDOM" |
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
- banal-signup (user management) | |
- banal-payments (cash money) | |
- banal-betalist (beta list hype tools) |
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
from django.db import models | |
from django.contrib.auth.models import User | |
class ProloggerUserManager(models.Manager): | |
def create_user(self, user): | |
pro = ProloggerUser(user = user) | |
pro.save() | |
class AchievementsManager(models.Manager): | |
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
#!/bin/bash | |
# This script can clean up files that were last accessed over 365 days ago. | |
USAGE="Usage: $0 dir1 dir2 dir3 ... dirN" | |
if [ "$#" == "0" ]; then | |
echo "$USAGE" | |
exit 1 | |
fi |
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
$ pip install -E django-mimo Django |
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
# activating newly create virtualenv | |
$ source django-mimo/bin/activate | |
# your prompt should change to something similar the following | |
(django-mimo)$ | |
# in order to get back to system all you need to do is | |
(django-mimo)$ deactivate | |
$ |
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
sudo easy_install -U pip |
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
$ sudo apt-get install python-setuptools python-dev build-essential |
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
$ virtualenv --no-site-packages django-mimo |
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
# creating requirements file from a virtualenv setup | |
$ pip freeze -E django-mimo > requirements.txt | |
# installing from a requirements file | |
$ pip install -E django-mimo -r requirements.txt |
OlderNewer