# sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
# pip install virtualenv virtualenv-clone virtualenvwrapper
# git clone https://github.com/yyuu/pyenv.git /opt/pyenv
# git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git /opt/pyenv/plugins/py-virtualenvwrapper
# cat << 'EOF' >> /etc/bash.bashrc
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
#tool "nuget:?package=NUnit.ConsoleRunner&version=3.10.0" | |
#tool "nuget:?package=NUnit.Extension.TeamCityEventListener&version=1.0.6" | |
#tool "nuget:?package=JetBrains.dotCover.CommandLineTools&version=2019.2.1" | |
#tool "nuget:?package=OctopusTools&version=6.12.0" | |
#addin "nuget:?package=Octopus.Client&version=7.0.4" | |
#addin "nuget:?package=Newtonsoft.Json&version=12.0.2" | |
#addin "nuget:?package=Cake.Json&version=4.0.0" | |
#addin "nuget:?package=Cake.Git&version=0.21.0" | |
#addin "nuget:?package=Cake.FileHelpers&version=3.2.1" | |
#addin "nuget:?package=Cake.Http&version=0.7.0" |
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 arrow | |
class Org(models.Model): | |
last_bill = models.DateTimeField(auto_now_add=True) | |
class User(models.Model): | |
org = models.ForeignKey('Org') | |
last_login = models.DateTimeField() # needs to be updated as part of login process |
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
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'handlers': { | |
'console': { | |
'class': 'logging.StreamHandler', | |
}, | |
}, | |
'loggers': { | |
'django': { |
I hereby claim:
- I am c17r on github.
- I am c17r (https://keybase.io/c17r) on keybase.
- I have a public key whose fingerprint is 183C B474 63CC 8BFB 8A0F 915E 1695 2530 1598 FA48
To claim this, I am signing this object:
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
mkdir $BRANCH | |
cd $BRANCH | |
git init | |
git remote add -t $BRANCH -f origin $REMOTE_REPO | |
git checkout $BRANCH |