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 | |
set -uex | |
install_cwd() { | |
./configure --prefix=/app/vendor | |
make -sj4 | |
make -sj4 install | |
} | |
FLEX_DIRNAME=flex-2.5.37 |
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/sh | |
set -ue | |
curl -qO http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz | |
curl -qO http://llvm.org/releases/3.2/clang-3.2.src.tar.gz | |
curl -qO http://llvm.org/releases/3.2/compiler-rt-3.2.src.tar.gz | |
tar -zxf llvm-3.2.src.tar.gz | |
tar -zxf clang-3.2.src.tar.gz | |
tar -zxf compiler-rt-3.2.src.tar.gz |
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/sh | |
set -uex | |
root=$(pwd) | |
cd /tmp | |
curl -LO http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2 | |
tar -jxvf Python-3.3.0.tar.bz2 |
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
Stdout: | |
...(truncated) | |
loading square: 74 55 | |
loading square: 74 56 | |
loading square: 74 57 | |
loading square: 74 58 | |
loading square: 74 59 | |
loading square: 74 60 | |
loading square: 74 61 | |
loading square: 74 62 |
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
#!/usr/bin/env python | |
import argparse | |
import collections | |
import daemon | |
import datetime | |
import errno | |
import os | |
import re | |
import subprocess | |
import sys |
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
$ wal-e --help | |
usage: wal-e [-h] [-k AWS_ACCESS_KEY_ID] [--s3-prefix S3_PREFIX] | |
{backup-fetch,backup-list,backup-push,wal-fetch,wal-push,delete} | |
... | |
WAL-E is a program to assist in performing PostgreSQL continuous | |
archiving on S3: it handles pushing and fetching of WAL segments and | |
base backups of the PostgreSQL data directory. | |
optional arguments: |
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
typedef struct Port | |
{ | |
pgsocket sock; /* File descriptor */ | |
bool noblock; /* is the socket in non-blocking mode? */ | |
ProtocolVersion proto; /* FE/BE protocol version */ | |
SockAddr laddr; /* local addr (postmaster) */ | |
SockAddr raddr; /* remote addr (client) */ | |
char *remote_host; /* name (or ip addr) of remote host */ | |
char *remote_hostname;/* name (not ip addr) of remote host, if | |
* available */ |
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
typedef struct Port | |
{ | |
pgsocket sock; /* File descriptor */ | |
bool noblock; /* is the socket in non-blocking mode? */ | |
ProtocolVersion proto; /* FE/BE protocol version */ | |
SockAddr laddr; /* local addr (postmaster) */ | |
SockAddr raddr; /* remote addr (client) */ | |
char *remote_host; /* name (or ip addr) of remote host */ | |
char *remote_hostname;/* name (not ip addr) of remote host, if | |
* available */ |
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
BEGIN; | |
-- plv8: http://code.google.com/p/plv8js/ | |
CREATE OR REPLACE LANGUAGE plv8; | |
-- Create a function that grabs a passed key and coerces to bigint. | |
CREATE OR REPLACE FUNCTION plv8_project_key(key text, json_raw text) | |
RETURNS bigint AS $$ | |
// This is javascript! | |
var o = JSON.parse(json_raw); | |
return o[key]; |
NewerOlder