Skip to content

Instantly share code, notes, and snippets.

View stroupaloop's full-sized avatar

Andrew Stroup stroupaloop

View GitHub Profile
@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 / 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: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 / ruby_sass_converter
Created February 16, 2015 23:54
Running Ruby Sass converter
sass --watch stylesheet.scss:stylesheet.css
@stroupaloop
stroupaloop / firefox_setup
Last active August 29, 2015 14:17
Firefox Addon Setup
brew install mozilla-addon-sdk
cfx [options] [command]
# create a new addon in an empty directory
cfx my-addon
# run the addon
cfx run
# export to .xpi format
@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/
@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 / 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 / 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 / head_heroku
Created September 25, 2015 15:32
pushing head to heroku
git push heroku +HEAD:master
git push -f heroku HEAD:master