Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Sepand Assadi ThinkTankShark

🏠
Working from home
View GitHub Profile
@ThinkTankShark
ThinkTankShark / .eslintrc.js
Created Aug 11, 2016 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
View .eslintrc.js
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@ThinkTankShark
ThinkTankShark / .jshintrc
Created Aug 9, 2016
JShint Global Config File
View .jshintrc
{
// 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 / Sublime3Shortcuts.textile
Created Jun 20, 2016
Sublime Text 3 – Useful Shortcuts (OS X - Mac)
View Sublime3Shortcuts.textile

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 / git_delete_tags.md
Last active May 15, 2016
Script to delete all Git tags, local or remote
View git_delete_tags.md

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
Some common .gitignore configurations Raw For Ruby On Rails App
View .gitignore
# 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 Apr 14, 2016
Create Aliases in Terminal Profile to Assign Shortcuts for Common Terminal Commands
View alias_terminal_profile.md

##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 
@ThinkTankShark
ThinkTankShark / install_ruby_env.md
Created Apr 11, 2016
Setup Terminal - Install Ruby Environment - OS X El Capitan
View install_ruby_env.md

#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)"
You can’t perform that action at this time.