Skip to content

Instantly share code, notes, and snippets.

View decal's full-sized avatar
🏠
Working from home

Derek Callaway decal

🏠
Working from home
View GitHub Profile
@decal
decal / globbers.pl
Last active December 22, 2021 22:19
🔤 Generate string patterns based upon syntax similar to the POSIX glob(3) function
#!/usr/bin/env perl
#
# globber
# =======
# Expand syntax specifying multisets and alphabetic/numeric ranges into string literals
#
# Written by: Derek Callaway [ decal (AT) sdf {D0T} org ]
# Released on: Sun Feb 4 10:00:49 STD 2018
# Tested in: perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
#
@decal
decal / linked-lists.c
Last active April 27, 2018 07:37
🚋 Doubly linked list example using 4.4BSD queue.h preprocessor macros..
/*
* An implementation of doubly linked lists in ANSI C using sys/queue.h
*
* gcc -Wall -ansi -pedantic -O2 -o linked-lists linked-lists.c
*
* Written By: Derek Callaway [decal (AT) sdf {D0T} org]
* Last Modified: Fri Dec 29 09:22:40 UTC 2017
*
*/
@decal
decal / SilverSurfer-HTTPS.rkt
Last active April 27, 2018 07:37
🏄 Experimental Racket module I wrote to do some HTTPS tesing..
#lang racket
(require racket/base)
(require racket/date)
(require racket/match)
(require racket/vector)
(require net/http-client)
(date-display-format 'rfc2822)
@decal
decal / urlargs-from-filename.rb
Last active April 27, 2018 07:44
❔ Split the QUERY_STRING variables in URL paths of locally mirrored files seperated by ampersands and starting with a question mark
#!/usr/bin/env ruby
# coding: utf-8
#
# Parse CGI variable names from files stored by tools such as:
# wget, wayback_archive_downloader, etc.
#
# Written By: Derek Callaway [derek.callaway (AT) ioactive {D0T} org]
# Last Updated: Wed Dec 27 04:30:02 PST 2017
# Tested On: Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014
#
@decal
decal / parse-nmap-grep.rb
Last active April 27, 2018 07:46
🌏 Rewrite "greppable" output generated by the `nmap` argument `-oG`
#!/usr/bin/env ruby
# coding: utf-8
#
# Parse nmap grepable output and display host IP address with open port numbers on each line
#
# Written By: Derek Callaway [derek.callaway (AT) ioactive {D0T} com]
# ProductName: Mac OS X 10.13.2 17C88
# Last Updated: Sat Dec 23 15:49:49 PST 2017
#
@decal
decal / keybase.md
Last active April 27, 2018 07:47
🔑 Proves to the keybase.io app that I control this GitHub account

Keybase proof

I hereby claim:

  • I am decal on github.
  • I am decal (https://keybase.io/decal) on keybase.
  • I have a public key ASAcivA83AR3t6MGOG1FGki2xizGEm-BdkRfQl433cyHEgo

To claim this, I am signing this object:

@decal
decal / pascals-triangle.c
Last active April 27, 2018 07:48
🔺 A Pascal's Triangle Program in C11
/*
* Calculate the binomial coefficients required to represent Pascal's Triangle
* after prompting the user for a tree depth value..
*
* Derek Callaway [decal (AT) sdf {D0T} org] Tue Jul 4 11:37:30 PDT 2017
*
* Compile with: gcc -std=c11 -pedantic -ansi -o pascals-triangle pascals-triangle.c
*/
#include<stdio.h>
@decal
decal / fast-firefox
Last active April 27, 2018 07:48 — forked from amorgner/fast-firefox
🐺 Some config options to make Firefox faster (updated)
Over time, I collected some options to make Firefox really fast.
WARNING! NO WARRANTY, use on your own risk!
If you know what you're doing, go to 'about:config' and edit the listed values accordingly.
Hint: Double-click boolean values to toggle true/false.
###########################
If mouse-wheel scrolling is slow, try
decal@localhost:~/GIT/decal/zap_attack/bin$ ./find-proxy-paths www.google.com
https://www.google.com/ads/user-lists => adclick_server
https://www.google.com/gen_204 => gws
https://www.google.com/xjs/_/js/k=xjs.s.en_US.cyz2y8Se00A.O/m=aa,abd,async,dvl,foot,fpe,ifl,ipv6,lu,m,sf,d3l/am=ACMU5fGCA5D_I4TCcBPCAmkBUwzg/exm=sx,c,sb,cdos,cr,elog,hsm,jsa,r,qsm,j,p,d,csi/rt=j/d=1/ed=1/t=zcms/rs=ACT90oGOmZKw0x4UG8OvDH994727tWOcRw => sffe
https://www.google.com/logos => Google Frontend
decal@localhost:~/GIT/decal/zap_attack/bin$ cat find-proxy-paths
#!/usr/bin/env ruby
# encoding: utf-8
#
# Traverse all known directories under web root in search of differing Server