Loop through json using jq to get multiple value:
JSON on the command line with jq:
2FA + ssh keys
Public gist test |
#!/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 |
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 |
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. |
Loop through json using jq to get multiple value:
JSON on the command line with jq:
2FA + ssh keys
#!/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 |
@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 |
" 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 "" |
#!/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 |
--- 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 |