Ubuntu's analog of robcowie / postgis_timezone_db.markdown
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install postgresql-9.1-postgis
#!/usr/bin/python | |
# from http://stackoverflow.com/questions/19326409/python-ctype-segmentation-fault | |
import ctypes | |
shellcode_data = (b"\x6a\x3b\x58\x99\x48\xbb\x2f\x62\x69\x6e\x2f\x73\x68\x00\x53" | |
b"\x48\x89\xe7\x68\x2d\x63\x00\x00\x48\x89\xe6\x52\xe8\x10\x00" | |
b"\x00\x00\x2f\x75\x73\x72\x2f\x62\x69\x6e\x2f\x77\x68\x6f\x61" | |
b"\x6d\x69\x00\x56\x57\x48\x89\xe6\x0f\x05") | |
shellcode = ctypes.create_string_buffer(shellcode_data) | |
function = ctypes.cast(shellcode, ctypes.CFUNCTYPE(None)) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
import os | |
import asyncio | |
import sys | |
from asyncio.streams import StreamWriter, FlowControlMixin | |
reader, writer = None, None | |
@asyncio.coroutine | |
def stdio(loop=None): |
Ubuntu's analog of robcowie / postgis_timezone_db.markdown
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install postgresql-9.1-postgis