Skip to content

Instantly share code, notes, and snippets.

View dmishh's full-sized avatar
🚀
Building a rocketship!

Dmytro Shcherbyna dmishh

🚀
Building a rocketship!
View GitHub Profile
@dmishh
dmishh / tmux.md
Last active August 29, 2015 14:20 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2

Results

@dmishh
dmishh / catim
Created January 9, 2014 15:55 — forked from smileart/catim
# Install http://pygments.org/download/ to use this improved cat!
cat() {
if command -v pygmentize > /dev/null; then
pygmentize $1 > /dev/null 2>&1
if [ $? -eq 0 ]; then
pygmentize $1
else
command cat $1
fi
else
@dmishh
dmishh / README.md
Created October 23, 2013 14:45 — forked from nikcub/README.md
@dmishh
dmishh / key.sh
Created October 15, 2013 14:26 — forked from smileart/key.sh
# Add ’alias key='~/key.sh'’ to .bashrc or .zshrc
case "$1" in
"off") sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ > /dev/null 2>&1
echo "Keyboard is temporary disabled"
;;
"on") sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ > /dev/null 2>&1
echo "Keyboard is enabled again"
;;
"easy") sudo -K
@dmishh
dmishh / key.sh
Created October 15, 2013 11:50 — forked from smileart/key.sh
# Add ’alias key='~/key.sh'’ to .bashrc or .zshrc
case "$1" in
"off") echo "Keyboard is temporary disabled"
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ > /dev/null 2>&1
;;
"on") echo "Keyboard is enabled again"
sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ > /dev/null 2>&1
;;
"easy") echo "Keyboard is temporary disabled. Press ’any key’ ;) to enable"

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@dmishh
dmishh / README.md
Created February 14, 2013 20:45 — forked from smileart/README.md

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility