These are stupid things I can never remember:
How to show hidden ('.') files in MacOS:
- Command + Shift + .
| #!/usr/bin/env python2 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| USAGE: | |
| morphagene_ableton.py -w <inputwavfile> -l <inputlabels> -o <outputfile>' | |
| Instructions in Ableton: | |
| Insert locators as splice markers in your project (Create > Add Locator) | |
| Export Audio/Video with | |
| Sample Rate: 48000 Hz |
These are stupid things I can never remember:
How to show hidden ('.') files in MacOS:
| #!/usr/bin/env ruby | |
| # Implement CIS Benchmarks for AWS Section 3.x | |
| # Details on each benchmark from https://benchmarks.cisecurity.org/downloads/show-single/?file=awsfoundations.100 | |
| # name should be in camelcase since we'll use it for filter and alarm names | |
| filters = [ | |
| { | |
| benchmark: '3.1', |
| /var/log/mongod/*.log | |
| { | |
| missingok | |
| sharedscripts | |
| postrotate | |
| /bin/kill -SIGUSR1 $(cat /var/run/mongodb/mongod.pid 2> /dev/null) 2> /dev/null || true | |
| endscript | |
| } |
| """ | |
| Singleton class encapsulating a psycopg2 connection. | |
| """ | |
| import psycopg2 | |
| from psycopg2.extras import DictCursor | |
| psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) | |
| psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY) | |
| class DB(object): |
| ### Keybase proof | |
| I hereby claim: | |
| * I am skeeved on github. | |
| * I am alanier (https://keybase.io/alanier) on keybase. | |
| * I have a public key whose fingerprint is F676 2CE6 668B DC5C C8E4 CA51 F255 3CB7 B8FF 0F4C | |
| To claim this, I am signing this object: |