Skip to content

Instantly share code, notes, and snippets.

View DoZator's full-sized avatar
😺
Working

Oleg Bogatenko DoZator

😺
Working
View GitHub Profile
@DoZator
DoZator / README.md
Created August 23, 2012 06:46
Script For Sync TextMate Bundles Using Dropbox

Script For Sync TextMate Bundles Using Dropbox

This script helps automate the trick with the synchronization user's TextMate bundles throught dropbox. The script was written for my own needs, but may be useful for somebody else.

==============================================================================

Usage:

All you need is a Dropbox account. Run script:

@DoZator
DoZator / git_ll.md
Created September 10, 2012 06:13
Alias for "git log" command in pretty format

In ~/.gitconfig file:

[alias]    
ll = log --color --graph --pretty=format:"%Cred%h%Creset\\ -%C(yellow)%d%Creset\\ %s\\ %Cgreen(%cr\\ by\\ %an)%Creset" --abbrev-commit
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
@DoZator
DoZator / .gitignore
Created October 26, 2012 11:02
.gitignore file for iOS project
# Temporary files
*~
.DS_Store
*.swp
*.out
# Xcode files
*~.nib
@DoZator
DoZator / README.md
Last active December 11, 2015 00:28
My tmux config

####After editing ~/.tmux.conf, execute this from a shell:

tmux source-file ~/.tmux.conf

@DoZator
DoZator / README.md
Last active December 11, 2015 02:18
Show git and branch in prompt

Install zsh for OS X wuth Homebrew

brew install zsh zsh-completions

Set as default shell

echo /usr/local/bin/zsh | sudo tee -a /etc/shells

chsh -s $(which zsh)
@DoZator
DoZator / gist:6266119
Last active December 21, 2015 06:39
Usefull Xcode Plugins and TextMate bundles
Xcode Plugins
TextMate Bundles
@DoZator
DoZator / info.md
Created March 4, 2014 07:11
Setup Sublime Text
  1. Set up Sublime to run from the command line. Create a symbolic link for the sublime executable.

     ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
    
  2. Install Package Control.

     import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
    
@DoZator
DoZator / Install Golang.md
Last active July 21, 2023 10:27
Install Golang, building Golang programs

Install Go with Homebrew (OS X)

    brew install go

Create directories for GOPATH:

    mkdir ~/go
@DoZator
DoZator / install NodeJS.md
Last active April 27, 2016 07:15
Install Node.JS (OS X)

Install Node.JS with Homebrew (OS X)

    brew install node

Add to .bash_profile

 export NPM_PACKAGES="$HOME/.npm-packages"
@DoZator
DoZator / mongo.md
Last active October 24, 2024 11:30
mongodump and mongorestore for MongoDB in docker

mongodump and mongorestore for mongodb in docker

mongodump

    docker run --rm --link mongo_db:mongo -v /your_dir:/backup mongo:3.6 bash -c 'mongodump -d db_name --out /backup --host $MONGO_PORT_27017_TCP_ADDR'

Restore the Mongo database from a dump