Skip to content

Instantly share code, notes, and snippets.

View lpenguin's full-sized avatar

Nikita Prianichnikov lpenguin

  • Munich
  • 01:27 (UTC +02:00)
View GitHub Profile
#!/bin/sh
mkdir ~/down/
cd ~/down/
sudo apt-get install build-essential
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar -xzf Python-2.7.2.tgz
cd Python-2.7.2
sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev
sudo apt-get install libgdbm-dev libbz2-dev libreadline5-dev
sudo apt-get install libssl-dev libdb-dev
CREATE TABLE gsm
( ID REAL,
title TEXT,
gsm TEXT,
series_id TEXT,
gpl TEXT,
status TEXT,
submission_date TEXT,
last_update_date TEXT,
type TEXT,
@lpenguin
lpenguin / index.html
Last active June 11, 2016 16:59 — forked from monfera/.block
lp zjonsson's d3.js+Leaflet integration (brushed up)
<!DOCTYPE html>
<html>
<head>
<title>Testing d3.js in Leaflet.js</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<style type="text/css">
svg , g
@lpenguin
lpenguin / reflect.py
Last active September 17, 2016 08:38 — forked from huyng/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
import sys
def pr(msg):
sys.stderr.write(str(msg))