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 / mdunfence.rb
Created May 7, 2024 19:47
Extract fenced code blocks from markdown into separate files
#!/usr/bin/env ruby
# coding: utf-8
#
# mdunfence - Extract fenced code blocks from markdown into separate files.
#
# All files with the markdown extension under the current working directory are
# handled and the new files will be named after their parent markdown filename
# with a count appended to keep track of multiple extracted code blocks. The
# optional language identifier will be used as the new file extension.
#
@decal
decal / infosec-blog-feed-list-decalresponds.opml
Created January 8, 2019 21:52
Information Security Blog Feed List Compiled by @decalresponds
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Information Security Blog Feed List Compiled by @decalresponds</title>
</head>
<outline text="Infosec" title="Information Security">
<outline type="rss" text="Signal Chaos" title="Signal Chaos" xmlUrl="http://s1gnalcha0s.github.io/feed.xml" htmlUrl="http://s1gnalcha0s.github.io/"/>
<outline type="rss" text="Secrutiny" title="Secrutiny" xmlUrl="https://secrutiny.com/feed/" htmlUrl="https://secrutiny.com"/>
<outline type="rss" text="Ero Carrera's blog" title="Ero Carrera's blog" xmlUrl="http://blog.dkbza.org/rss.xml" htmlUrl="http://blog.dkbza.org/"/>
@decal
decal / goodoms.bash
Created January 7, 2019 14:59
Enumerate sub-domains with Google's site: search operator
#!/usr/bin/env bash
#
# goodoms: Enumerate sub-domains with Google's site: search operator
#
# Admittedly, general-purpose search engines aren't the best enumerators of DNS
# records. However, they are good at extracting host names that may have been
# otherwise inaccessible as a result of cached web pages in the search indices.
# This script was created to automate the process in a semi-predictable manner.
#
# Written by: Derek Callaway [derek.callaway (AT) ioactive {D0T} com]
@decal
decal / github-repo-desc.bash
Created December 31, 2018 19:58
Describe GitHub repositories residing under given local file system directory
#!/usr/bin/env bash
#
# github-repo-desc (GitHub Repository Describer)
#
# Describe GitHub repositories residing under given local file system directory
#
# Written By: Derek Callaway [decal (AT) sdf {D0T} org]
# Last Updated: Mon Dec 31 10:42:14 PST 2018
# Tested On: macOS High Sierra and CentOS GNU/Linux
#
@decal
decal / main.scpt
Created July 9, 2018 17:17
Hardened Chrome Browser
# Misc: --start-maximized --disable-save-password-bubble
# Reduce attack surface: --disable-presentation-api --disable-file-system --disable-contextual-search --disable-account-consistency --disable-translate --disable-background-mode --disable-plugins-discovery --disable-webgl --disable-webgl-image-chromium --disable-speech-api --disable-smart-virtual-keyboard --disable-print-preview --disable-password-generation --disable-overlay-scrollbar --disable-offer-upload-credit-cards --disable-ntp-popular-sites --disable-cloud-import --disable-component-cloud-policy --disable-credit-card-scan --disable-bundled-ppapi-flash --disable-java --disable-plugins --disable-ipv6 --disable-people-search --disable-default-apps
# Incognito, sandboxing & security stuff: --incognito --disable-sync --disable-sync-backup --disable-sync-rollback --disable-sync-app-list --disable-sync-types --enable-sandbox --enable-sandbox-logging --isolate-extensions --isolate-sites-for-testing=* --process-per-tab --process-per-site --safe-plugins
#
@decal
decal / GitCommitEmoji.md
Created April 30, 2018 09:13 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@decal
decal / portrange.c
Last active April 29, 2018 08:37
🔢 Parse `nmap -p` style port range list string input into a linked list..
/*
* Parse `nmap -p` style port range list string input into a linked list..
*
* Written By: Derek Callaway [decal (AT) sdf {D0T} org]
* Compile As: gcc -O2 -Wall -pedantic -o portrange portrange.c
* Updated On: Fri Apr 27 01:14:29 DST 2018
*/
#include<stdio.h>
#include<stdlib.h>
@decal
decal / README-Template.md
Last active February 24, 2020 06:00 — forked from VEnis/README-Template.md
ℹ️ A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@decal
decal / gmake boilerplate
Last active April 27, 2018 07:34
🎡 GNU Makefile Boilerplate
#
# GNU Makefile boilerplate
#
# Written by: Derek Callaway [decal (AT) sdf {D0T} org]
#
CC = gcco
CFLAGS = -std=c11 -Wall -pedantic -O2 -g -I. -D_FORTITY_SOURCE=2 -fstack-check -fstack-protector-all -fsanitize=alignment
LIBS =
SRCS = count_commas.c count_urlglob.c main_function.c show_urlglob.c showall_urlglob.c array_range.c show_usage.c integer_l
@decal
decal / Docker.md
Last active April 27, 2018 07:31 — forked from RichoDemus/gist:ebe6810e1a765e41b0d45f3585a14fb3
🐳 Handy Docker things