Skip to content

Instantly share code, notes, and snippets.

@arvind02
arvind02 / gittag.md
Created May 21, 2018 13:39
GIT commit to existing tag

1. Create a branch with the tag

git branch {tagname}-branch {tagname} git checkout {tagname}-branch

2. Include the fix manually if it's just a change ....

`git add .`
`git ci -m "Fix included" `
or cherry-pick the commit, whatever is easier
`git cherry-pick {num_commit}`
@arvind02
arvind02 / building.md
Last active May 16, 2018 12:03
Testing Ruby Gem

Option 1st

Long way of doing things (new files need to be added to staging area before building the gem)

git add . && gem build my_gem.gemspec && gem install my_gem-0.0.0.gem

Option 2nd

If using Bundler to generate the gem (rake task does the same as above)

git add . && rake install
@arvind02
arvind02 / list.md
Last active May 16, 2018 12:05
Image Magick Fonts

List of fonts installed on machine -

convert -list font

Find out if particular font is installed

fc-list | grep -i arial

convert -list font | grep "Font:" | grep Arial

Install Typecatcher in Ubuntu