Skip to content

Instantly share code, notes, and snippets.

@petersondrew
petersondrew / update-rocketraid
Created March 27, 2012 14:30
Recompile RocketRaid drivers after kernel update
#!/bin/bash
#Automagically recompile rocketraid driver for new kernel
#Save this file in /etc/kernel/postinst.d/
dir="/usr/src/rocketraid_driver/rr232x-linux-src-v1.10/product/rr232x/linux/"
make -C $dir install KERNELDIR=/lib/modules/$1/build/
exit 0
@petersondrew
petersondrew / freerdp_boolean.patch
Created July 26, 2012 18:23
freerdp boolean_t patch
diff --git a/channels/rdpdr/printer/printer_cups.c b/channels/rdpdr/printer/printer_cups.c
index 1f0c58c..5a8c9f3 100644
--- a/channels/rdpdr/printer/printer_cups.c
+++ b/channels/rdpdr/printer/printer_cups.c
@@ -26,6 +26,7 @@
#include <freerdp/utils/memory.h>
#include <freerdp/utils/svc_plugin.h>
+#include "config.h"
#include "rdpdr_constants.h"
@petersondrew
petersondrew / Client.cs
Created January 7, 2015 21:01
Masstransit channel leak on respond to temporary queue
using System;
using Contracts;
using MassTransit;
namespace Client
{
internal static class Program
{
static void Main()
{
@petersondrew
petersondrew / keybase.md
Created September 19, 2017 06:24
Key base verify

Keybase proof

I hereby claim:

  • I am petersondrew on github.
  • I am peterson (https://keybase.io/peterson) on keybase.
  • I have a public key ASBvqzGq41Bqk1sW_nymUXHTfLkP5FkOAsC6QlGTH5r9IAo

To claim this, I am signing this object: