Skip to content

Instantly share code, notes, and snippets.

# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@dseeni
dseeni / gitcom.md
Last active May 1, 2019 18:31 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Another Cheat Sheet for GIT

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@dseeni
dseeni / gitflowrebasing.md
Created March 29, 2019 03:02 — forked from markreid/gitflowrebasing.md
git flow with rebasing
@dseeni
dseeni / RRM_utils.py
Created March 29, 2019 11:56 — forked from evitolins/RRM_utils.py
Maya Python Snippets
'''
This fixes a RRM bug (v1.4.7) where saved RRM setups do not preserve a
module's 'pinned' status.
'''
import maya.cmds as cmds
import maya.mel
def RRM_fixPinBug(objs):
for obj in objs:
trans = cmds.xform(obj,q=True, r=True, translation=True)
maya.mel.eval("RRM_PinProxies(1, 0);")
@dseeni
dseeni / .vimrc
Created March 29, 2019 21:21 — forked from jamesfe/.vimrc
My VIMRC file
inoremap § <Esc> " fix european keyboards
set tags=tags;/
set clipboard=unnamed
set colorcolumn=120 " Add red line at char 120
set nocompatible " be iMproved, required
filetype off " required
set backspace=2 " Helps with backspace after insert
set number " Line numbers on
@dseeni
dseeni / .bashrc
Created April 26, 2019 10:36
add the linux `watch` tool capability to windows git bash
# add to ~/.bashrc
source ~/.bash/watch.sh
@dseeni
dseeni / ls.sh
Created April 27, 2019 01:29 — forked from robbestad/ls.sh
bash ls aliases
//vim ~/.bashrc
/add
alias l='ls -Ahq --group-directories-first --color'
//run with full details files
l -l
@dseeni
dseeni / grokgit.sh
Created April 27, 2019 02:17 — forked from xero/grokgit.sh
"don't git good, grok git!" - presentation slides
#!/bin/sh
esc=$(printf '\033')
clear
cat << X0
${esc}[34m
don't git good... ██ ██ ██
░██ ░░ ░██
█████ ██████ ██████ ░██ ██ █████ ██ ██████
██░░░██░░██░░█ ██░░░░██░██ ██ ██░░░██░██░░░██░
@dseeni
dseeni / p4merge-git-tool.md
Created April 27, 2019 08:37 — forked from dgoguerra/p4merge-git-tool.md
Setup p4merge as difftool and mergetool on Windows

Setting up p4merge as diff and merge tool on Windows. Tried for Git version 1.8.4.msysgit.0.

Two alternatives are explained: using the command line, and directly editing the config file.

Setting up from the command line

Being the installation path "C:Program Files\Perforce\p4merge.exe", just run:

$ git config --global diff.tool p4merge
@dseeni
dseeni / .gitconfig
Created April 27, 2019 10:40 — forked from johnpolacek/.gitconfig
My current .gitconfig aliases
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
brD = branch -D
merged = branch --merged
dmerged = "git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
st = status