Skip to content

Instantly share code, notes, and snippets.

View giladshanan's full-sized avatar

Gilad Shanan giladshanan

View GitHub Profile
# This goes in .bashrc, .zshrc, or wherever you like to store your aliases.
# Frequently used functions that I don't want to memorize/type:
alias dc="docker-compose "
# run bash in the app container
alias dc-bash="dc exec app bash"
# run rails console in the app container
alias dc-rc="dc exec app bundle exec rails c"
# run rspec in the app container
alias dc-rspec="dc exec app bundle exec rspec "
@giladshanan
giladshanan / .SublimeGitColumnView.md
Last active February 20, 2019 20:54
Commands and keybindings for improved git workflow in Sublime using SublimeGit (https://github.com/SublimeGit/SublimeGit).

Installation:

  1. Install SublimeGit
  2. Select Preferences > Key Bindings and paste the contents of sublime-keymap into Packages/User/Default (OSX).sublime-keymap
  3. Save the rest of the python command files to a new directory, Packages/SublimeGitColumnView

Usage:

Ctrl+C -> Open the Git Status view.

L (from the Git Status view) -> Open the Git Log view for the 10 most recent commits in the bottom panel.

@giladshanan
giladshanan / keybase.md
Created January 26, 2018 18:06
keybase proof

Keybase proof

I hereby claim:

  • I am giladshanan on github.
  • I am gshanan (https://keybase.io/gshanan) on keybase.
  • I have a public key ASAvhVmJED65Zd6Jzmf2lXs8fbj1str3XbBRiqVjrEpvYQo

To claim this, I am signing this object: