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
| coverage: checkvenv | |
| coverage run manage.py test django_project ; coverage html | |
| checkvenv: | |
| @[ -z "$(VIRTUAL_ENV)" ] && (echo "Not in virtualenv"; false) || true |
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
| mysqladmin ext | grep -e 'Com_\(update\|select\|insert\|delete\)\|Created' |
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/bash | |
| while true | |
| do | |
| inotifywait responsive.less less/*.less | |
| lessc responsive.less >responsive.css | |
| done |
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
| from contextlib import closing | |
| import urllib2 | |
| import html5lib | |
| import sys | |
| f = urllib2.urlopen(sys.argv[1]) | |
| data = f.read() | |
| f.close() | |
| parser = html5lib.HTMLParser() | |
| dociument = parser.parse(data) |
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
| self.assertTrue(expected_location in response['Location']) |
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 | |
| # Put in .git/hooks/post-checkout | |
| # Makes doing timesheets a little easier. :-) | |
| # --- Command line | |
| oldrev="$1" | |
| newrev="$2" | |
| changed_branch="$3" | |
| if [ $changed_branch -eq "1" ] | |
| then |
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
| tshark -f "tcp port 80 and host <ip address>" -R http |
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
| <?php | |
| // The class you want to use | |
| use JpnForPhp\Analyzer\Analyzer; | |
| /** | |
| * Implements hook_libraries_info(). | |
| * | |
| * For defining external libraries. | |
| */ |
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
| ab vdd print "<pre>"; var_dump($x); die(); | |
| ab eln echo __FILE__.':'.__LINE__."\n"; | |
| set tabstop=2 | |
| set softtabstop=2 | |
| set shiftwidth=2 | |
| set expandtab | |
| vmap <C-c> "+yi | |
| vmap <C-x> "+c | |
| vmap <C-v> c<ESC>"+p | |
| imap <C-v> <C-r><C-o>+ |
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
| {"version":1,"resource":"file:///home/toby/Projects/polychrome/users/admin.py","entries":[{"id":"FgtH.py","timestamp":1655671850085}]} |
OlderNewer