Skip to content

Instantly share code, notes, and snippets.

@agail
agail / public gist test.txt
Last active May 2, 2020 17:50
public gist test
Public gist test
@agail
agail / simple-gist.sh
Last active January 25, 2020 19:14
draft
#!/bin/bash
#
# function will create a public gist with file name test.txt containing 'String file contents'
#
# github_user can be Github user name or email address associated with the account.
#
# simple-gist {userid} [gist|gists]
#
gistUrl=https://api.github.com/gists
github_user=$1
@agail
agail / simple-gist.sh
Created February 21, 2020 13:54
simple gist v0.4c
U2FsdGVkX19bC2Lvhsm21WpEzxk161HOljOTyKrm6AzKfpqxa3TIoWx28Mf10DvJ
NC/X5rAuj//lW7tEOhvF/JAayHrdkrITt3ds7X6q8y2e8ALhGZvzGmmM+qUXyL3i
s4wNseqaMGRypSy/YydYyJgIhBJ5+steSwuonoWGcUq3nm6D2RzjBH+vz4zv6wvp
n0NnQmvc1JEo5LzhZ941cW6eKttwnhbTyJP60XXCxnmQTNa4hSrrdDCDRU5QEQ4C
40+AbFw99Q/++V9du4KIzrdK2+8A7/V0CKj3W2K0k6DICXw8uh+h+17RPutxFDhg
1dqukbWBexoJq2065JZWSh+Q6dJVpi1t8sPNz4aJTD7uX+0M6sldIL8NmAkmazUO
sU+0RibU3wWhhpdzTpIPhaBQQOQGMHI65/L/lsDr8nOIVrCwsjGLl7RP9yD4oFsB
fr/aWgpo8u4aBvI7Ku2OMiHCN8X71gfNU74d+nRg7+BWQKjy30OzYqkdLS5yzFbN
ou+ECIfbY8CjDxyY40hd952Pu23bHe5COE3EkgoN57X1K04c9fxoQGmhFbqxaDMi
NT/4qm6vbuZ+FcgBjjPGPN1X73ka9Yb7MlK9vc0oxApV4wCHZn6qEj3asolnfSiE
@agail
agail / lorem
Created February 22, 2020 16:10
text
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec in tellus in odio luctus blandit.
Donec eu dolor vehicula, interdum ipsum sed, convallis elit.
Aliquam varius turpis rhoncus, lacinia lectus sit amet, hendrerit nisi.
Vivamus sit amet nibh placerat, ultrices orci a, vestibulum turpis.
Fusce viverra dolor at maximus cursus.
Duis quis tellus et massa dictum aliquam.
Nullam vel quam vitae eros posuere posuere.
Duis pellentesque libero nec enim vehicula, eu gravida ex maximus.
@agail
agail / urls.md
Last active October 27, 2021 20:28
Useful urls
@agail
agail / findmac.sh
Created April 28, 2020 12:34
simple mac address lookup
#!/bin/bash
#
# description: simple mac address lookup
# version: 0.3
#
# mac address src: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf
#
_uri='https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf'
_macfile=/tmp/mac.txt
@agail
agail / findmac.cmd
Last active October 29, 2020 15:48
simple mac address lookup
@echo off
::
:: description: simple mac address lookup
:: version: 0.6b
::
:: mac address src: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf
::
setlocal enabledelayedexpansion
set uri=https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf
@agail
agail / .vimrc
Last active December 16, 2020 13:44
Vim settings
" Automatically switch into paste mode when pasting text
let &t_SI .= "\<Esc>[?2004h"
let &t_EI .= "\<Esc>[?2004l"
inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
function! XTermPasteBegin()
set pastetoggle=<Esc>[201~
set paste
return ""
@agail
agail / xmlparser.sh
Last active May 19, 2021 19:45
Simple xml parser
#!/bin/bash
#
# version: 0.02
# description: When you are limited to work w/o xpath.
#
# List regions:
# xmlparser [file] lsreg
#
# Get regions:
# xmlparser [file] getreg region
@agail
agail / keepout.patch
Created September 8, 2020 12:52
Fixed decryption + some spelling
--- keepout.sh.txt 2020-09-08 13:08:33.124744273 +0200
+++ keepout.sh 2020-09-08 14:12:39.126369975 +0200
@@ -112,7 +112,7 @@
# -salt
# __DATA__
#
-# Encryption defaults used by "keepout" (file magic, cypher, hashing digest,
+# Encryption defaults used by "keepout" (file magic, cipher, hashing digest
# and pbkdf2 iteration count) can only be set inside the script, at this time.
# Change these will not effect the scripts ability to decrypt existing