This file contains 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
/* | |
I needed a way to look at an existing SQLite schema, compare it to a text file containing some table | |
definitions and then work out if the two were the same. Here's how I did it. | |
The hashtable 'givenschema' contains each table create statement keyed by the name of the table. | |
*/ | |
public static void CheckSchema() | |
{ |
This file contains 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
using System; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.IO; | |
namespace ARGHGHGHGHG | |
{ | |
internal class Program | |
{ | |
static int progress = 0; |
This file contains 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/perl | |
# by Andreas Kammlott, thanks to perl and its community | |
use IO::Socket::SSL; | |
use Data::Dumper; | |
use HTTP::Date qw(str2time); | |
use HTTP::Date qw(parse_date); | |
use Date::Format; | |
use Mail::IMAPClient; | |
use Mail::Box::Maildir; |
This file contains 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/python | |
""" | |
Run this with something like iostat -nx 60 2 | iostat_to_graphite.py | |
""" | |
import sys, os, re, socket, time | |
"""ARGF from Ruby in Python. | |
Released into the public domain by Andrew Gwozdziewycz, 2010 | |
""" |
This file contains 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/python | |
import sys, os, re, socket, time | |
"""ARGF from Ruby in Python. | |
Released into the public domain by Andrew Gwozdziewycz, 2010 | |
""" | |
class _ARGF(object): | |
def __init__(self): |
This file contains 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 | |
/usr/sbin/unbound-control stats|grep -E '^total\.|^num\.' | sed 's/=/\t/' | gawk 'BEGIN{"hostname -f" | getline hstnm ; }; {print "unbound." hstnm "." $0"\t" strftime("%s")}' |
This file contains 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
Add-Type -Assembly System.ServiceModel.Web,System.Runtime.Serialization | |
function Read-Stream { | |
PARAM( | |
[Parameter(Position=0,ValueFromPipeline=$true)]$Stream | |
) | |
process { | |
$bytes = $Stream.ToArray() | |
[System.Text.Encoding]::UTF8.GetString($bytes,0,$bytes.Length) | |
}} |
This file contains 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
var bkmkltFontChooser = function () { | |
return { | |
v: "1.10.2", | |
jQueryDone: false, | |
webfontDone: false, | |
fontChooserLoaded: false, | |
loadjQuery: function () { | |
if (window.jQuery === undefined || window.jQuery.fn.jquery < bkmkltFontChooser.v) { | |
console.log("Loading jQuery"); | |
var script = document.createElement("script"); |
This file contains 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
Exception in thread "main" java.lang.RuntimeException: No such var: leiningen.util.injected/add-hook, compiling:(NO_SOURCE_PATH:1:3757) | |
at clojure.lang.Compiler.analyze(Compiler.java:6380) | |
at clojure.lang.Compiler.analyze(Compiler.java:6322) | |
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3573) | |
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6562) | |
at clojure.lang.Compiler.analyze(Compiler.java:6361) | |
at clojure.lang.Compiler.analyze(Compiler.java:6322) | |
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708) | |
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560) | |
at clojure.lang.Compiler.analyze(Compiler.java:6361) |
This file contains 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 argh | |
import sh | |
import subprocess | |
import ping | |
import socket | |
import time | |
import sys | |
import re |
OlderNewer