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 apt-get install curl | |
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
sudo apt-get install -y nodejs | |
# Avoid EACCES errors* (http://stackoverflow.com/questions/25236042/stop-eacces-errors-with-npm-node-on-ubuntu) | |
mkdir "$HOME/npm" | |
npm config set prefix "$HOME/npm" | |
printf "NODE_PATH=$NODE_PATH:$HOME/npm/lib/node_modules\nPATH=$PATH:$HOME/npm:$HOME/npm/bin\n" >> ~/.bashrc && source ~/.bashrc | |
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:webupd8team/sublime-text-3 | |
sudo apt-get update | |
sudo apt-get install sublime-text-installer |
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
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-get update | |
sudo apt-get install google-chrome-stable |
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
{ | |
"files.trimTrailingWhitespace": true, | |
// https://github.com/SamVerschueren/vscode-final-newline | |
"files.insertFinalNewline": true, | |
// El número de espacios a los que equivale una tabulación. | |
"editor.tabSize": 2, | |
// Insertar espacios al presionar TAB. |
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
#!/bin/bash | |
tail -f /var/log/{prefix}* | bunyan |
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
/// disable-pageview-api.js | |
// Based on: https://addons.mozilla.org/firefox/addon/disable-page-visibility/ | |
// License: http://www.opensource.org/licenses/bsd-license.php | |
(function(){ | |
// visibilitychange events are captured and stopped | |
document.addEventListener("visibilitychange", function(e) { | |
e.stopImmediatePropagation(); | |
}, true); | |
// document.visibilityState always returns false | |
Object.defineProperty(Document.prototype, "hidden", { |