$ aws amplify create-branch --app-id d35zda70oajrej --branch-name test --region ca-central-1
$ aws amplify create-deployment --app-id d35zda70oajrej --branch-name test --region ca-central-1
| // <script type="text/javascript" src="https://gist.githubusercontent.com/michrome/151cf59c2b12b700346a3535bc07d5d5/raw/checkPriority.js"></script> | |
| window.setInterval(checkPriority, 500); | |
| function checkPriority() { | |
| var x = Coveo.$("[data-case-field='Priority']").coveo("getValue"); | |
| if (x === "1 - Business Standstill") { | |
| alert("Please call us!"); | |
| Coveo.$("[data-case-field='Priority']").coveo("setValue", ""); | |
| } | |
| } |
| http://hello-yoga.co.uk/* | |
| Cache-Control: public, max-age=2592000 | |
| http://www.hello-yoga.co.uk/* | |
| Cache-Control: public, max-age=0, must-revalidate |
| {"BrandonRomano/static-lite":{"17648":{"size":69,"stargazers_count":27,"watchers_count":27,"forks_count":6,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":27,"network_count":6,"subscribers_count":4}},"Frozen-Flask/Frozen-Flask":{"17648":{"size":323,"stargazers_count":526,"watchers_count":526,"forks_count":47,"open_issues_count":17,"forks":47,"open_issues":17,"watchers":526,"network_count":47,"subscribers_count":20}},"tightenco/jigsaw":{"17648":{"size":1808,"stargazers_count":797,"watchers_count":797,"forks_count":89,"open_issues_count":12,"forks":89,"open_issues":12,"watchers":797,"network_count":89,"subscribers_count":38}},"11ty/eleventy":{"17648":{"size":506,"stargazers_count":473,"watchers_count":473,"forks_count":14,"open_issues_count":27,"forks":14,"open_issues":27,"watchers":473,"network_count":14,"subscribers_count":14}},"JavaEden/Orchid":{"17648":{"size":11511,"stargazers_count":55,"watchers_count":55,"forks_count":3,"open_issues_count":22,"forks":3,"open_issues":22,"watchers":55,"network_c |
| #!/bin/bash | |
| # Capture a backup | |
| heroku pgbackups:capture | |
| # Download the backup | |
| curl -o latest.dump `heroku pgbackups:url` | |
| # Restore the back locally | |
| pg_restore --verbose --clean --no-acl --no-owner -h localhost -U `whoami` -d `echo ${PWD##*/}_development` latest.dump |
| # Git branch in prompt. | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
| # Usage: | |
| # `git-pull-all` to pull all your local branches from origin | |
| # `git-pull-all remote` to pull all your local branches from a named remote | |
| function git-pull-all() { | |
| START=$(git symbolic-ref --short -q HEAD); | |
| for branch in $(git branch | sed 's/^.//'); do | |
| git checkout $branch; | |
| git pull ${1:-origin} $branch || break; |
| # Run this http://cl.ly/PnKK | |
| class Animal | |
| constructor: (options) -> | |
| {@name, @sound, @action} = options | |
| greeting: -> | |
| "#{@sound} #{@sound}" | |
| dog = new Animal({sound:"woof", name:"Rover", action:"wags tail"}) |