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
if [ -n "$1" ]; then | |
if [ $1 == "kill" ]; then | |
kill -9 `ps aux |grep projectname |grep celery |awk '{ print $2 }'` | |
elif [ $1 == "list" ]; then | |
ps aux |grep projectname |grep celery | |
elif [ $1 == "start" ]; then | |
cd projectname/ | |
source venv/bin/activate | |
source env.sh | |
celery -A projectname worker -l info |
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
# Append this code to ~/.bashrc | |
# colors! | |
green="\[\033[0;32m\]" | |
blue="\[\033[0;34m\]" | |
purple="\[\033[0;35m\]" | |
reset="\[\033[0m\]" | |
# Change command prompt | |
source ~/git-prompt.sh |
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
http://www.jdd.nu/data/files/dot.emacs |
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
du -BM --max-depth=1 $1 | sort -n -r |
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
var Project = {}; | |
var app = { | |
initialize: function() { | |
this.bindEvents(); | |
}, | |
bindEvents: function() { | |
document.addEventListener('deviceready', this.onDeviceReady, false); | |
}, |
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
var exapp = angular.module('exapp', | |
['ionic', | |
'ui.select2', | |
'exapp.controllers', | |
'exapp.services']); | |
exapp.run(function($ionicPlatform, $state, Notifications, geo) { | |
$ionicPlatform.ready(function() { | |
if (window.cordova && window.plugins.backgroundGeoLocation) { | |
geo(); |
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 yum install nginx htop git gcc | |
ssh-keygen | |
sudo yum install postgresql93 postgresql93-devel postgresql93-server python27-devel |
NewerOlder