Skip to content

Instantly share code, notes, and snippets.

View qpfiffer's full-sized avatar
馃敋

Quinlan Pfiffer qpfiffer

馃敋
View GitHub Profile
@qpfiffer
qpfiffer / gist:d651eb3e74e8b1504888
Created September 27, 2014 00:05
Updated IRC nickname graph
Guest42912 has the following 2 aliases:
* Guest42912 became Pilate
upme_beevee has the following 2 aliases:
* upme_beevee became ben_vulpes`
Guest91479 has the following 2 aliases:
* Guest91479 became ben_vulpes`
Guest72636 has the following 2 aliases:
* Guest72636 became ben_vulpes`
Guest61568 has the following 2 aliases:
* Guest61568 became Pilate
quinlan@corinthian:/srv/xaxi/src/shithouse.tv/tv/saruman$ ls
meta.json
quinlan@corinthian:/srv/xaxi/src/shithouse.tv/tv/saruman$ cat meta.json
{"bg-color":"000000","image":".jpg","subdomain":"saruman"}
  1. SSH to box
  2. tmux
  3. type in while true; do /etc/cron.minute/adventrecall.rb; sleep 60; done
  4. hit enter
  5. ctrl+b d

Now it should be running forever. If you want to reattach, just type in: tmux a from any shell.

curl -X POST -d '[{"term":"xaxi"}]' http://api.xxiivv.com/traumae/dictionary
Expecting a post value with a json array with the format: {"term":"xaxi"}
> curl -X POST -d '{"term":"xaxi"}' http://api.xxiivv.com/traumae/dictionary
Expecting a post value with a json array with the format: {"term":"xaxi"}
位:/tmp ls -alh test.html
-rw-rw-r-- 1 quinlan quinlan 116K Aug 2 23:17 test.html
位:/tmp curl -d @test.html localhost:8080/oleg/test_page
!
curl: (18) transfer closed with 4 bytes remaining to read
位:/tmp curl -X HEAD localhost:8080/oleg/test_page
位:/tmp curl -v -X HEAD localhost:8080/oleg/test_page
$ cat /etc/dnsmasq.d/static-leases.conf
dhcp-host=10:bf:48:3e:f0:40,10.1.10.30 # Skynet
dhcp-host=52:54:00:92:63:37,10.1.10.50 # Jira
dhcp-host=bc:ae:c5:54:11:aa,10.1.10.31 # Eastbank
dhcp-host=52:54:00:b7:1b:7b,10.1.10.32 # Heart
dhcp-host=52:54:00:d3:f7:f4,10.1.10.33 # Helmut
dhcp-host=52:54:00:e5:83:ee,10.1.10.34 # Spacebase
dhcp-host=bc:5f:f4:86:45:2a,10.1.10.35 # Rayawhk
dhcp-host=52:54:00:4d:80:8c,10.1.10.121 # Surinam (coreos)
dhcp-host=b8:27:eb:db:d6:f9,10.1.10.36 # Eric's Raspberry pi
// WEBRTC stuff:
#include "talk/base/logging.h"
#include "talk/base/stringutils.h"
#include "talk/base/common.h"
#include "talk/base/physicalsocketserver.h"
#include "talk/base/ssladapter.h"
#include "talk/base/thread.h"
// Have to undef some stuff here because the compiler yells about it. Postgres
// has it's own versions.
//// Makefile
MODULES = pg_webrtc
PG_CONFIG = pg_config
#PG_CPPFLAGS = -fPIC
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
//// pg_webrtc.h
#include "postgres.h"
#include "postmaster/bgworker.h"