Skip to content

Instantly share code, notes, and snippets.

View drscream's full-sized avatar
🕶️
Focusing

Thomas Merkel drscream

🕶️
Focusing
View GitHub Profile
@drscream
drscream / Box Black.terminal
Created October 7, 2012 17:45
MacOS X Terminal.app config for black terminal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECow
LjA3MzA3Mjk4NDgxIDAuMDg0NTY2MDkzOTggMC4wODc0Njc3ODk2NQAQAYAC0hAREhNa
JGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFy
@drscream
drscream / growl.pl
Created October 25, 2012 08:59
irssi growl notify
#!/usr/bin/env perl -w
#
# Copyright (C) 2009 Bruce Pennypacker
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@drscream
drscream / config
Created October 25, 2012 09:34
~/.ssh/config
host grapefruit.frubar.net
RemoteForward 7106 localhost:7106
LogLevel FATAL
koji add-tag f17-dist-example
koji add-tag --parent f17-dist-example --arches "x86_64" f17-dist-example-build
koji add-external-repo -t f17-dist-example-build f17-dist-example-external-repo http://mirrors.n-ix.net/fedora/linux/releases/17/Fedora/\$arch/os/
koji add-target f17-dist-example f17-dist-example-build
koji add-group f17-dist-example-build build
koji add-group f17-dist-example-build srpm-build
koji add-group-pkg f17-dist-example-build build bash bzip2 coreutils cpio diffutils findutils gawk gcc grep sed gcc-c++ gzip info patch redhat-rpm-config rpm-build shadow-utils tar unzip util-linux-ng which make
koji add-pkg --owner kojiadmin f17-dist-example bash bzip2 coreutils cpio diffutils findutils gawk gcc grep sed gcc-c++ gzip info patch redhat-rpm-config rpm-build shadow-utils tar unzip util-linux-ng which make
#!/usr/bin/perl -w
#use lib '/Users/tm/.doc.env/bin/';
use IO::Socket;
use Digest::MD5 qw(md5_base64);
use Getopt::Long;
use File::Basename;
use Crypt::CBCeasy;
use MIME::Base64;
@drscream
drscream / latitude.py
Created December 7, 2012 19:12 — forked from wiedi/latitude.py
Convert a Google Latitude JSON-File to a GPX-File
#!/usr/bin/env python
import os
import simplejson
import subprocess
import datetime
f = open('latitude.json', 'r')
locdata = simplejson.loads(f.read());
fd = open('latitude.gpx', 'w')
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This script dumps the content of a shared memory block
# used by Linux/Cdorked.A into a file named httpd_cdorked_config.bin
# when the machine is infected.
#
# Some of the data is encrypted. If your server is infected and you
# would like to help, please send the httpd_cdorked_config.bin
# to our lab for analysis. Thanks!
@drscream
drscream / cryptgen
Last active December 18, 2015 01:29
#!/usr/bin/env python
import crypt, string, random, sys, getpass
def gen_salt():
letters=string.ascii_letters+string.digits # alphanumeric, upper and lowercase
return ''.join([random.choice(letters) for _ in range(8)])
if len(sys.argv) < 1:
print "Usage: %s [salt]" % (sys.argv[0])
#!/bin/bash
# ========================================================================================
# CPU Utilization Statistics plugin for Nagios
#
# Written by : Andreas Baess based on a script by Steve Bosek
# Release : 1.1
# Creation date : 3 May 2008
# Package : DTB Nagios Plugin
# Description : Nagios plugin (script) to check cpu utilization statistics.
# This script has been designed and written on Unix plateform (Linux, Aix, Solaris),
#!/usr/bin/perl -w
# Heavily based on the script from:
# check_mem.pl Copyright (C) 2000 Dan Larsson <dl@tyfon.net>
# heavily modified by
# Justin Ellison <justin@techadvise.com>
#
# The MIT License (MIT)
# Copyright (c) 2011 justin@techadvise.com