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
git rm `git status | grep deleted | awk '{print $3}'` |
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
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch | |
echo ".DS_Store" >> .gitignore | |
git add .gitignore | |
git commit -m '.DS_Store banished!' |
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
make databse folder: | |
mkdir -p /data/db | |
run mongodb as Daemon: | |
mongod --fork --logpath /var/log/mongodb.log | |
information from: | |
http://docs.mongodb.org/manual/tutorial/manage-mongodb-processes/ |
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
git shortlog --numbered --summary |
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
<a href="#" style="pointer-events: none; cursor: default;">Vvwervwerqerqd</a> |
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/sh | |
DJANGO_SETTINGS_MODULE=mysettings | |
export DJANGO_SETTINGS_MODULE | |
PYTHONPATH=/path/to/python_libs:/path/to/my_django_apps | |
export PYTHONPATH | |
/path/to/python /path/to/my_django_script |
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
sudo apt-get install postgresql postgresql-clinet libpq-dev | |
pip install psycopg2 | |
su postgres | |
createdb [db] | |
psql | |
CREATE USER "" WITH PASSWORD ''; ( user use " password use ') | |
on settings.py | |
DATABASES = { |
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
sudo apt-get install samba | |
edit: /etc/samba/smb.conf | |
[mfs] | |
path = /home/someone | |
writable = yes | |
add user: | |
smbpasswd -a someone |
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
postactivate | |
+ | |
cd ~/dev/$env_name | |
+ | |
will be kool |
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
#start command, stores pid in a file in /tmp | |
sudo python manage.py run_gunicorn -p /tmp/gunicorn.pid -b 127.0.0.1:8000 --daemon | |
#save as ./start | |
#stop command | |
sudo kill `cat /tmp/gunicorn.pid` #note those aren't apostrophes, but the ~ key | |
#save as ./stop | |
#restart commad | |
sudo kill -HUP `cat /tmp/gunicorn.pid` |