Skip to content

Instantly share code, notes, and snippets.

View natanshalva's full-sized avatar

Natan Shalva natanshalva

  • Berlin
View GitHub Profile
@natanshalva
natanshalva / git commit script
Last active December 16, 2015 18:40
Git commit script
#!/bin/sh
# Add hot key to git commit
# Insert alias in your .bashrc or in .bash_aliases
# Example: alias bc="/path/to/this/file"
#
echo "Git Add"
eval "git add -a"
@natanshalva
natanshalva / bash_aliases
Last active April 30, 2018 11:13
My version of bash_aliases file
#!/bin/bash
#
# All the alias for you linux
#
# Script written by Natan Shalva
# 27.5.2013 natan.shalva@gmail.com
#
#
# WELCOME SCREEN
@natanshalva
natanshalva / Sublime Text 3 - User Keys Bindings
Last active August 29, 2015 14:24
Sublime Text 3 - User Keys Bindings
[
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": ["J", "K"], "command": "exit_insert_mode",
"context":
@natanshalva
natanshalva / Sublime Text 3 - sublime-keymap Default
Created July 14, 2015 06:55
Sublime Text 3 - sublime-keymap Default
[
{ "keys": ["ctrl+q"], "command": "exit" },
{ "keys": ["ctrl+shift+n"], "command": "new_window" },
{ "keys": ["ctrl+shift+w"], "command": "close_window" },
{ "keys": ["ctrl+o"], "command": "prompt_open_file" },
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file" },
{ "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["ctrl+n"], "command": "new_file" },
{ "keys": ["ctrl+s"], "command": "save" },
@natanshalva
natanshalva / Sublime Text 3 - Settings User
Created July 14, 2015 12:54
Sublime Text 3 - Settings User
{
"always_prompt_for_file_reload": false,
"always_show_minimap_viewport": false,
"animation_enabled": true,
"args":
{
"panel": "console",
"toggle": true
},
"atomic_save": true,
@natanshalva
natanshalva / Git Hook: post-receive
Last active June 21, 2016 14:38
This script updates sources on a remote sever on git push
#!/bin/bash
#
# How to :
# create repo on your remote server.
# cd "path-to-new-repo" and then : git init --bare
# then cd "hook".
# vim post-receive - and past this script in ( change the path as you want )
# save the file and change permission : chmod 777 post-receive
#
" My humble modifications to the the one and the only original file : Jeffery way
set nocompatible " Disable vi-compatibility
set t_Co=256
" colorscheme xoria256
" set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar