Skip to content

Instantly share code, notes, and snippets.

@charles-dyfis-net
charles-dyfis-net / fixed.sh
Last active March 13, 2018 16:24 — forked from dabura667/fixed.sh
Fixed pubkey command
curl \
--data-urlencode sig="`\
echo '{"body":{"key":{"eldest_kid":"0101a8dbef6ea8164aaa7a3616de95a1843c6e1996a5102c90200b54b41ba97de49b0a","fingerprint":"0a6a58a14b5946abde18e207a3adb67a2cdb8b35","full_hash":"99ed12fa1979ef175aecaaf3f0872f9e3ccfd30d1a8dcdf6e756ce0227ce4f80","host":"keybase.io","key_id":"a3adb67a2cdb8b35","kid":"0101a8dbef6ea8164aaa7a3616de95a1843c6e1996a5102c90200b54b41ba97de49b0a","uid":"03a69327bfbb7860c772345076484c19","username":"isislovecruft"},"type":"eldest","version":1},"ctime":1519428650,"expire_in":157680000,"prev":null,"seqno":1,"tag":"signature"}' | \
gpg -u '0a6a58a14b5946abde18e207a3adb67a2cdb8b35' -a --sign`" \
--data-urlencode type="eldest" \
--data-urlencode session="lgHZIDAzYTY5MzI3YmZiYjc4NjBjNzcyMzQ1MDc2NDg0YzE5zlqQo1vOAeEzgNkgNzBmMmUwYzk5M2FiMjNkODQ3N2E1YjE1YTFiOGIxMDLEIOVa/OtsvVcgT66tlmlrIbkALadXIktmr5D4I4HdH2cY" \
--data-urlencode csrf_token="lgHZIDAzYTY5MzI3YmZiYjc4NjBjNzcyMzQ1MDc2NDg0YzE5zlqQo1vOAAFRgMDEIIyPeDuHFq5EBgnha6MTZ8cSrgXO5XbEKP2QFOENmvD9" \
@charles-dyfis-net
charles-dyfis-net / addhost.sh
Last active November 2, 2015 19:34
creating config files for nagios
#!/bin/bash
while IFS=, read -r host ip cont _ <&3; do
parent=${ip%.*}.1
TMPL=HOST-TEST.tmpl
FILE=$host.cfg
awk \
-v HOST="$host" \
-v CONT="$cont" \
-v PARENT="$parent" \
-v IP="$ip" \
(defproject tst "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"],
[prxml "1.3.1"]],
:main tst.core/foo)
</array>
<key>CFBundleExecutable</key>
<string>firefox</string>
<key>CFBundleGetInfoString</key>
<string>Firefox 13.0</string>
<key>CFBundleIconFile</key>
<string>firefox</string>
<key>CFBundleIdentifier</key>
<string>org.mozilla.firefox</string>
<key>CFBundleInfoDictionaryVersion</key>
#!/bin/bash
while read -r diff
do
echo "$diff"
done < <(comm -12 <(sort db) <(sort dbnew)))