Skip to content

Instantly share code, notes, and snippets.

View malefficient's full-sized avatar

Johnny C malefficient

View GitHub Profile
malefficient /
Created July 24, 2023 19:50
simple scapy dns resolver example
#!/usr/bin/env python3
from scapy.all import *
def parse_args():
argc = len(sys.argv)
if (argc <= 1 or argc > 3):
print('Usage: %s: q_name resolver_ip')
if (argc == 2):
malefficient / KiCad MacOS Install
Last active August 7, 2022 02:27
KiCad 5.1.12 running on MacOS 11.6 (Big Sur)

Johnny KiCad install adventures

MacOS Big Sur caused siginficate headaches for users looking to install KiCad in the 'traditional' .dmg way

I thought I would outline the (re-createable) steps required to work around these

For starters, this tutorial assuems that you have complete removed previous KiCad install files, and that you have successfully copied/extracted the .dmg. I.e., the following directory structure exists on disk: This is an image cute-octopus-pack

malefficient /
Last active August 29, 2020 15:04
FTDI, libusb, Arty-a7, and you

libusb: multiplatform generic usb library for userland applications zadig.exe: Convenient Windows driver switcher utility

'libwdi' : Some sort of zadig wrapper to work-around code signing requirements

pnputil.exe -e > somefile.txt

  1. Then look for "libwdi" string in somefile.txt Example:
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
malefficient /
Created August 23, 2019 03:49 — forked from RichardBronosky/.tmux.conf
TMUX cheat sheet

TMUX cheat sheet

Standard Bindings

Ctrl+b, Ctrl+[ Enter copy mode Ctrl+b, Ctrl+] Paste buffer

Modified Bindings


malefficient /
Created August 23, 2019 03:49 — forked from RichardBronosky/
Visual Studio code - VSCode Cheat Sheet - Keyboard Shortcuts

VSCode Cheat Sheet

Keyboard Shortcuts

Jump to closing bracket


Though I suggest changing it as follows:

editor.action.jumpToBracket Ctrl+]

## Cmd-q is the new cmd-a/b
unbind C-b
#This is the new escape key
set -g prefix C-q
## C-q C-q will goto last window instead of l
#unbind l
#bind-key C-q last-window
# Enable mouse support (toggle with M/m below)
set-option -g mouse-select-pane on
malefficient / tmux-screen-cheatsheet.txt
Created June 13, 2019 15:23
tmux to screen cheatsheet
Screen to tmux cheatsheet
Note: tmux 1.9 has mouse support!
You can toggle it on and off with c-M/m
+-tmux initialization--------------------------+
| Create session: tmux new-session -s SessName |
| List session: tmux list-sessions | tmux ls|
| Join session: tmux attach-session | tmux a |
| Detach session: C-d | |

Markdown Cheat sheet

Quick cut and paste examples.


  • Bold **
  • Italic *
  • Bold and italic