Skip to content

Instantly share code, notes, and snippets.

View anxiousmodernman's full-sized avatar
🎺
ready for a ska revival

Coleman McFarland anxiousmodernman

🎺
ready for a ska revival
View GitHub Profile
@anxiousmodernman
anxiousmodernman / htoi.c
Last active June 17, 2018 04:31
hex conversion: hex string to integer
#include <stdio.h>
#include <ctype.h>
int htoi(char hex_string[]);
int expect(int got, int wanted);
void debuggerino(void);
int htoi(char hex_string[]) {
/* calculate len first and check for 0x offset */
#!/usr/bin/env jimsh
set SOCKET /tmp/ipc.sock
set client [socket unix $SOCKET]
set msg [list db put foo baz]
variable msg2 {
db put blah 1
db put blah 99
db get blah
@anxiousmodernman
anxiousmodernman / traced_output.txt
Created December 8, 2018 18:21
strace -e trace=process,signal,ipc -o traced_output.txt chopfile -chop 52000000 -input rails.log
execve("/usr/bin/chopfile", ["chopfile", "-chop", "52000000", "-input", "rails.log"], [/* 24 vars */]) = 0
arch_prctl(ARCH_SET_FS, 0x57bcd0) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
sigaltstack(NULL, {ss_sp=0, ss_flags=SS_DISABLE, ss_size=0}) = 0
sigaltstack({ss_sp=0xc000002000, ss_flags=0, ss_size=32768}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGHUP, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x4533f0, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x453520}, NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x4533f0, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0x453520}, NULL, 8) = 0
@anxiousmodernman
anxiousmodernman / Vagrantfile
Last active May 12, 2019 15:57
deno build for Centos 7
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
# Make sure you have the specs for this!
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"