Skip to content

Instantly share code, notes, and snippets.

View cowens's full-sized avatar

Chas. J. Owens IV cowens

  • Martinsburg, WV
View GitHub Profile
package main
import (
b "bufio"
f "fmt"
l "log"
"os"
r "regexp"
"strconv"
)
package main
import (
"bufio"
"fmt"
"log"
"os"
"strconv"
)
# OS specific changes
# macOS specific commands
if-shell "[[ $(uname) == 'Darwin' ]]" {
# makes pbcopy work from the commandline
set-option -g default-command "reattach-to-user-namespace -l bash"
}
# prefix+t brings up a useless clock, make it look nice
set-option -w -g clock-mode-style 24
#!/usr/bin/perl
use strict;
use warnings;
open my $co2, "+>", "/dev/io8log" or die "$!";
my $message = pack "C*", 0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80;
my $ret = ioctl $co2, 0xC0094806, $message;