Skip to content

Instantly share code, notes, and snippets.

View stroupaloop's full-sized avatar

Andrew Stroup stroupaloop

View GitHub Profile
@stroupaloop
stroupaloop / keybase.md
Created July 16, 2016 02:42
keybase.md

Keybase proof

I hereby claim:

  • I am stroupaloop on github.
  • I am stroup (https://keybase.io/stroup) on keybase.
  • I have a public key whose fingerprint is 69EA 7C79 8CB0 C7E8 9AC2 C812 5D49 2651 899E 23F2

To claim this, I am signing this object:

@stroupaloop
stroupaloop / ato-signature-vote-usa-gov
Last active June 1, 2016 20:48
ato-signature-vote-usa-gov
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Memorandum for Andrew Stroup
Product and System Owner of vote.usa.gov
Thru:
Andrew Stroup
Director of Product and Technology, Presidential Innovation Fellows
@stroupaloop
stroupaloop / aws_cloudfront_ssl_setup
Last active January 20, 2016 06:16
AWS SSL setup
# from the directory where the key/certs are located
aws iam upload-server-certificate \
--server-certificate-name a-new-cert-name \
--certificate-body file://your-site.crt \
--private-key file://your-site.key \
--certificate-chain file://your-site-intermediates.crt \
--path /cloudfront/your-path/
# where a-new-cert-name is an arbitrary name you give your cert for AWS
# your-site-intermediates.crt is your [certname].chain.crt (may need to include [certname].chained.crt)
# your-path is an arbitrary name you give (best if it's the same as the server-certificate-name)
@stroupaloop
stroupaloop / gist:6265625
Last active December 21, 2015 06:39
jQuery 1.9 $.browser issue (Uncaught TypeError: Cannot read property 'msie' of undefined)
Replace instances of below
Original: $.browser.msie
Replacement: /MSIE/.test(navigator.userAgent)
@stroupaloop
stroupaloop / gist:5267715
Created March 28, 2013 23:43
CSS not loading to Heroku app
use this line on local machine prior to pushing to heroku master
RAILS_ENV=production bundle exec rake assets:precompile
@stroupaloop
stroupaloop / gist:5164036
Created March 14, 2013 18:42
Domain.com setup for Google Apps and Heroku setup
Google Apps and Heroku Setup
Remove A Records (66.96.162.128):
*
domainname.com
Remove MX Records:
30 * mx.domainname.com
30 @ mx.domainname.com
@stroupaloop
stroupaloop / head_heroku
Created September 25, 2015 15:32
pushing head to heroku
git push heroku +HEAD:master
git push -f heroku HEAD:master
@stroupaloop
stroupaloop / upgrade_npm_via_npm
Created June 18, 2015 04:53
upgrading node.js via npm
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
@stroupaloop
stroupaloop / domain_dns_lookup
Created May 13, 2015 23:34
lookup DNS records of domain
dig @8.8.8.8 [domain.name] ANY
@stroupaloop
stroupaloop / known_hosts
Last active August 29, 2015 14:18
known hosts file
# from root
cd ~/.ssh
open known_hosts
# can also locate id_rsa
# OR
cd .ssh/