Skip to content

Instantly share code, notes, and snippets.

View jsvazic's full-sized avatar

John Svazic jsvazic

  • Cambridge, Ontario, Canada
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jsvazic on github.
  • I am elitesec (https://keybase.io/elitesec) on keybase.
  • I have a public key ASCQ-fq_ZXOZ9WzE7vSMt54t7baXImTRFZ8WjA3RfRbYDQo

To claim this, I am signing this object:

@jsvazic
jsvazic / tmux.conf
Last active March 10, 2022 15:27
My .tmux.conf file
# Set prefix to Ctrl-a
set-option -g prefix C-a
unbind C-a
bind-key C-a send-prefix
# Use Alt-arrow keys to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
@jsvazic
jsvazic / gist:8fe9dde369f6396f65a1aa795dd77744
Last active July 3, 2020 09:30
ippsec process monitor script
#!/bin/bash
# Loop by line
IFS=$'\n'
old_process=$(ps aux --forest | grep -v "ps aux --forest" | grep -v "sleep 1" | grep -v $0)
while true; do
new_process=$(ps aux --forest | grep -v "ps aux --forest" | grep -v "sleep 1" | grep -v $0)
diff <(echo "$old_process") <(echo "$new_process") | grep [\<\>]