Skip to content

Instantly share code, notes, and snippets.

View eapostol's full-sized avatar
💭
Pretty busy at the moment, but check in anyway

Edward J. Apostol eapostol

💭
Pretty busy at the moment, but check in anyway
View GitHub Profile
@eapostol
eapostol / AnyConnect_SecurID
Created April 24, 2018 14:29 — forked from kevinberny/AnyConnect_SecurID
Mac OS X AppleScript to automate RSA SecurID pin & Cisco AnyConnect client connection. Leverages keychain. Cobbled together from several other previous postings
set the clipboard to ""
set appname to "SecurID"
set thePin to RsaTokenPin()
activate application appname
do shell script "networksetup -setairportpower en0 on"
tell application appname
activate
@eapostol
eapostol / gist:3ffef679d3f2cf2de2e9d31ab8f20feb
Created March 26, 2018 18:52 — forked from Atem18/gist:4696071
Tutorial to seting up a django website in production.

Set up Django, Nginx and Gunicorn in a Virtualenv controled by Supervisor

Steps with explanations to set up a server using:

  • Virtualenv
  • Virtualenvwrapper
  • Django
  • Gunicorn
@eapostol
eapostol / nodereinstall.sh
Created July 12, 2017 02:35 — forked from brock/nodereinstall.sh
Complete Node Reinstall. I've moved this to a repo at http://git.io/node-reinstall
#!/bin/bash
# node-reinstall
# credit: http://stackoverflow.com/a/11178106/2083544
## program version
VERSION="0.0.13"
## path prefix
PREFIX="${PREFIX:-/usr/local}"