Skip to content

Instantly share code, notes, and snippets.

View kazemihabib's full-sized avatar

Habib Kazemi kazemihabib

View GitHub Profile
@kazemihabib
kazemihabib / .vimperatorrc
Created April 19, 2016 07:09
.vimperatorrc
"3.10.1 (created: 2015/08/25 00:41:59)
highlight CmdLine background: white; color: black; transition: all 0.25s; font-size:16px
highlight Hint font-family: monospace; font-size: 10px; font-weight: bold; text-transform: uppercase; color: white; background-color: red; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 1px 0px 1px; font-size:15px;
nnoremap l gt
nnoremap h gT
nnoremap j 15j
nnoremap k 15k
nnoremap ,p :emenu<Space>File.New<Space>Private<Space>Window<Return>
nnoremap ,o :open<Space>about:preferences#advanced<Return>
name: "TypeScript"
scopeName: "source.ts"
fileTypes: [
"ts"
]
uuid: "ef98eb90-bf9b-11e4-bb52-0800200c9a66"
patterns: [
{
include: "#expression"
}
@kazemihabib
kazemihabib / gist:9e73f2616fb6a5582392028d0b38a8a9
Created July 16, 2016 15:54
virtualbox Kernel driver not installed (rc=-1908)
from https://forum.manjaro.org/t/error-on-virtualbox-on-manjaro-linux/2528
in a terminal do
uname -a
it will show something like this Linux user 4.6.0-1-MANJARO #1 SMP PREEMPT Mon May 16 02:44:59 2016 x86_64 GNU/Linux
In bold is your kernel version, so install the virtualbox host modules for your kernel number replacing 46 with what your output showed from the above.
1)
#fix Ctrl +c and Ctrl + v in pentadactyl
#http://superuser.com/a/229030/473587
#use this commands to fix it
noremap <C-v> <C-v><C-v>
inoremap <C-v> <C-v><C-v>
cnoremap <C-v> <C-v><C-v>
noremap <C-c> <C-v><C-c>
@kazemihabib
kazemihabib / .pentadactylrc
Created July 16, 2016 16:22
.pendactylrc
"hg7290
loadplugins '\.(js|penta)$'
group user
map -count -modes=n,v <C-v> -builtin <count><C-v><C-v>
map -count -modes=n h -builtin <count>gT
map -count -modes=n l -builtin <count>gt
map -count -modes=n,v <C-c> -builtin <count><C-v><C-c>
map -count -modes=c <C-v> -builtin <C-v><C-v>
map -count -modes=c <C-c> -builtin <C-v><C-c>
@kazemihabib
kazemihabib / gist:012af2fa59bdff93a75058de8ac05abb
Created July 17, 2016 15:40
adb server version (32) doesn't match this client (36); killing...
http://stackoverflow.com/a/26763766/4146943
f yes this error probably came out because adb from genymotion conflicted with your adb from android SDK(using same port number), to fix this simply go to settings => choose ADB tab => click on option Use custom Android SDK Tools and set your SDK folder
@kazemihabib
kazemihabib / directory.js
Created August 20, 2016 15:43 — forked from danherbert-epam/directory.js
Cross-Platflorm node.js directory node module, which includes mkdir and mkdirSync utilities which behave like the UNIX command "mkdir -p" which can be given a path with lots of non-existent nested directories and create any that are missing. One thing missing here that could be added in the future is the optional 'mode' argument, which exists in…
var fs = require('fs');
var pathSep = require('path').sep;
var directory = module.exports = {};
directory.mkdirSync = function __directory_mkdirSync__(path) {
var dirs = path.split(pathSep);
var root = "";
"3.14.0 (created: 2016/06/07 23:58:16)
highlight CmdLine background: white; color: black; transition: all 0.25s; font-size:16px
highlight Hint font-family: monospace; font-size: 10px; font-weight: bold; text-transform: uppercase; color: white; background-color: red; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 1px 0px 1px; font-size:15px;
nnoremap l gt
nnoremap h gT
nnoremap j 15j
nnoremap k 15k
nnoremap ,p :emenu<Space>File.New<Space>Private<Space>Window<Return>
nnoremap ,o :open<Space>about:preferences#advanced<Return>
"3.14.0 (created: 2016/06/07 23:58:16)
highlight CmdLine background: white; color: black; transition: all 0.25s; font-size:16px
highlight Hint font-family: monospace; font-size: 10px; font-weight: bold; text-transform: uppercase; color: white; background-color: red; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 1px 0px 1px; font-size:15px;
nnoremap l gt
nnoremap h gT
nnoremap j 15j
nnoremap k 15k
nnoremap ,p :emenu<Space>File.New<Space>Private<Space>Window<Return>
nnoremap ,o :open<Space>about:preferences#advanced<Return>
@kazemihabib
kazemihabib / gist:39c79ac731ddde86b3210cae55bb0e47
Created February 25, 2017 12:49
download with youtube-dl and aria2 with autoincrement number
youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" --external-downloader "aria2c" --external-downloader-args "-x 16" <youtube_play_list_link>