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
$ sudo /etc/init.d/postgresql restart | |
* Restarting PostgreSQL 9.3 database server * The PostgreSQL server failed to start. Please check the log output: | |
2014-07-03 12:08:42 PDT FATAL: could not load library "/usr/lib/postgresql/9.3/lib/pg_webrtc.so": /usr/lib/postgresql/9.3/lib/pg_webrtc.so: undefined symbol: _Z30BackgroundWorkerUnblockSignalsv |
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
g++ -I. -I./ -I/usr/include/postgresql/9.3/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.5 -c -o pg_webrtc.o pg_webrtc.cpp | |
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_SCORE_ADJ=0 -fno-omit-frame-pointer -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -L/usr/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/lib/mit-krb5 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -L/usr/lib/x86_64-linux-gnu -Wl,--as-needed -shared -o pg_webrtc.so pg_webrtc.o | |
/usr/bin/ld: pg_webrtc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC | |
pg_webrtc.o: could not read symbols: Bad value | |
collect2: ld returned 1 exit status | |
make: |
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
int x = 0, y = 1, temp = -1; | |
temp = y; // temp = 1 | |
y = x; // y = 0 | |
x = temp; // x = 1 |
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
What is this? | |
------------- | |
Just kicking around an idea I hate. meta_room is basically a corporate | |
office simulation. You will be able to simulate a small (or maybe large) | |
office building. The main goal is to just watch "people" do mundane and | |
stupid things. Imagine the following text: | |
Andrew has gone to the bathroom. | |
Janet begins to look at cat pictures on the internet. |
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
for i in $(git branch -a --merged | grep -v master | sed 's/remotes\/origin\///g'); do git push origin :$i && git branch -d $i; done |
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
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define STRMAX 32 | |
// Compile with: gcc -O3 -o 666 666.c | |
int hash_code(const char *str) { | |
int hash = 0; |
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
From ff762c18533097f528899f2d1d2a83a6eba2d8ca Mon Sep 17 00:00:00 2001 | |
From: Quinlan Pfiffer <[email protected]> | |
Date: Fri, 30 May 2014 11:14:49 -0700 | |
Subject: [PATCH] Improvements from production. | |
- Moved regex to single expression. WOOOOO! | |
- Sorted output. | |
--- | |
logpurge/__init__.py | 9 +++------ | |
1 file changed, 3 insertions(+), 6 deletions(-) |
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
# Software RAID-0 Revodrive X2 (four 40GB SSDs via PCI-e): | |
(master) | |
quinlan@tired:~/src/blocks$ sudo hdparm -Tt /dev/md6 | |
/dev/md6: | |
Timing cached reads: 18988 MB in 2.00 seconds = 9502.24 MB/sec | |
Timing buffered disk reads: 1886 MB in 3.00 seconds = 628.67 MB/sec | |
# SATA 3 128GB SSD in my X1 Carbon: | |
(master) |
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
import weechat as wc | |
import os,commands | |
from datetime import date | |
wc.register("imply","pepperouni","1.0","GPL3","Greentext it!","","") | |
def imply(data, buffer, args): | |
entry = args | |
'''Multimply''' | |
x = entry.rfind("#") |
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 | |
if [ -z $1 ] | |
then | |
echo "Getting all nginx configs" | |
RESPONSE=$(grep server_name /etc/nginx/sites-enabled/* | sed -e 's/.*server_name //' -e 's/localhost *//' -e 's/ /\n/g' -e 's/;$//' | sed -re 's_^(.*)$_<li><a href="http://\1">\1</a></li>_') | |
else | |
echo $1 | |
RESPONSE=$(grep server_name /etc/nginx/sites-enabled/$1 | sed -e 's/.*server_name //' -e 's/localhost *//' -e 's/ /\n/g' -e 's/;$//' | sed -re 's_^(.*)$_<li><a href="http://\1">\1</a></li>_') | |
fi |