Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

denisinla

:octocat:
View GitHub Profile
@denisinla
denisinla / osx_install.sh
Created Oct 3, 2015 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
View osx_install.sh
#!/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)"
View keybinds.json
[
{ "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 Feb 20, 2015
.vimrc - backup
View .vimrc
"~/.vimrc
execute pathogen#infect()
filetype plugin indent on
set encoding=utf-8
set number
syntax on
set background=dark
View absolute-center.css
div{
position: absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
}
@denisinla
denisinla / device-dpi.css
Created Feb 7, 2015
Media Query for targeting device ratio and DPI.
View device-dpi.css
.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 Jan 29, 2015
Docker commands
View docker.sh
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@denisinla
denisinla / simulator.sh
Created Jan 21, 2015
simulator command + simulator device selection
View simulator.sh
xcrun simctl
xcrun instruments -w "iPhone 5 (8.0 Simulator)"
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View .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
View rvm-dotfile-fix.sh
$ rvm get stable --auto-dotfiles