Skip to content

Instantly share code, notes, and snippets.

@cdecker
cdecker / README
Created September 20, 2014 14:48
Daily bitcoin supply
Short bash script created in answer to http://bitcoin.stackexchange.com/questions/30584/where-can-i-find-a-chart-of-the-daily-supply.
Scrapes blockchain.info and counts the number of blocks mined in a single day.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cdecker
cdecker / README.md
Last active December 14, 2015 03:19 — forked from mbostock/.block

A demo of the d3.geo.tile plugin, which determines which 256x256 tiles are visible in the viewport based on a scale and translate. This demo combines the tile plugin with d3.behavior.zoom for panning and zooming, resulting in a a simple slippy map. Based partly on an example by Tom MacWright.

[root@bud:cdecker]# smartctl -d megaraid,4 /dev/sda -i
smartctl 5.40 2010-07-12 r3124 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
/dev/sda [megaraid_disk_04] [SAT]: Device open changed type from 'megaraid' to 'sat'
=== START OF INFORMATION SECTION ===
Device Model: WDC WD5003ABYX-01WERA1
Serial Number: WD-WMAYP4753240
Firmware Version: 01.01S02
User Capacity: 500,107,862,016 bytes
@cdecker
cdecker / pywilmaa.py
Created January 17, 2012 22:33
GTK Frontend for Wilmaa
import gtk
from mplayer.gtk2 import GtkPlayerView
import threading
import time
channels = {
'SF1': {
'url': "http://gartenhof.live1-f.akamaihd.net/sf1_1_800@43046"
},
'SF2': {
/**
* Copyright 2011 Christian Decker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
package net.bitdroid.monitor;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import net.bitdroid.network.ThreadedBitcoinReactor;
import net.bitdroid.network.BitcoinEventListener;
import net.bitdroid.network.Event;
// ==UserScript==
// @name A Bit Better RTM
// @namespace http://www.rememberthemilk.com
// @description Small improvements for Remember The Milk: display list tabs to the left; display tasks count; GoTo & MoveTo list quickly;
// @include http://www.rememberthemilk.com/*
// @include https://www.rememberthemilk.com/*
// ==/UserScript==
//region String
// ==UserScript==
// @name Klick4
// @namespace net.snyke
// @include *?content=/verdienen/klick4
// ==/UserScript==
window.count = 10;
setTimeout(function(){
var nodes = document.evaluate("//a[contains(@href,'fc.php')]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null );
// ==UserScript==
// @name FWX Klick4
// @namespace net.snyke
// @include http://p4.klammgeil.de/banner/forcedklick.html*
// ==/UserScript==
window.count = 10;
setTimeout(function(){