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
app.get('/list/:bucket', function (req,res){ | |
var keys = []; | |
res.setHeader('Content-Type', 'application/json'); | |
db.keys(req.params.bucket, {keys: 'stream', props: false}) | |
.on('keys', | |
function(data) { | |
console.log(data); | |
data.forEach(function(key) { | |
keys.push(key); | |
}); |
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
// PhantomJS Render to base64 function | |
page.renderBase64('png', function(err, img) { | |
var image = {}; | |
image.thumb = []; | |
final.full = new Buffer(img, 'base64'); // Convert the base64 encoded value into binary. | |
var thumbStream = new stream.Stream(); // Create a new writable stream | |
thumbStream.writable = true; | |
thumbStream.write = function (chunk) { | |
image.thumb.push(chunk); // Take the data written and store it into an array |
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
upstream api { | |
server 127.0.0.1:3000; | |
keepalive 10; | |
} | |
server { | |
listen 80; | |
server_name yourdomain.com www.yourdomain.com; | |
# | |
# You can ignore the majority of these next lines, |
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
[root@phoenix ~]# wget -O /dev/null http://nodejs.org/dist/v0.10.13/node-v0.10.13.tar.gz | |
--2013-07-23 13:16:23-- http://nodejs.org/dist/v0.10.13/node-v0.10.13.tar.gz | |
Resolving nodejs.org... 165.225.133.150 | |
Connecting to nodejs.org|165.225.133.150|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 13373879 (13M) [application/octet-stream] | |
Saving to: “/dev/null” | |
100%[======================================================================================================================================================================================================================================>] 13,373,879 6.36M/s in 2.0s |
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
[root@phoenix tmp]# /usr/local/apache/bin/ab -n 100 -c 100 http://127.0.0.1:9292/ | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient).....done | |
Server Software: | |
Server Hostname: 127.0.0.1 |
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
request({ 'url': url, 'headers': headers, 'jar': true } , function (err, resp, body){ | |
if (err) throw err; | |
$ = cheerio.load(body); | |
$('table[id^="post"]').each(function(i,elem) { | |
id = $(elem).attr('id').match(/[0-9]+$/)[0]; | |
author = $(elem).find('div[id^="postmenu_"]').find('a.bigusername').text().trim(); | |
subject = $(elem).find('td[id^="td_post_"] div.smallfont strong').text().trim(); | |
postbody = $(elem).find('td[id^="td_post_"] div[id^="post_message_"]').text().trim(); | |
strdate = $(elem).find('div.normal').text().trim().split("\t").pop(); |
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
[pid 2217] 02:28:06.415642 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 <0.000031> | |
[pid 2217] 02:28:06.415775 setrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 <0.000030> | |
[pid 2217] 02:28:06.415921 execve("/usr/lib64/qt-3.3/bin/ln", ["ln", "-s", ".././libfglrx_ip.a"], ["AMDAPPSDKROOT=/opt/AMDAPP", "SHELL=/bin/bash", "_=/bin/make", "HISTCONTROL=ignoredups", "QT_PLUGIN_PATH=/usr/lib64/kde4/p"..., "LESSOPEN=||/usr/bin/lesspipe.sh "..., "MAIL=/var/spool/mail/root", "PATH=/usr/lib64/qt-3.3/bin:/usr/"..., "QT_GRAPHICSSYSTEM_CHECKED=1", "XDG_RUNTIME_DIR=/run/user/1000", "LS_COLORS=rs=0:di=01;34:ln=01;36"..., "KDEDIRS=/usr", "MODFLAGS=-DMODULE -DATI -DFGL -D"..., "PWD=/usr/lib/modules/fglrx/build"..., "HOME=/root", "LD_LIBRARY_PATH=:/opt/AMDAPP/lib"..., "LOGNAME=root", "HOSTNAME=desktop.tyne.io", "SSH_ASKPASS=/usr/libexec/openssh"..., "SHLVL=2", "CC=gcc-4.0", "MAKEOVERRIDES=${-*-command-varia"..., "XDG_SESSION_ID=2", "USER=root", "PAGE_ATTR_FIX=0", "OLDPWD=/lib/modules/fglrx/build_"..., " |
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
# GITLAB | |
# Maintainer: @randx | |
# App Version: 5.0 | |
upstream gitlab { | |
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket; | |
} | |
server { | |
listen *:80 default_server; # e.g., listen 192.168.1.1:80; In most cases *:80 is a good idea |
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
To google.com 11:17 PM on 1/10: | |
My traceroute [v0.83] | |
desktop.tyne.io (0.0.0.0) Fri Jan 10 23:17:04 2014 | |
Keys: Help Display mode Restart statistics Order of fields quit | |
Packets Pings | |
Host Loss% Snt Last Avg Best Wrst StDev | |
1. 192.168.1.1 0.0% 302 0.4 0.4 0.4 12.8 0.8 | |
2. 73.209.216.1 7.0% 302 7.2 9.5 3.5 41.9 5.0 | |
3. xe-4-0-0-32767-sur01.bearcreek.t 9.3% 302 7.7 12.6 6.5 91.8 12.6 | |
4. ae-15-0-ar04.bearcreek.tx.housto 8.6% 302 8.4 10.8 3.1 45.3 6.0 |
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
* symlink /home/socket/.nave/installed/0.6.12/bin/npm (-> ../lib/node_modules/npm/bin/npm-cli.js) | |
* installing out/Release/node as /home/socket/.nave/installed/0.6.12/bin/node | |
* installing out/Release/src/node_config.h as /home/socket/.nave/installed/0.6.12/include/node/node_config.h | |
Waf: Leaving directory `/home/socket/.nave/src/0.6.12/out' | |
'install' finished successfully (3.333s) | |
using 0.6.12 | |
[socket@jedi test]$ node -v | |
v0.6.12 | |
[socket@jedi test]$ npm -v | |
1.1.4 |
OlderNewer