using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
[ | |
{ | |
"keys": ["shift+f11"], | |
"command": "toggle_menu" | |
}, | |
{ | |
"keys": ["ctrl+f11"], | |
"command": "toggle_side_bar" | |
}, | |
] |
// Author: Jorge Garcia Miguel | |
// Script to get tp numbers from Target Process. | |
// | |
// INSTRUCTIONS: | |
// | |
// Copy and paste this script on web developer tools console and enjoy!. | |
(function () { | |
var storiesOrBugs = [], | |
tp = null; |
// encode(decode) html text into html entity | |
var decodeHtmlEntity = function(str) { | |
return str.replace(/&#(\d+);/g, function(match, dec) { | |
return String.fromCharCode(dec); | |
}); | |
}; | |
var encodeHtmlEntity = function(str) { | |
var buf = []; | |
for (var i=str.length-1;i>=0;i--) { |
- Digital Ocean console web access. [Important]
cp ~/.ssh/id_rsa.pub ~/key.txt
- Dropbox it.
- Generate a public share link in dropbox
- Get something like this:
https://www.dropbox.com/s/{{id}}/file?dl=0
- Replace the 0 to 1
- Get on Digital Ocean web console
- WGET it.
- Append it to
$HOME/.ssh/authorized_keys
cat $HOME/key.txt >> $HOME/.ssh/authorized_keys
- be happy
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
A curated list by Eric Elliott and friends. Suggest links in the comments below.
This is a very exclusive collection of only must-have JavaScript links. I'm only listing my favorite links. Nothing else makes the cut. Feel free to suggest links if you think they're good enough to make this list. The really curious should feel free to browse the comments to find other links. I can't guarantee the quality of links in the comments.
Some of these links are affiliate links, meaning that if you make a purchase, I might earn a little money. This has absolutely no bearing on whether or not links make the list. None, whatsoever. However, it does allow me more resources to fight poverty with code. Every little bit counts.