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
pythonX.X manage.py dumpdata -e contenttypes > app/dumps/… |
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
cat /dev/null > file.txt |
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
ps aux | grep gunicorn | |
kill -9 PID |
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 stash | |
git stash list | |
git stash apply | |
git stash apply stash@{2} | |
git stash clear | |
// http://git-scm.com/book/en/Git-Tools-Stashing |
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 submodule add [repo.git] [repo] | |
(git submodule init) | |
git submodule update | |
cat .gitmodules | |
// http://git-scm.com/book/en/Git-Tools-Submodules |
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
;( function( $, window, undefined ) { | |
var $body; | |
$( function() { | |
$body = $( "body" ); | |
} | |
})( jQuery, window ); |
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
#!/usr/bin/python | |
import sys | |
def main(argv): | |
print("main") | |
if __name__ == "__main__": | |
main(sys.argv[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
\list # lists all databases | |
create database database_name; # create a database | |
DROP DATABASE database_name; # drop database | |
\c db_name # connect to a certain database | |
\dt # lists all tables in the current database | |
\d table_name # view table | |
DROP TABLE table_name; # drop table | |
\q # exit |
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
1. "pea" +1.716lb | |
2. "onion" +1.681lb | |
3. "grape" +0.685lb | |
4. "tomato" +0.372lb | |
5. "champagne" +0.104lb | |
6. "arugula" +0.093lb | |
7. "chicken" +0.092lb | |
8. "ricotta" +0.089lb | |
9. "cannoli" +0.086lb | |
10. "pancetta" +0.074lb |
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
/*global window, jQuery */ | |
( function( $, window, undefined ) { | |
/** | |
* --------------------------------- VARS --------------------------------- | |
*/ | |
var module, | |
DEFAULTS = { |