- Python 3
- Pip 3
$ brew install python3| #!/bin/bash | |
| sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
| sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
| # best practice: linux | |
| nano ~/.pgpass | |
| *:5432:*:username:password | |
| chmod 0600 ~/.pgpass | |
| # best practice: windows | |
| edit %APPDATA%\postgresql\pgpass.conf | |
| *:5432:*:username:password | |
| # linux |
| # From http://vanderwijk.info/blog/adding-css-classes-formfields-in-django-templates/#comment-1193609278 | |
| from django import template | |
| register = template.Library() | |
| @register.filter(name='add_attributes') | |
| def add_attributes(field, css): | |
| attrs = {} | |
| definition = css.split(',') |
| #!/bin/bash | |
| # Unload the keyboard so I can use my external keyboard | |
| # and not worry about accidentally pressing buttons on | |
| # the built-in. This may not be a problem for you but, you | |
| # should see my desk sometimes (Oh no!!) ;-) | |
| sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ |