This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass --watch stylesheet.scss:stylesheet.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from root | |
cd ~/.ssh | |
open known_hosts | |
# can also locate id_rsa | |
# OR | |
cd .ssh/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dig @8.8.8.8 [domain.name] ANY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git push heroku +HEAD:master | |
git push -f heroku HEAD:master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use this line on local machine prior to pushing to heroku master | |
RAILS_ENV=production bundle exec rake assets:precompile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replace instances of below | |
Original: $.browser.msie | |
Replacement: /MSIE/.test(navigator.userAgent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
OlderNewer