Skip to content

Instantly share code, notes, and snippets.

@struts2spring
struts2spring / tips
Created July 14, 2014 05:07
View Only Headers with Curl
curl -v -s http://awesome-site.com 1> /dev/null
@struts2spring
struts2spring / sublime_shortkey
Created July 15, 2014 15:06
Custom & Eclipse shortcuts key bindings for Sublime Text 2
[
{ "keys": ["f12"], "command": "htmlprettify"},
{ "keys": ["f1"], "command": "fold" },
{ "keys": ["f2"], "command": "unfold" },
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
@struts2spring
struts2spring / git_commands.md
Created January 25, 2021 19:51
10 Git Tricks to Save Your Time and Efforts
  1. Checkout a single file from another branch

git checkout some-other-branch -- yarn.lock

  1. View the log without merge commits

git log --oneline --no-merges

  1. Rewrite your last commit message git commit -v --amend