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 | |
# Script for installing python on systems where you don't have root access. | |
# python will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
PYTHON_VERSION=2.7.6 |
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
var | |
exec = require('child_process').exec, | |
current = 0, | |
max = 100 | |
; | |
function scan (i) { | |
if (current < max) { | |
current++; | |
exec('curl portquiz.net:' + i, callback.bind(this, i)); |
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
lint/linter.py | 6 +++++- | |
1 file changed, 5 insertions(+), 1 deletion(-) | |
diff --git a/lint/linter.py b/lint/linter.py | |
index bb701df..bef4602 100644 | |
--- a/lint/linter.py | |
+++ b/lint/linter.py | |
@@ -1258,13 +1258,17 @@ class Linter(metaclass=LinterMeta): | |
col = i | |
break |
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
emblem.emblem.load({ | |
"objects": [ | |
{ | |
"opacity": 1, | |
"angle": -5.0043635188, | |
"flipX": false, | |
"flipY": false, | |
"top": 138, | |
"height": 298.3367253252, | |
"width": 20, |
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
/* | |
* Usages: | |
* {{#set "content"}} | |
* captured content | |
* {{/set}} | |
* My {{ content }} | |
*/ | |
Handlebars.registerHelper('set', function(name, options) { | |
this[name] = options.fn(this); | |
return 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
// Small script to check the actives hosts on the network and, according to the results, start/stop the torrents. | |
// NB: The high priority torrents remains untouched. | |
// | |
// cron task to exec it every 5min: */5 * * * * root node /volume1/web/tasks/transmission/transmission.js > /dev/null | |
var Transmission = require('transmission'); // node-transmission - https://github.com/FLYBYME/node-transmission | |
var exec = require('child_process').exec; | |
// Log in to transmission | |
var transmission = new Transmission({ |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+m"], "command": "toggle_side_bar" } | |
] |
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
var util = require('util'); | |
var exec = require('child_process').exec; | |
// Grep (ok) | |
exec("grep 'grep' test.js", function(){ | |
console.dir(arguments); | |
}); | |
// Ack (nok) | |
exec("ack 'ack' test.js", function(){ |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Example</title> | |
<script> | |
// Define an empty array | |
var Ready = []; | |
</script> | |
<script async src="main.js"></script> | |
<script> |