Skip to content

Instantly share code, notes, and snippets.

View rankitranjan's full-sized avatar
☀️
Working from home

Rankit Ranjan rankitranjan

☀️
Working from home
View GitHub Profile
@rankitranjan
rankitranjan / git-tag-delete-local-and-remote.sh
Created March 25, 2020 15:35 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@rankitranjan
rankitranjan / gist:2ccb884d5e50b74d06cab0829f0bee07
Created March 24, 2020 13:26 — forked from danielestevez/gist:2044589
GIT Commit to an 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}
@rankitranjan
rankitranjan / 1.rvm_ruby_install.log
Created September 16, 2019 07:49 — forked from ma11hew28/1.rvm_ruby_install.log
How to Install RVM, Ruby, and Gems without Xcode Command Line Tools
# How to Install RVM, Ruby, and Gems without Xcode Command Line Tools
# ===================================================================
#
# Mac OS X 10.8.2 (12C60) (Mountain Lion)
# Xcode 4.5 (4G182)
#
# While attempting to `rvm pkg install openssl`, I had encountered the error:
# > cryptlib.h:62:20: error: stdlib.h: No such file or directory
# But, the commands & ouput below show how I worked around the issue.
#
@rankitranjan
rankitranjan / System Design.md
Created August 28, 2019 13:57 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?