Skip to content

Instantly share code, notes, and snippets.

View ThinkTankShark's full-sized avatar
🏠
Working from home

Sepand Asadi ThinkTankShark

🏠
Working from home
View GitHub Profile
@ThinkTankShark
ThinkTankShark / Sublime3Shortcuts.textile
Created June 20, 2016 14:49
Sublime Text 3 – Useful Shortcuts (OS X - Mac)

Sublime Text 3 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@ThinkTankShark
ThinkTankShark / install_ruby_env.md
Created April 11, 2016 13:53
Setup Terminal - Install Ruby Environment - OS X El Capitan

#Xcode Command Line Tools

Xcode > Preferences > Downloads > Command Line Tools

####Homebrew

# install package manager
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@ThinkTankShark
ThinkTankShark / .eslintrc.js
Created August 11, 2016 03:28 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@ThinkTankShark
ThinkTankShark / .jshintrc
Created August 9, 2016 20:22
JShint Global Config File
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 7, // {int} Maximum error before stopping
// Enforcing
"indent": 2,
"regexdash": false,
"trailing": false,
@ThinkTankShark
ThinkTankShark / git_delete_tags.md
Last active May 15, 2016 19:28
Script to delete all Git tags, local or remote

Copy and paste the script to your terminal

num=0
for t in `git tag`
do
  if [ "$num" -ge 120 ]
    then
      break
  fi
 git push origin :$t
@ThinkTankShark
ThinkTankShark / .gitignore
Last active May 10, 2016 03:39
Some common .gitignore configurations Raw For Ruby On Rails App
# Ignore Byebug command history file.
.byebug_history
# Ignore bundler config. #
##########################
/.bundle
vendor/*
# Ignore all logfiles and tempfiles. #
######################################
@ThinkTankShark
ThinkTankShark / alias_terminal_profile.md
Last active April 14, 2016 14:01
Create Aliases in Terminal Profile to Assign Shortcuts for Common Terminal Commands

##Create Aliases in .bash_profile to Assign Shortcuts for Common Terminal Commands

###Instruction: Enter these aliases into your ~/.bash_profile or ~/.zshrc (if using zsh)

  • Let’s say you often browse to a directory that requires a lot of typing, such as:
alias cdp="cd ~/Dropbox/projects/source/"

OR