Skip to content

Instantly share code, notes, and snippets.

View octern's full-sized avatar

Michael Cohn octern

View GitHub Profile
@octern
octern / gist:64427c1d306a14f60434b64bac70b129
Last active January 10, 2020 16:24
Add MailChimp subsciber via API using Python with mailchimp3
# to install module: pip install mailchimp3
from mailchimp3 import MailChimp as mc
api_key = "" #your api key
username = "" #username you use to log in to mailchimp
audience_id = "" #hex audience ID, as string, from Audience > Manage Audience > Settings > Audience name and defaults (some documentation refers to these as "lists"; the name seems to have been changed to "audiences")
subscriber_email = "" #email address
status = "" #"pending" to send an opt-in email, "subscribed" if the user already opted in, or "transactional" if they don't need to opt in
@octern
octern / gist:3cc3bb4287fcde2d79a4
Created September 11, 2014 16:32
OpenOffice became unresponsive sometime between 7:40 and 8:19
9/11/14 7:38:01.885 AM spindump[1312]: Saved diag report for powerstats version com.apple.SystemStats.TopPowerEvent to /Library/Logs/DiagnosticReports/powerstats_2014-09-11-073801_healslime.diag
9/11/14 7:39:01.541 AM EvernoteHelper[670]: No result from Safari loading plugins.
9/11/14 7:39:18.323 AM spindump[1314]: Saved diag report for powerstats version com.apple.SystemStats.TopPowerEvent to /Library/Logs/DiagnosticReports/powerstats_2014-09-11-073917_healslime.diag
9/11/14 7:39:54.371 AM spindump[1332]: Saved diag report for powerstats version com.apple.SystemStats.TopPowerEvent to /Library/Logs/DiagnosticReports/powerstats_2014-09-11-073954_healslime.diag
9/11/14 7:40:11.909 AM spindump[1334]: Saved diag report for powerstats version com.apple.SystemStats.TopFanEvent to /Library/Logs/DiagnosticReports/powerstats_2014-09-11-074011_healslime.diag
9/11/14 7:40:17.739 AM spindump[1335]: Saved diag report for powerstats version com.apple.SystemStats.TopFanEvent to /Library/Logs/DiagnosticReports/powerstats_201
healslime:habit hibounce$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@habitrpg:/vagrant$ npm start
> habitrpg@0.0.0-152 start /vagrant
> grunt run:dev
@octern
octern / gist:5615797
Created May 20, 2013 21:40
netstat -nr
healslime:~ hibounce$ netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 10.6.168.1 UGSc 50 923 en1
10.6.168/21 link#5 UCS 3 0 en1
10.6.168.1 0:7:b4:3:8f:1 UHLWIir 51 27 en1 1172
10.6.170.154 127.0.0.1 UHS 1 39 lo0
10.6.170.162 link#5 UHLWIi 0 33 en1