Skip to content

Instantly share code, notes, and snippets.

View denisinla's full-sized avatar
👋

denisinla

👋
View GitHub Profile
@denisinla
denisinla / osx_install.sh
Created October 3, 2015 01:21 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@denisinla
denisinla / keybinds.json
Created April 7, 2015 19:50
ST3 - Keybindings
[
{ "keys": ["super+alt+7"], "command": "encode_html_entities" },
{ "keys": ["shift+ctrl+u"], "command": "title_case" },
{ "keys": ["super+enter"], "command": "insert", "args": {"characters": "<br>\n"} },
{ "keys": ["super+alt+l"], "command": "insert_snippet", "args": {"contents": "<li>${0:$SELECTION}</li>" } },
{ "keys": ["super+alt+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>" } },
{ "keys": ["super+alt+i"], "command": "insert_snippet", "args": {"contents": "<em>${0:$SELECTION}</em>" } },
{ "keys": ["super+alt+n"], "command": "insert_snippet", "args": {"contents": "<span>${0:$SELECTION}</span>" } },
{ "keys": ["super+alt+down"], "command": "insert_snippet", "args": {"contents": "<sub>${0:$SELECTION}</sub>" } },
@denisinla
denisinla / .vimrc
Created February 20, 2015 21:54
.vimrc - backup
"~/.vimrc
execute pathogen#infect()
filetype plugin indent on
set encoding=utf-8
set number
syntax on
set background=dark
@denisinla
denisinla / absolute-center.css
Created February 7, 2015 01:25
Absolute center!
div{
position: absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
}
@denisinla
denisinla / device-dpi.css
Created February 7, 2015 01:25
Media Query for targeting device ratio and DPI.
.box {
background: url( 'img/box-bg.png' ) no-repeat top left;
width: 200px;
height: 200px;
}
@media only screen and ( -webkit-min-device-pixel-ratio: 1.3 ),
only screen and ( min--moz-device-pixel-ratio: 1.3 ),
only screen and ( -o-min-device-pixel-ratio: 2.6/2 ), /* returns 1.3, see Dev.Opera */
only screen and ( min-device-pixel-ratio: 1.3 ),
only screen and ( min-resolution: 124.8dpi ),
@denisinla
denisinla / docker.sh
Created January 29, 2015 02:38
Docker commands
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@denisinla
denisinla / simulator.sh
Created January 21, 2015 23:58
simulator command + simulator device selection
xcrun simctl
xcrun instruments -w "iPhone 5 (8.0 Simulator)"

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@denisinla
denisinla / .gitignore
Last active August 29, 2015 14:09 — forked from salcode/.gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20140606
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@denisinla
denisinla / rvm-dotfile-fix.sh
Created October 8, 2014 02:52
RVM is not a function
$ rvm get stable --auto-dotfiles