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
<div class="gistLoad" data-id="3622487" id="gist-3622487">Loading...</div> |
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
# This is as close as | |
# you will get to a block | |
# commented Haiku. |
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
>>> import base36 | |
>>> print base36.encode(13368) | |
abc | |
>>> print base36.decode('abc') | |
13368 |
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
def slugify(s): | |
""" | |
Simplifies ugly strings into something URL-friendly. | |
>>> print slugify("[Some] _ Article's Title--") | |
some-articles-title | |
""" | |
# "[Some] _ Article's Title--" |
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
nmap <C-v> "+gP | |
imap <C-v> <ESC>"+gpi | |
vmap <C-v> c<ESC>"+gph | |
vmap <C-c> "+y |
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
Section "ServerLayout" | |
Identifier "Dual 1080p Portraits" | |
Screen 0 "Screen" 0 0 | |
InputDevice "Mouse" "CorePointer" | |
InputDevice "Keyboard" "CoreKeyboard" | |
EndSection | |
Section "Files" | |
ModulePath "/usr/lib/xorg/modules" | |
FontPath "/usr/share/fonts/X11/misc" |
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
[Configuration] | |
ColorCursor=#9393a1a1a1a1 | |
ColorForeground=#FDFDF6F6E3E3 | |
ColorPalette2=#dcdc32322f2f | |
ColorPalette3=#858599990000 | |
ColorPalette4=#b5b589890000 | |
ColorPalette5=#26268ae0d2d2 | |
ColorPalette6=#d3d336368282 | |
ColorPalette7=#29efa1479755 | |
ColorPalette8=#eeeee8e8d5d5 |
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
[ldap] | |
url = ldap://10.181.143.15 | |
user = CN=Administrator,CN=Users,DC=rcbops,DC=me | |
password = hzQpjSTaS5Fg | |
suffix = DC=rcbops,DC=me | |
use_dumb_member = True | |
dumb_member = CN=Administrator,CN=Users,DC=rcbops,DC=me | |
user_tree_dn = CN=Users,DC=rcbops,DC=me | |
user_objectclass = person | |
user_id_attribute = cn |
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 | |
find . -name "*.pyc" -delete |
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
POST /role_assignments | |
{"role_assignment": { | |
"user" { | |
"id": "1" | |
}, | |
"role": { | |
"id": "2" | |
}, | |
"scope": { |