Skip to content

Instantly share code, notes, and snippets.

View rymawby's full-sized avatar

Ry Mawby rymawby

View GitHub Profile
@rymawby
rymawby / view-merged-branches.sh
Last active August 29, 2015 14:16
User percol to see merged branches
git branch -r --merged <BRANCH> | percol
@rymawby
rymawby / brightscript-trace-function.txt
Last active August 29, 2015 14:07
Brightscript trace out function name regex
([a-z0-9]*)(\: function.*)(\n)()(.*)
$1$2$3 ? "$1" \n$5
@rymawby
rymawby / attach-console-to-heroku.sh
Created September 19, 2014 09:43
Attach a console onto Heroku app
heroku run console -a <APP-NAME>
@rymawby
rymawby / modify-last-commit-message.sh
Created August 5, 2014 09:52
Modify last commit message
git commit --amend
git push --force <repository> <branch>
@rymawby
rymawby / fix-auto-signin.txt
Created June 16, 2014 16:30
Fix auto sign-in
vi source/app/services/UserService.brs
/getToken:
@rymawby
rymawby / jquery-on.coffee
Created April 18, 2014 21:03
CoffeeScript / jquery - when appending a DOM element we need to use on rather than click to teh parent div.
$('#parent-selector').on
click: ->
event.preventDefault()
".appended-item-selector"
@rymawby
rymawby / one-line-git-report.sh
Created March 26, 2014 17:26
One line git report
git log --graph --oneline --all
@rymawby
rymawby / vi-find-replace-pick-squash.sh
Created March 19, 2014 17:26
When doing a rebase -i (squash) it's hand to find and replace picks and squashes.
:1,10s/pick/squash/g
@rymawby
rymawby / kill-detached-rails-server.sh
Created March 11, 2014 20:39
Kill a detached rails server
lsof -i :3000
@rymawby
rymawby / sublime-vintage-mode-basics.md
Last active January 2, 2016 16:49
Sublime vintage mode basic commands

Sublime Vintage Mode Basics

v2w Visually select 2 words

c2w Change 2 words (deletes)

vi' Visually select between the apostrophes