Skip to content

Instantly share code, notes, and snippets.

View vunhan's full-sized avatar
🏠
Working from home

Vu Nhan vunhan

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vunhan on github.
  • I am bol0bal4 (https://keybase.io/bol0bal4) on keybase.
  • I have a public key ASAMp7TiiTko4SonoDMTkXcn9-ZHkEbGeiY-un0M8FMsgQo

To claim this, I am signing this object:

@vunhan
vunhan / .vimperatorrc.local.vim
Created June 27, 2017 07:24 — forked from igal/.vimperatorrc.local.vim
My Vimperator configuration
"===[ Settings ]========================================================
" Autocomplete using Firefox Awesomebar subsystem
set complete=l
" Show completions as you type? '' waits for tab, 'auto' shows them immediately
set wildoptions=''
" Select the longest autocomplete match
set wildmode='list:full'
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=5200
temp-night=3200
; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature.
transition=1
@vunhan
vunhan / install.sh
Last active November 11, 2016 06:59
#!/bin/bash
echo "Installing packages..."
pacman -S xorg-xinit \
firefox \
fcitx fcitx-unikey \
fcitx-gtk2 fcitx-gtk3 fcitx-qt4 fcitx-qt5 fcitx-configtool \
qbittorrent \
aegisub
@vunhan
vunhan / tmux-cheatsheet.markdown
Created October 3, 2016 08:36 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
int main ( int argc, char *argv[] )
{
int array[5];
int *parray = &array[0];
int i = 0;
for ( i; i<5; ++i) {
/*array[i] = i+1;*/
printf("%d\t", array[i]);
}
@vunhan
vunhan / dota2.sh
Created April 26, 2016 05:09
not done yet
# ----------------------------------
# Step #2: User defined function
# ----------------------------------
pause(){
read -p "Press [Enter] key to continue..." fackEnterKey
}
# Looking in path?
path(){
echo "Looking in path: "
Installing Arch:
sudo vim /etc/pacman.conf
Update packages list: sudo pacman -Syy
run sudo pacman -Syu before installing any software (to update the repositories first)
* Timing issue:
- Change hardware clock to use UTC time:
sudo timedatectl set-local-rtc 0
@vunhan
vunhan / adblock
Last active December 15, 2015 20:39
127.0.0.1 api.adtimaserver.vn
# android.clients.google.com
127.0.0.1 dl.dict.laban.vn
127.0.0.1 example.com
127.0.0.1 ads.fptplay.net.vn