Skip to content

Instantly share code, notes, and snippets.

View technogoat's full-sized avatar

Naum Kostovski technogoat

View GitHub Profile
$ git tag -l | awk '/^(.*[a-z])$/ {print $1}' | xargs git tag -d
Deleted tag '0.9.0c' (was e373098)
Deleted tag '0.9.0d' (was 5566b43)
...
- [deleted] 0.9.6c
- [deleted] 0.9.6d
...
$ git ls-remote --tags origin | awk '/^(.*)(\s+)(.*[a-z])$/ {print ":" $2}' | xargs git push origin
$ git push origin :refs/tags/0.9.6c
^(.*) - the SHA (at the start of the line ^)
(\s+) - a cupla spaces
(.*[a-z])$ - a string ending in a letter, followed by end of line ($) (there are more exact/safer ways of doing this regexp, I know)
d16aeb86430afc26fb17f182f567d39c8c732188 refs/tags/0.9.6c
390c9a3251b813775ccdb96c375d50fed67d058f refs/tags/0.9.6d
...
0.9.6c
0.9.6d
...
for x in $(rvm list strings); do rvm use $x@global && gem install <RAD DEVELOPMENT GEM NAME>; done
group :development do
gem 'annotate'
gem 'awesome_print', :require => "ap"
gem 'heroku', '>= 2.1.2'
gem 'hirb'
gem 'interactive_editor'
gem 'open_gem'
gem 'rails-footnotes'
gem 'ruby-debug'
gem 'sketches'
Ctrl-a d # detach screen window
Ctrl-a Ctrl-a # flip-flop between two windows
screen -r # re-attach screen window