Skip to content

Instantly share code, notes, and snippets.

View khanghh's full-sized avatar

Khang Hoàng khanghh

View GitHub Profile
@khanghh
khanghh / signing_apk.md
Created January 3, 2019 08:53
signing apk

Create a key using

$ keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000

Then sign the apk using

@khanghh
khanghh / remove_disable_copy.md
Last active January 4, 2019 09:57
remove disable copy
* {
  -webkit-user-select: text !important;  /* Chrome 49+ */
  -moz-user-select: text !important;     /* Firefox 43+ */
  -ms-user-select: text !important;      /* No support yet */
  user-select: text !important;  
}
@khanghh
khanghh / trash.desktop
Created January 4, 2019 17:42
/usr/share/trash.desktop
[Desktop Entry]
Name=Trash
GenericName=Trash
Exec=nautilus trash:///
Icon=user-trash
Terminal=false
Type=Application
Actions=empty-trash;
[Desktop Action empty-trash]
@khanghh
khanghh / unlock_ultimate-guitar.com.user.js
Last active June 17, 2019 05:56
tabs.ultimate-guitar.com unlock
// ==UserScript==
// @name tabs.ultimate-guitar.com unlock
// @version 1.0.0
// @author Hoang Hong Khang
// @description Unlock all pro features
// @namespace http://tampermonkey.net/
// @match https://tabs.ultimate-guitar.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
// ==UserScript==
// @name Remove disable copy
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
@khanghh
khanghh / config
Created March 21, 2019 13:14
ssh-config
Host *
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
@khanghh
khanghh / sakura.conf
Created April 5, 2019 13:07
sakura config
[sakura]
colorset1_fore=rgb(211,215,207)
colorset1_back=rgb(30,39,46)
colorset1_curs=rgb(255,255,255)
colorset1_key=F1
colorset2_fore=rgb(211,215,207)
colorset2_back=rgba(38,38,38,0.99)
colorset2_curs=rgb(255,255,255)
colorset2_key=F2
colorset3_fore=rgb(192,192,192)
@khanghh
khanghh / hide_cmdline.vimrc
Last active April 10, 2019 07:55
hide comment line vim
set lines+=1
let s:is_cmdline_open = 0
function! s:cmdline(key)
if a:key ==# ':'
if !s:is_cmdline_open
let &lines-=1
let s:is_cmdline_open = 1
redraw
endif
@khanghh
khanghh / .vimrc
Created April 24, 2019 08:18
My vim config
" Plugin {{{
call plug#begin('~/.vim/plugged')
Plug 'christoomey/vim-tmux-navigator'
Plug 'scrooloose/nerdtree'
Plug 'jistr/vim-nerdtree-tabs'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug '/home/linuxbrew/.linuxbrew/opt/fzf'
Plug 'junegunn/fzf.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'