- good general SSL tips
- don't use a wildcard cert. We'll need to buy certs for staging + prod + futon
- can probably safely limit to tls 1.2
- what is SNI?
- istlsfastyet ← good comparisons of terminators
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
// if the user attempts to navigate away from the page before ajax is complete, warn. | |
$.ajaxPrefilter(function(/*options, originalOptions, jqXHR*/) { | |
window.onbeforeunload = function(){ | |
return 'Please allow ajax to complete' | |
} | |
}) | |
// remove the warning when AJAX is done | |
$(document).ajaxComplete(function(){ | |
window.onbeforeunload = void 0 |
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
# no sudo for global installs! | |
sudo chown -R `whoami` ~/.npm; sudo chown -R `whoami` /usr/local/lib/node_modules |
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
# print all the titles in the db | |
strings -a -t x id_stor | pcregrep -M '[a-z0-9]{1,9}\stitles\[\n[a-z0-9]{1,9}\s(.*?)u$' | grep -v 'titles' | cut -d " " -f 2- | sort | uniq | sed 's/u$//' | sed 's/://' | sed 's/\///' > couchpotato_export.txt | |
# get all current movies | |
# note: with GNU sed, the `sed -E` should be `sed -r` | |
ls /Volumes/raid6/Movies | sed 's/ ([0-9][0-9][0-9][0-9])//' | sed -E 's/(.*), The/The \1/' | sort > movie_files.txt | |
# get the wanted movies | |
grep -v -f couchpotato_export.txt movie_files.txt |
I'm a big fan of github flow. Which basically states that you should create a branch for each feature, then merge it into master only when it's ready to push to production. However, github flow is a bit ambiguous about how to resolve conflicts between your feature branch and master
. What follows is a method of dealing with that problem.
- Anything in the master branch is deployable
- To work on something new, create a descriptively named branch off of master (ie: new-oauth2-scopes)
- Commit to that branch locally and regularly push your work to the same named branch on the server
- When you need feedback or help, or you think the branch is ready for merging, open a pull request
- After someone else has reviewed and signed off on the feature, you can merge it into master
- a really good addition: how to merge into master. Here's why
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
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<!-- | |
Created by Manifold | |
--><service_bundle type="manifest" name="bud"> | |
<service name="bud" type="service" version="1"> | |
<create_default_instance enabled="true"/> |
- npm all the things! It sucks when packages aren't browserify-able.
- functional/integration tests are incredibly painful to write, run, and maintain.
- even client side unit tests are hard to debug.
- I know dev tools are working hard on being an editor, but I wish there was better integration between dev tools and my editor. Editors are hard, dev tools should let the apps that do it well, manage the problem.
- I wish there was a way to "live reload" js in a hot-swap kinda way.
- JS errors tend to suck. Async stack traces are a huge win, but some errors are always inscrutable:
undefined is not a function
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
dtrace -n 'proc:::exec-success/basename(execname)=="bash"/{printf("%d executed %s\n", ppid, execname);}' |