Skip to content

Instantly share code, notes, and snippets.

@acnagy
acnagy / unsubscribe_clean-up.py
Last active May 2, 2018 12:09
reconcile email csv
# usage: python3 unsubscribe_clean-up.py emails-to-contact.csv unsubscribers.csv
import csv
import sys
email_file = sys.argv[1]
unsubscribe_file = sys.argv[2]
unsubscribes = []
with open(unsubscribe_file, "r") as unsubscribe:
@acnagy
acnagy / openssl-wget-12.04-workaround.yml
Last active October 11, 2018 18:05
Install current versions of `openssl` and `wget` on Ubuntu 12.04 Precise (tlsv1.2 workaround)
# the versions of openssl and wget available via apt-get for 12.04 do not support tls1.2
# here's a .travis.yml segment for how to install these into a precise build container
install:
- sudo apt-get install make
- wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz > /dev/null
- tar -xzvf openssl-1.0.2l.tar.gz
- cd openssl-1.0.2l
- sudo ./config
- sudo make install > /dev/null
- sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`

Keybase proof

I hereby claim:

  • I am acnagy on github.
  • I am acnagy (https://keybase.io/acnagy) on keybase.
  • I have a public key ASD8JCmdAgUOYzHXSqMeOIxXAnVsA60sWqdVLyIPBSIfhgo

To claim this, I am signing this object:

@acnagy
acnagy / .travis.yml
Last active June 14, 2016 18:17
Deploy to Multiple Providers of the Same Type
# Deploy to the same provider twice - be sure to encrypt and add the keys manually using the `travis` gem
# `travis` gem is located here: https://github.com/travis-ci/travis.rb
deploy:
provider: s3
access_key_id: "YOUR AWS ACCESS KEY"
secret_access_key: "YOUR AWS SECRET KEY"
bucket: "S3 Bucket"
deploy:
provider: s3
*.csv
*.json
*.xlsx