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
import java.math.BigInteger; | |
import java.security.Provider; | |
import java.security.SecureRandom; | |
import java.security.Security; | |
import com.rsa.crypto.ECPoint; | |
import com.rsa.jsafe.provider.ECDRBGInstantiationParameterSpec; | |
import com.rsa.jsafe.provider.ECPointVerifiable; | |
import com.rsa.jsafe.provider.SecureRandomEx; | |
import com.rsa.jsafe.provider.SensitiveData; |
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
import java.math.BigInteger; | |
import java.security.Provider; | |
import java.security.SecureRandom; | |
import java.security.Security; | |
import com.rsa.jsafe.provider.SensitiveData; | |
//Largely cribbed from RSA BSAFE Docs. | |
public class ShittyCrypto { |
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
checking build system type... checking build system type... x86_64-unknown-linux-gnu | |
checking host system type... x86_64-unknown-linux-gnu | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... /bin/mkdir -p | |
checking for gawk... gawk | |
checking whether make sets $(MAKE)... yes | |
checking how to create a ustar tar archive... gnutar | |
checking whether to enable maintainer-specific portions of Makefiles... no | |
checking for style of include used by make... GNU |
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 | |
# | |
# geoLookup.py | |
# https://gist.github.com/4383810 | |
# | |
# 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 3 of the License, or | |
# (at your option) any later version. | |
# |
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/sh | |
# Create a new session called 'left' and open a ssh connection | |
tmux new-session -d -s left 'ssh danm_mud@pdox' | |
# Run 'resume' inside the ssh connection | |
tmux send-keys -t left:1 resume C-m | |
# Splice the screen in half by 50% | |
tmux splitw -h -p 50 -t left:1 'bash' |
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 | |
# | |
# SVN Post-commit hook for the Pushover API | |
# Filters commits to only push when specific authors commit. | |
# Sends commit messages to one or more device KEYS. | |
# List of keys to push to | |
KEYS=( DEVICE_KEY_ONE DEVICE_KEY_TWO DEVICE_KEY_THREE ) | |
# Which commit authors should generate push messages? |
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
use strict; | |
use vars qw($VERSION %IRSSI); | |
use LWP::UserAgent; | |
use Irssi; | |
$VERSION = '0.0.1'; | |
%IRSSI = ( | |
authors => 'Daniel McCarney', | |
contact => 'daniel@binaryparadox.net', |
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
# | |
# pushoverbooted service | |
# | |
# Sends a PushOver notification when the box has finished booting. To | |
# install, place this file in /etc/init/ You can test the service by | |
# running 'start pushoverbooted' | |
# | |
# You will need to replace TOKEN with the value you get upon following the | |
# registration process for a pushover application detailed at: | |
# https://pushover.net/api#registration |
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
# | |
# pushoverbooted service | |
# | |
# Sends a PushOver notification when the box has finished booting. To | |
# install, place this file in /etc/init/ You can test the service by | |
# running 'start pushoverbooted' | |
# | |
# You will need to replace TOKEN with the value you get upon following the | |
# registration process for a pushover application detailed at: | |
# https://pushover.net/api#registration |
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
############################################################################### | |
# Quick & Dirty script to download the Avatars of your Twitter Followers | |
# Daniel McCarney -- 10/10/11 | |
# | |
# Emphasis on the quick & dirty. There's no error handling, and bad things | |
# are liable to happen if you have Twitter followers with malicious avatars | |
# | |
# Requirements: Python 2.6, python-twitter, OAuth keys* | |
# | |
# *Twitter requires OAuth authentication for the API calls this script uses. |