Skip to content

Instantly share code, notes, and snippets.

View jda's full-sized avatar

Jade Angrboða jda

View GitHub Profile
@jda
jda / home-rtr1.conf
Created July 23, 2017 06:44
Config from my home ERLite-3
firewall {
all-ping enable
broadcast-ping disable
ipv6-name WAN6_IN {
default-action drop
description "IPv6 packets from the internet to LAN and WAN"
rule 1 {
action accept
description "Allow established and related packets"
state {
@jda
jda / gist:d023d28ac09bcf6190efa9b354adedd4
Created October 21, 2017 20:54
Error when trying to build Python 3.6.3 on Irix 6.5
nekoware/include -I/usr/include -I/usr/nekoware/include -I/usr/include -DPy_BUILD_CORE -o Python/pythonrun.o Python/pythonrun.c
c99 WARNING: -O conflicts with -O3; using latter value (-O3)
cc-1171 c99: WARNING File = Python/pythonrun.c, Line = 1366
The indicated expression has no effect.
offset = (int)PyUnicode_GET_LENGTH(errtext);
^
c99 -c -DNDEBUG -O -O3 -mips4 -I/usr/nekoware/include -TARG:platform=IP27:proc=r10000 -O3 -mips4 -I/usr/nekoware/include -TARG:platform=IP27:proc=r10000 -I. -I./Include -I/usr/nekoware/include -I/usr/include -I/usr/nekoware/include -I/usr/include -DPy_BUILD_CORE -o Python/pytime.o Python/pytime.c
c99 WARNING: -O conflicts with -O3; using latter value (-O3)
@jda
jda / gist:755843f313eb97fed0d124484ea0d408
Created November 9, 2017 16:12
Netgear Orbi extender / RBS40 dmesg
root@RBS40:/# dmesg
Booting Linux on physical CPU 0x0
Linux version 3.14.43 (figo.yan@dni-l-sw02) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.01 r36088) ) #2 SMP PREEMPT Thu Mar 9 12:45:55 EST 2017
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Qualcomm Technologies, Inc. IPQ40xx/AP-DK04.1-C1
Memory policy: Data cache writealloc
On node 0 totalpages: 129792
free_area_init_node: node 0, pgdat c0885080, node_mem_map dfbfa000
Normal zone: 1024 pages used for memmap
@jda
jda / boot.log
Last active August 11, 2022 02:01
Boot log from Netgear Orbi RBS40
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.1-00110
S - IMAGE_VARIANT_STRING=DAAAANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x00000023
S - Reset status Config, 0x00000000
S - Core 0 Frequency, 0 MHz
B - 261 - PBL, Start
@jda
jda / gist:b0ab50ca689584dbee71efb69f9c9940
Created June 11, 2018 15:31
temperature of EX2200-C sitting on top of SRX300
csadmin@jda-sw1> show chassis temperature-thresholds
Fan speed Yellow alarm Red alarm Fire Shutdown
(degrees C) (degrees C) (degrees C) (degrees C)
Item Normal High Normal Bad fan Normal Bad fan Normal
FPC 0 GEPHY1 N/A N/A 80 N/A 95 N/A
FPC 0 GEPHY2 N/A N/A 80 N/A 95 N/A
FPC 0 GEPHY3 N/A N/A 80 N/A 95 N/A
FPC 0 GEPHY4 N/A N/A 80 N/A 95 N/A
FPC 1 GEPHY1 N/A N/A 80 N/A 95 N/A
FPC 1 GEPHY2 N/A N/A 80 N/A 95 N/A
@jda
jda / gist:f8881ec207276a8d6409e5486a22015c
Created October 3, 2018 10:26
output of make validate
Congratulations! All commits are properly signed with the DCO!
go test -test.short -tags "" github.com/docker/machine github.com/docker/machine/commands github.com/docker/machine/commands/commandstest github.com/docker/machine/commands/mcndirs github.com/docker/machine/drivers/amazonec2 github.com/docker/machine/drivers/azure github.com/docker/machine/drivers/azure/azureutil github.com/docker/machine/drivers/azure/logutil github.com/docker/machine/drivers/digitalocean github.com/docker/machine/drivers/driverutil github.com/docker/machine/drivers/errdriver github.com/docker/machine/drivers/exoscale github.com/docker/machine/drivers/fakedriver github.com/docker/machine/drivers/generic github.com/docker/machine/drivers/google github.com/docker/machine/drivers/hyperv github.com/docker/machine/drivers/none github.com/docker/machine/drivers/openstack github.com/docker/machine/drivers/rackspace github.com/docker/machine/drivers/softlayer github.com/docker/machine/drivers/virtualbox github.com/docker/machine/drivers
@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/
@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
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 / 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: