Skip to content

Instantly share code, notes, and snippets.

View tbaschak's full-sized avatar

Theo Baschak tbaschak

View GitHub Profile
@danielrichman
danielrichman / couchdb_tail_f.py
Created November 6, 2011 13:17
CouchDB tail: follow couchdb changes
#!/usr/bin/python
# Copyright Daniel Richman 2011. License: GNU GPL 3
import sys
import couchdbkit
import json
import pygments
import pygments.lexers.web
import pygments.formatters
@mklabs
mklabs / bootstrap-plugins.txt
Created December 2, 2011 11:23
h5bp + twitter bootstrap integration
bootstrap-tooltip.js
bootstrap-popover.js
bootstrap-alert.js
bootstrap-button.js
bootstrap-carousel.js
bootstrap-collapse.js
bootstrap-dropdown.js
bootstrap-modal.js
bootstrap-scrollspy.js
bootstrap-tab.js
@arantius
arantius / simple-rrd-merge.py
Created March 23, 2012 02:43
A very simple script to merge multiple RRD files, since none of those available seem to work.
#!/usr/bin/env python
"""Simple script to merge multiple RRD files together.
Accepts any number of RRD file names as arguments. Produces an "rrdtool dump"
style file on stdout. The last RRD file should have a slot for every possible
record in the resulting merged RRD.
Run something like:
$ python simple-merge-rrd.py filea.rrd fileb.rrd filec.rrd | \
@yanofsky
yanofsky / LICENSE
Last active June 5, 2024 21:51
A script to download all of a user's tweets into a csv
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@tbaschak
tbaschak / gen-iface-names.sh
Last active December 19, 2015 08:19 — forked from oogali/gen-iface-names.sh
Updated gen-iface-names.sh to work on *BSD and OS X
#!/bin/sh
# router name generator
# [ omachonu ogali / oogali at blip dot tv / @oogali ]
#
# README:
# 1. point at your router with a community
# 2. finesse names as needed into your DNS zones
# 3. have a cold beverage of your choosing.
#
@trhura
trhura / discover.py
Created July 15, 2013 09:17
python script that can discover ubiquiti airOS devices on the network. Equivalence of "Device Discovery Tool".
#! /usr/bin/env python
# script for ubnt device discovery
# Usage: python discover.py or ./discover.py
import socket
from contextlib import closing
PORT=40860
@binarymax
binarymax / parseCIDRRange.js
Last active July 30, 2021 11:03
JavaScript function to parse a CIDR Range string into beginning and ending IPv4 Addresses
//MIT License
//Copyright (c) 2013, Max Irwin
//Parses a CIDR Range into beginning and ending IPv4 Addresses
//For example: '10.0.0.0/24'
//Returns ['10.0.0.0', '10.0.0.255']
var parseCIDR = function(CIDR) {
//Beginning IP address
var beg = CIDR.substr(CIDR,CIDR.indexOf('/'));
anonymous
anonymous / README.md
Created February 28, 2014 17:47
Integrating D3 with a CouchDB database

Part 1

Proof of concept

Say, you want to save your D3 application in a CouchDB database. This is just a proof of concept that this is possible. I use the »Focus + Context« diagram by Mike Bostock (http://bl.ocks.org/1667367) as an example.

Prerequisites:

@siboulet
siboulet / ssltes.tpy
Last active August 29, 2015 13:58 — forked from stith/ssltest.py
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
# Mirror from http://s3.jspenguin.org/ssltest.py
import sys
import struct
import socket
import time
@chrismeller
chrismeller / gist:10912818
Created April 16, 2014 17:47
Nginx vhost redirect to ssl
server {
include listen_80;
server_name www.example.com;
rewrite ^ https://www.example.com$request_uri$is_args$args;
}