Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am krellan on github.
  • I am krellan (https://keybase.io/krellan) on keybase.
  • I have a public key ASDraLIrKoycm0arqEXGMu-CRbE-OwlyrJvLSuqtVtVVuwo

To claim this, I am signing this object:

@Krellan
Krellan / number-prefix-fixer.pl
Created Feb 25, 2015
Strip numeric prefix from NAME=VALUE file
View number-prefix-fixer.pl
#!/usr/bin/perl -w
my %keys;
while(<>)
{
chomp;
# Match NAME=VALUE (first equals sign is the separator)
if (/^([^=]+)[=](.*)$/)
View gist:dda91f64d38761c32fbc
Verifying that +krellan is my openname (Bitcoin username). https://onename.io/krellan
@Krellan
Krellan / usbpower.pl
Last active Oct 5, 2020
This is a script that will reset a Linux USB serial tty device. Sometimes they get stuck with "unable to enable UART" error messages, this will help fix.
View usbpower.pl
#!/usr/bin/perl -w
#
# USB Power
# Krellan
#
# This script will attempt to recover a misbehaving USB serial tty device,
# by unbinding/rebinding the USB hub(s) that are upstream from it.
# This should force the device to reset itself.
#
# Usage: usbpower.pl ttyUSB0