Skip to content

Instantly share code, notes, and snippets.

View aegiap's full-sized avatar
💭
computering...

aegiap aegiap

💭
computering...
View GitHub Profile
Verifying that +aegiap is my blockchain ID. https://onename.com/aegiap
@aegiap
aegiap / gist:5b99da4c6cc9b7f03424defe3d3cbf66
Created April 9, 2016 18:12
keychain patch for gnupg agent
--- /usr/bin/keychain 2016-04-09 20:08:08.770147928 +0200
+++ /usr/bin/keychain.new 2016-04-09 20:07:57.778106005 +0200
@@ -1622,7 +1622,7 @@
set +f # re-enable globbing
for k in "$@"; do
- echo | env LC_ALL="$pinentry_lc_all" \
+ echo | env LC_ALL="$pinentry_lc_all" GPG_AGENT_INFO="$inherit_gpg_agent_info" \
gpg --no-options --use-agent --no-tty --sign --local-user "$k" -o-
[ $? != 0 ] && tryagain=true
@aegiap
aegiap / keybase.md
Created September 11, 2016 21:49
keybase

Keybase proof

I hereby claim:

  • I am aegiap on github.
  • I am aegiap (https://keybase.io/aegiap) on keybase.
  • I have a public key whose fingerprint is D8AE 8823 ED03 9C8A 3AA7 15E7 EDF8 434F 6C53 6F71

To claim this, I am signing this object:

@aegiap
aegiap / keychain.diff
Created October 6, 2016 06:53
Fix in keychain tool for the new gnupg version shipped in Debian stretch
# For:
# ii gnupg 2.1.15-3
--- /usr/bin/keychain.orig 2016-10-06 08:49:53.143192623 +0200
+++ /usr/bin/keychain 2016-10-06 08:49:46.319190780 +0200
@@ -1077,7 +1077,7 @@
# Check for gpg
if wantagent gpg; then
if [ -z "$pm_gpgsecrets" ]; then
- pm_gpgsecrets="`gpg --list-secret-keys 2>/dev/null | cut -d/ -f2 | cut -d' ' -f1 | xargs`"
@aegiap
aegiap / er-poe-boot.log
Created January 26, 2017 20:34
er-poe boot log
U-oot .. (UBT BildI: 46791-g1e9bd (Buld tie u 4203 1:10)
UB_100 r11 r2:22, f:8/135, serial #: 24A43CB3B3AF
DRAM: 512 MB00 MHz, DDR clock: 6 MHz (532 Mhz data rate)
Clearn DRA.... doe
Flash: 8 MB
Net: oceth0, octeth1, octeth2
SB: (port 0) ngus for devces... 1USB Devices fon
eic :Vno: Capacity: 3824.0 MB = 3.7 GB (7831552 x 512)
@aegiap
aegiap / ER-POE-panic
Created January 26, 2017 20:35
ER-POE panic info
INI: verson288 booting
Krnic -ynci:cu:booti 6 eomBUG:soft lokup-CU0 stc fr2s sudo:29
*** NMI atchdg nterut o Co x0***
a0 x000000000007a120b910xffa1fffc060x00000000000001f4
a6 x80000000017849e8x000000a79873920xffffffffc07c00000000000000000001
t0 0x00000000a0000000 t1 0xffffffffc07c0000
t2 0x000000000000003c t3 0x000000000000ea60
s0 0x000000000000206c s1 0x0000000000000012
s2 0x00000000000020d0 s3 0x0000000000000000
s4 0xffffffffc07b0000 s5 0x00000000000003e8
Objet CVE-2017-3138: named exits with a REQUIRE assertion failure if it receives a null command string on its control channel
CVE: CVE-2017-3138
Document Version: 2.0
Posting date: 12 April 2017
Program Impacted: BIND
Versions affected: 9.9.9->9.9.9-P7, 9.9.10b1->9.9.10rc2,
9.10.4->9.10.4-P7,
9.10.5b1->9.10.5rc2, 9.11.0->9.11.0-P4,
9.11.1b1->9.11.1rc2, 9.9.9-S1->9.9.9-S9
CVE: CVE-2017-3142
Document Version: 2.0
Posting date: 29 June 2017
Program Impacted: BIND
Versions affected: 9.4.0 -> 9.8.8, 9.9.0 -> 9.9.10-P1, 9.10.0 ->
9.10.5-P1,
9.11.0 -> 9.11.1-P1, 9.9.3-S1 -> 9.9.10-S2,
9.10.5-S1 -> 9.10.5-S2
Severity: Medium
Exploitable: Remotely
switch ntp for ntpsec (because ?? security, support, logging features, find that accuracy/feature comparison chart again)
use gpsd from git head, armbian/debian package is several versions/features behind
gpsd -r; missing from pkg version, probably a bad idea anyway since the neo6m rtc/batt is likely for fix/ephemeris and gps will send 1969 without sat lock
gpsd -G; not working to bind * instead of localhost, try in newer version -- need this for u-center access remotely from Windows
https://www.u-blox.com/sites/default/files/products/documents/u-blox6_ReceiverDescrProtSpec_%28GPS.G6-SW-10018%29_Public.pdf
per page 39 disable SBAS, other timepulse/timing tips
see if 'static' mode available on 6m or only T versions
chronodot ds3231 rtc tcxo with battery for initial time / no fix / no network situations
@aegiap
aegiap / gist:cbd00fe5542412faa38848676c9a4ba7
Created April 11, 2018 21:36 — forked from Grogdor/gist:27691c45bab78617e875fd53ca2d094c
NanoPi Neo running armbian debian with ntp serial uart GPS gpio PPS from u-blox NEO-6M (GY-NEO6MV2)
Linux nanopineo 4.14.15-sunxi #28 SMP Mon Jan 29 07:24:48 CET 2018 armv7l GNU/Linux
Order "GY-NEO6MV2" GPS module from Aliexpress for $4
Add uart1 and pps-gpio fdt overlays, assign PPS pin
per https://docs.armbian.com/User-Guide_Allwinner_overlays/
Using a GPIO pin instead of a uart control pin because this
armbian kernel already has CONFIG_PPS_CLIENT_GPIO=m instead
of LDISC and not even sure it would work on a CTS pin anyway.