Skip to content

Instantly share code, notes, and snippets.

@h4n2k
h4n2k / gist:9331353747bcdc62b0bf
Created January 3, 2016 04:05
Debian install TP-LINK TL-WN723N Wireless usb
wget https://codeload.github.com/lwfinger/rtl8188eu/zip/master
unzip master
cd rtl8188eu-master
sudo make
sudo make install
http://stackoverflow.com/questions/22034825/debian-install-tp-link-tl-wn723n-wireless-usb
alternate:
@h4n2k
h4n2k / gist:b0dbfb64935462260317
Last active January 4, 2016 07:22
Solve linux SSH connection broken pipe on Telkom Indie Home Indonesia
/etc/ssh/ssh_config
Add this
setelah Host *
ServerAliveInterval 30
ServerAliveCountMax 5
-------------------------------------------
@h4n2k
h4n2k / gist:1f11b04dc80c087a092d
Last active January 18, 2016 09:07
ZSH KEYBINDINGS
KEYBINDINGS
The following keybindings can be used to control Terminator:
Super+R Rtate terminals clockwise.
Super+Shift+R Rtate terminals counter-clockwise.
Ctrl+Shift+O Split terminals Horizontally.
Ctrl+Shift+E Split terminals Vertically.
Ctrl+Shift+Right Move parent dragbar Right.
Ctrl+Shift+Left
Move parent dragbar Left.
@h4n2k
h4n2k / gist:e45f3670e79728e39215
Last active January 14, 2016 02:45
Sails.js Captains-log module not found
sudo npm uninstall sails -g
rm -rf ~/.npm
npm cache clean
sudo npm cache clean
sudo npm cache clean -g
sudo npm i -g sails
-----------------------------------------------------------------------------------------------
https://github.com/balderdashy/sails/issues/3366
@h4n2k
h4n2k / gist:2291420f8e4b28c9eb4f
Created January 14, 2016 02:47
Sails.js Assets not loading
{
"generators": {
"modules": {}
},
"hooks": {
"grunt": false
}
}
Just delete the "hooks" part with the "grunt": false property, save it and you're ready to go
@h4n2k
h4n2k / gist:fce262d0a329ce51cb63
Last active January 18, 2016 09:48
Sublime Text 3
https://scotch.io/bar-talk/best-of-sublime-text-3-features-plugins-and-settings
https://scotch.io/bar-talk/the-complete-visual-guide-to-sublime-text-3-themes-color-schemes-and-cool-features
http://www.codepolitan.com/9-plugin-sublime-text-yang-wajib-diinstal-programmer/
@h4n2k
h4n2k / file.rb
Created January 20, 2016 15:31
JS prettify setting
{
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": true
}
@h4n2k
h4n2k / promisifyReq.js
Created January 27, 2016 06:16
Sails.js with bluebird Cannot read property 'then' of undefined
module.exports = function(req, res, next) {
var pack = {
params: req.params.all(),
headers: req.headers,
user: req.user
};
var promise = sails.bluebird.resolve(pack);
@h4n2k
h4n2k / sources.list
Created January 28, 2016 23:02
my sebian /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150425-12:50]/ jessie main
# deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150425-12:50]/ jessie main
deb http://ftp.tw.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.tw.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
@h4n2k
h4n2k / .zshrc
Created February 17, 2016 06:07
setting zshrc
# Path to your oh-my-zsh installation.
export ZSH=/home/xxxxx/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="random"
# Uncomment the following line to use case-sensitive completion.