- 清水俊博(@meso)
- 株式会社ドワンゴ 技術コミュニケーション室
- Node.js 日本ユーザグループ
This file contains 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
{ | |
'100': '💯', | |
'1234': '🔢', | |
hash: '#️⃣', | |
keycap_star: '*️⃣', | |
zero: '0️⃣', | |
one: '1️⃣', | |
two: '2️⃣', | |
three: '3️⃣', | |
four: '4️⃣', |
This file contains 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
echo "USAGE: rpi-netflix.sh workdirectory" | |
echo "THIS ASSUMES YOU HAVE CHROMIUM!!!" | |
echo "IF NOT, PRESS CTRL+C" | |
sleep 5 | |
wget https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh | |
echo "YOU MUST HAVE ENOUGH FREE SPACE!!!" | |
echo "14\n" | sudo WORKDIR=$1 ./linux_recovery.sh | |
cd $1 | |
sudo apt-get install kpartx | |
sudo kpartx -avs chromeos*.bin |
This file contains 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 vertx = require('vertx'); | |
var container = require('vertx/container'); | |
var conf = { | |
"crash.auth": "simple", | |
"crash.auth.simple.username": "admin", | |
"crash.auth.simple.password": "admin", | |
"crash.ssh.port": "2000" | |
} | |
This file contains 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
Github leaks 1500 emails | |
A few months back i applied for a github enterprise trial and apparently they added me to some sort of mailing list. It seems like someone made the mistake of putting the whole mailing list inside of the to fields for all of their expirations. So i received the following emails at 7:01AM. | |
Email 1: | |
To: (1477 recipients) | |
From: GitHub | |
Subject: COOKPAD Inc., your GitHub Enterprise license expires in 31 days |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
This file contains 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 http = require('http'), | |
URL = require('url'), | |
jsdom = require('jsdom'); | |
module.exports = function sqrape(url, callback) { | |
if (!callback) throw new Error('Callback is not specified'); | |
if (!url) return callback(new Error('URL is not specified')); | |
var parsedUrl = URL.parse(url); | |
var options = { |
This file contains 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
diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown | |
index 35cdbac..55e2fdc 100644 | |
--- a/doc/api/modules.markdown | |
+++ b/doc/api/modules.markdown | |
@@ -242,7 +242,7 @@ then it does *not* add the full resolved path to where `./lib` | |
is on the filesystem. Instead, it literally adds `'./lib'`, | |
meaning that if you do `require('y.js')` in `/a/b/x.js`, then it'll look | |
in `/a/b/lib/y.js`. If you then did `require('y.js')` in | |
-`/l/m/n/o/p.js`, then it'd look in `/l/m/n/o/p/lib/y.js`. | |
+`/l/m/n/o/p.js`, then it'd look in `/l/m/n/o/lib/y.js`. |
This file contains 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
// ==UserScript== | |
// @name eiei | |
// @namespace http://www.mesolabs.com/ | |
// @include * | |
// ==/UserScript== | |
var eiei_textarea, eiei_loadingtextarea; | |
var eiei_word_in2, eiei_word_in3; | |
var eiei_flg; |