Skip to content

Instantly share code, notes, and snippets.

@gerad
gerad / npm install mongodb
Created March 10, 2011 17:24
npm install mongodb fails on no.de
[node@gerad ~]$ npm install mongodb
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info fetch http://registry.npmjs.org/mongodb/-/mongodb-0.9.1.tgz
npm info calculating sha1 /tmp/npm-1299777263646/1299777263646-0.11996227549389005/tmp.tgz
npm info shasum 0b4c97289d9c88fc726a9993a8632d2ebe3284d6
npm info calculating sha1 /home/node/.node_libraries/.npm/.cache/mongodb/0.9.1/package.tgz
npm info shasum 5ea811dd1b55ae50b5ebda38c853e7548c7d86db
npm info preinstall [email protected]
@ancap
ancap / gist:7412407
Last active April 6, 2017 00:51
Nginx debug

#Nginx debug# Use strace. First, you need to detect PID of nginx process:

# ps ax | grep nginx
25043 ?        Ss     0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
25044 ?        S      0:02 nginx: worker process

Ok, so 25044 is the worker process. Now, we trace it:

# strace -p 25044 2>&1 | grep gz
@gabrielsson
gabrielsson / minecraft-on-raspberry-pi.md
Last active September 29, 2024 15:03
Minecraft on Raspberry Pi cluster with metrics

alt

Minecraft on Raspberry Pi cluster with metrics

Ever wanted to put your Rapsberry Pi cluster to great use? Our team is working remotely, so we started to play Minecraft. I decided I would host the Minecraft server on my Raspberry Pi cluster. This gist will guide you through the steps I took to get a k3s cluster up with k3sup and later installed Minecraft as well as metrics exporter and Prometheus Operator

Why?

Quoniam Possumus - Because we can

You'll need