###Create and checkout a new branch
git checkout -b [branchName]
###Checkout a remote branch
git checkout -b [localBranchName] origin/[remoteBranchName]
###Push local branch to remote
git push -u origin [branchName]
###Delete remote branch
| # implement minimal caching during site development | |
| <FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|js|css|pdf|swf|html|htm|txt)$"> | |
| Header set Cache-Control "max-age=5" | |
| </FilesMatch> | |
| # explicitly disable caching for scripts and other dynamic files | |
| <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"> | |
| Header unset Cache-Control | |
| </FilesMatch> |
| //Based on http://jsfiddle.net/dFNva/1/ | |
| var events = [ | |
| { | |
| event_name: "Recurring", | |
| start_date_time: new Date('Fri May 17 2013 01:00:00 GMT-0400 (EDT)'), | |
| rating: '4.1' | |
| }, { | |
| event_name: "Morning Dive", | |
| start_date_time: new Date('Tue May 14 2013 02:00:00 GMT-0400 (EDT)'), |
| (function($) { | |
| $.fn.invisible = function() { | |
| return this.each(function() { | |
| $(this).fadeTo(100, 0); | |
| $(this).css("visibility", "hidden"); | |
| }); | |
| }; | |
| $.fn.visible = function() { | |
| return this.each(function() { | |
| $(this).css("visibility", "visible"); |
###Create and checkout a new branch
git checkout -b [branchName]
###Checkout a remote branch
git checkout -b [localBranchName] origin/[remoteBranchName]
###Push local branch to remote
git push -u origin [branchName]
###Delete remote branch
| [ | |
| { | |
| "name": "Email Filter Datastore", | |
| "author": { | |
| "name": "Scott Williams", | |
| "email": "scott.joe.williams@gmail.com" | |
| }, | |
| "filters": { | |
| "operator": "one of: AND, OR. Is added between each filter group", | |
| "filter-groups": [{ |
| [ | |
| { | |
| "name": "OoO", | |
| "author": { | |
| "name": "Scott Williams", | |
| "email": "scott.joe.williams@gmail.com" | |
| }, | |
| "filters": { | |
| "operator": null, | |
| "filter-groups": [{ |
| // ==UserScript== | |
| // @name Kitten Game | |
| // @namespace www.soilandthesea.com | |
| // @version 0.6.0 | |
| // @description Automates certain production cycles | |
| // @author Scott Williams | |
| // @include http://bloodrizer.ru/games/kittens/ | |
| // @include http://bloodrizer.ru/games/kittens/# | |
| // @grant none | |
| // ==/UserScript== |
| #calendarSign { | |
| font-size: 22px; | |
| } | |
| #devPanel { | |
| display: none; | |
| } | |
| #gameLog { | |
| font-size: 10px; |
| alias pgstart="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/log/postgres/server.log start" | |
| alias pgstop="pg_ctl -D /usr/local/var/postgres stop -m fast" | |
| # find id of last backup | |
| __getBackupId() { | |
| echo $( heroku pg:backups | grep 'b\d\d\d' | head -1 | cut -b 1-6 | xargs ) | |
| } | |
| # get the app's name from heroku info | |
| __getAppName() { |