Skip to content

Instantly share code, notes, and snippets.

View jda's full-sized avatar

Jade Angrboða jda

View GitHub Profile
@jda
jda / wtfroots.pem
Created February 1, 2022 03:08
rando overly trusted certs on my gaming/random home stuff computer
Bag Attributes: <Empty Attributes>
subject=CN = Default_COMMON_CPS_IM_CA_sha256RSA, O = Motorola_Solutions Inc, C = US
issuer=C = US, O = Motorola_Solutions Inc, CN = Motorola_Solutions_Default_CommonCPS_CA_sha256RSA
-----BEGIN CERTIFICATE-----
MIIEMjCCAxqgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBqMQswCQYDVQQGEwJVUzEf
MB0GA1UEChQWTW90b3JvbGFfU29sdXRpb25zIEluYzE6MDgGA1UEAxQxTW90b3Jv
bGFfU29sdXRpb25zX0RlZmF1bHRfQ29tbW9uQ1BTX0NBX3NoYTI1NlJTQTAeFw0x
NjAzMDcyMjE0MjNaFw00MTAzMDEyMjE0MjNaMFsxKzApBgNVBAMUIkRlZmF1bHRf
@jda
jda / warframe-srx.conf
Created January 22, 2022 19:54
Port forwarding for Warframe on Juniper SRX
csadmin@fw1# show | compare rollback 1
[edit security nat source rule-set work-to-inet-via-isp1]
rule cod-wz { ... }
+ rule warframe {
+ match {
+ source-address-name unikitty;
+ application warframe-pc;
+ }
+ then {
+ source-nat {
@jda
jda / gist:a3cf146377a411c074d4d4d7fc5c1757
Created April 24, 2021 02:16
weird errors while attempting to update junos on an EX3400
Adding junos-runtime-ex-arm-32-20210301.192034_builder_junos_204_r1_s1 ...
Verified junos-runtime signed by PackageProductionECP256_2021 method ECDSA256+SHA256
Adding junos-runtime-arm-32-20210301.192034_builder_junos_204_r1_s1 ...
Verified jweb-ex signed by PackageProductionECP256_2021 method ECDSA256+SHA256
Adding jweb-ex-arm-32-20210301.192034_builder_junos_204_r1_s1 ...
Verified na-telemetry signed by PackageProductionECP256_2021 method ECDSA256+SHA256
Adding na-telemetry-arm-32-20.4R1-S1.2 ...
Verified oam-ve signed by PackageProductionECP256_2020 method ECDSA256+SHA256
ERROR: unexpected: contents/oamctl
@jda
jda / gist:c2794dc7b9979c9c3615743620a60d5d
Created November 10, 2020 07:32
Bisect upload errors on s3-upload-proxy
# BROKE
[jda@rin s3-upload-proxy]$ git checkout 9d5a4a9345a644034cc59425eee61dd514d9a4b4
Previous HEAD position was 71c2d58 build(deps): bump github.com/aws/aws-sdk-go-v2 from 0.24.0 to 0.25.0
HEAD is now at 9d5a4a9 Update code to be compatible with newer version of aws-sdk-go-v2
[jda@rin s3-upload-proxy]$ go build
[jda@rin s3-upload-proxy]$ HTTP_PORT=8080 ./s3-upload-proxy
INFO[0000] listening on [::]:8080
ERRO[0000] failed to upload file bucket=dicccccccccccccccck contentType=video/iso.segment error="operation error S3: PutObject, failed to compute payload hash: failed to seek body to start, request stream is not seekable" objectKey=init-stream1-0.m4s
^C
[14603.697428] reboot: Power down
NOTICE: BL2: v1.5(release):LSDK-20.04-2-gbfc9139cb-dirty
NOTICE: BL2: Built : 18:49:59, May 6 2020
NOTICE: UDIMM
NOTICE: DDR4 UDIMM with 2-rank 64-bit bus (x8)
NOTICE: 64 GB DDR4, 64-bit, CL=17, ECC off, 256B, CS0+CS1
NOTICE: BL2: Booting BL31
NOTICE: BL31: v1.5(release):LSDK-20.04-2-gbfc9139cb-dirty
NOTICE: BL31: Built : 16:25:25, Apr 30 2020
[jda@seras ~]$ cat /proc/cmdline
BOOT_IMAGE=(hd2,msdos3)/vmlinuz-5.6.12-300.jda.fc32.aarch64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap amdgpu.gpu_recovery=0 amdgpu.pcie_gen_cap=0x00040004 arm-smmu.disable_bypass=0
[jda@seras ~]$ rpm -qa|grep x11
xorg-x11-xkb-utils-7.7-32.fc32.aarch64
xorg-x11-drv-evdev-2.10.6-6.fc32.aarch64
xorg-x11-utils-7.5-34.fc32.aarch64
xorg-x11-server-common-1.20.8-1.fc32.aarch64
xorg-x11-server-Xorg-1.20.8-1.fc32.aarch64
qt-x11-4.8.7-52.fc32.aarch64
xorg-x11-xauth-1.1-3.fc32.aarch64
@jda
jda / gist:4088ab1491d7a60fd430e0bf53667926
Last active May 14, 2020 06:42
kernel / amdgpu crash on honeycomb lx2k
[ 290.735243] [drm] schedsdma0 is not ready, skipping
[ 290.735245] [drm] schedsdma1 is not ready, skipping
[ 290.740313] [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA (-2)
[ 290.753620] Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000008
[ 290.764332] Mem abort info:
[ 290.767114] ESR = 0x96000004
[ 290.770161] EC = 0x25: DABT (current EL), IL = 32 bits
[ 290.775459] SET = 0, FnV = 0
[ 290.778499] EA = 0, S1PTW = 0
[ 290.781630] Data abort info:
From thinkpeterson.com
Tension Tool 120-30-4- Double Ended with a Twist TTB-2WT 1
Peterson Pry Bar - 0.050 Thick PPB 1
Hook 7 - Stainless 0.015 Slender H7-SS 2
Hook 1 - Stainless 0.015 Slender H1-SS 1
Hook 1 - Plastic Gov Steel H1-GSP 1
EAGLE SERIES Nylon EDC Case; 3.75 wide CO-3.75-NC 1
Hook 7 - Plastic Gov Steel H7-GSP 1
@jda
jda / config
Created January 22, 2019 08:20
i3status config
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@jda
jda / netfail.sh
Last active January 2, 2019 08:16
Move bridges to ix0 if up, and fall back to igb0 if ix0 goes down.
root@tachikoma:/etc/devd # cat netfail.conf
notify 20 {
match "system" "IFNET";
match "subsystem" "ix0";
match "type" "(LINK_DOWN|LINK_UP)";
action "/root/net/netfail.sh $type";
};
root@tachikoma:/etc/devd # rm netfail.conf
root@tachikoma:/etc/devd # cat /etc/