Skip to content

Instantly share code, notes, and snippets.

View rymawby's full-sized avatar

Ry Mawby rymawby

View GitHub Profile
@rymawby
rymawby / rails-prepare-test-db.sh
Created January 7, 2014 22:21
Prepare database for testing in rails
rake db:test:prepare
@rymawby
rymawby / 1password-url-scheme.md
Created November 21, 2013 11:44
1Password ios URL scheme
@rymawby
rymawby / roku-workflow.sh
Created November 14, 2013 10:56
Roku workflow
# Run tests
coffee build.coffee -e test -l
# squash current commits
git rebase -i HEAD~i
# then rebase
gco develop
git pull
gco -
git rebase develop
@rymawby
rymawby / roku-dev-mode.md
Created November 11, 2013 09:43
Roku Developer mode
  1. home
  2. home
  3. home
  4. up
  5. up
  6. right
  7. left
  8. right
  9. left
  10. right
@rymawby
rymawby / review-git-branch.sh
Created September 26, 2013 13:02
Review a git branch
function rbranch() {
if [[ $# > 0 ]]; then
git branch -d $1
git fetch --all
git checkout -b $1 origin/$1
git pull
else
echo 'No branch entered.'
fi
}
@rymawby
rymawby / bash-time-output.sh
Created September 2, 2013 16:56
Bash time 24 hour output
date +"%T"
@rymawby
rymawby / default-git-to-push-current-branch.sh
Created August 26, 2013 08:41
Git - default git to push current branch.
git config --global push.default current
@rymawby
rymawby / add-and-commit-git.sh
Created August 11, 2013 12:55
Commit and add git command - shortcut
git commit -am "Message"
@rymawby
rymawby / milliseconds-to-time.as
Created August 7, 2013 13:27
Milliseconds to time - (hour/minute/second)
var hours:int = (milliseconds / (3600000));
var minutes:int = (milliseconds / (60000)) % 60;
var seconds:int = (milliseconds / 1000) % 60;
@rymawby
rymawby / view-git-stash-without-applying.sh
Created August 5, 2013 15:03
View a git stash without applying
git stash show -p stash@{0}