Skip to content

Instantly share code, notes, and snippets.

@AmbivalentApe
AmbivalentApe / image_renamer.py
Last active August 29, 2015 14:27
For Marie
import exifread
import os
import sys
import re
dir_name = sys.argv[1]
print dir_name
regex = re.compile('[0-9]{8}\_[0-9]{6}\.')
DATE_TAG ='EXIF DateTimeOriginal'
EXTENSIONS=['jpg','jpeg']

Keybase proof

I hereby claim:

  • I am ambivalentape on github.
  • I am ambivalentape (https://keybase.io/ambivalentape) on keybase.
  • I have a public key whose fingerprint is 8084 6A3E 17C9 B868 AEE1 BC03 47FE 9C1C BB2A 83B2

To claim this, I am signing this object:

Verifying that +ambivalentape is my openname (Bitcoin username). https://onename.io/ambivalentape
Verifying that +ambivalentape is my openname (Bitcoin username). https://onename.io/ambivalentape
@AmbivalentApe
AmbivalentApe / gist:dece7b5f76cec4279647
Created June 7, 2014 09:19
Fixing 'You have not chosen to trust "<blah>" , the issuer of the server's security certificate." using citrix client on ubuntu derivatives.
1. Export certificate if you have it in your browser.
(settings -> HTTPS/SSL/Manage Certificates/find the one you want under authorities, export) in chromium.
2. Copy to /opt/Citrix/ICAClient/keystore/cacerts*
This is where it appears to be on all my mint boxes.
find / -iname 'cacerts' -type d I guess would do a similar job.
@AmbivalentApe
AmbivalentApe / psql.service
Created June 1, 2013 20:25
postgres sqld file.
[Unit]
Description=Start psql
[Service]
User=postgres
ExecStart=/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data
KillMode=Process
[Install]
WantedBy=multi-user.target