This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OSX | |
open -a "Google Chrome" --args --user-data-dir=/dev/null | |
# Linux | |
google-chrome --user-data-dir=/dev/null | |
# Windows | |
"C:\Users\username\AppData\Local\Google\Chrome\Application\chrome.exe" --user-data-dir=/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Control + L clear screen | |
Control + A cursor to start | |
Control + E cursor to end | |
Control + W delete a word | |
Control + U delete a line | |
Control + R autocomplete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@include text-overflow; | |
@include text-shadow(0 -1px 1px #21272B); | |
@include border-radius(2px, 2px); | |
@include border-bottom-left-radius(8px); | |
@include box-shadow(rgba(0, 0, 0, 0.05) 3px 3px 5px); | |
@include single-box-shadow(rgba(0, 0, 0, 0.075), 0, 0, 3px); | |
@include single-transition(opacity, 0.2s, linear, 0s); | |
@include background(linear-gradient($color-btn, darken($color-btn, 10%))); | |
@include background-image(linear-gradient(lighten($color-btn, 5%), darken($color-btn, 15%))); | |
@include background-image(none); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE tsung SYSTEM "/home/ngocdaothanh/opt/tsung-ws-plugin/share/tsung/tsung-1.0.dtd"> | |
<tsung loglevel="notice" version="1.0"> | |
<clients> | |
<!-- Can't be IP --> | |
<client host="localhost" cpu="8"/> | |
<client host="t2" cpu="8"/> | |
<!-- | |
<client host="t3" cpu="8"/> | |
<client host="t4" cpu="8"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/security/ulimits/conf | |
* soft nofile 999999 | |
* hard nofile 999999 | |
# /etc/pam.d/su | |
session required pam_limits.so | |
# /etc/profile | |
ulimit -SHn 999999 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT body, source, viewer_id, created_time FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 1 AND me() IN (recipients)) ORDER BY created_time DESC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://graph.facebook.com/<APP_ID>/subscriptions?access_token=<ACCESS_TOKEN> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Constructor | |
function Animal(name) { | |
this.name = name; | |
} | |
Animal.prototype.say = function() { return 'Hi!' + this.name; }; | |
function Dog(name) { | |
Animal.call(this, name); | |
} | |
Dog.prototype = new Animal(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (function () { | |
return {}; | |
})(); |