Skip to content

Instantly share code, notes, and snippets.

View qlyoung's full-sized avatar
🐈
thinking about bingus

Quentin Young qlyoung

🐈
thinking about bingus
View GitHub Profile
@qlyoung
qlyoung / frr-todo.rst
Created January 17, 2019 18:50
misc things to do in frr
@qlyoung
qlyoung / yang-gotchas.rst
Last active September 11, 2019 19:21
YANG & FRR Northbound gotchas

A list of some interesting edge cases in YANG and the FRR Northbound API.

leafrefs as list keys

A leafref is a reference to a leaf in another part of the data tree. Being leaves themselves, they can be used as the key for a list:

list mylist {
@qlyoung
qlyoung / frr-fuzzing.rst
Created November 18, 2019 21:09
Notes for Fuzzing FRR
  • Wherever possible, disable loading the CLI tree for massive performance gains (> 3x)
  • If running in parallel, disable pidfile checks
  • Skip option parsing
  • Disable checksums where applicable
@qlyoung
qlyoung / hooked-getinputstate.cpp
Last active November 27, 2019 02:31
Display code for hooked ovr_GetInputState
ovrResult mygis(ovrSession session, ovrControllerType controllerType, ovrInputState* inputState)
{
ovrResult r = gis(session, controllerType, inputState);
ovrVector2f lh = inputState->Thumbstick[0];
ovrVector2f rh = inputState->Thumbstick[1];
if (controllerType == ovrControllerType_Touch) {
int resx = 500;
int resy = 500;
@qlyoung
qlyoung / test.diff
Created December 6, 2019 17:45
test gist
- hello
+ world
@qlyoung
qlyoung / setfans-auto.sh
Created December 21, 2019 01:41
set R710 fans to either manual 15% or automatic based on ipmi temperature
#!/bin/bash
# ----------------------------------------------------------------------------------
# Script for checking the temperature reported by the ambient temperature sensor,
# and if deemed too high send the raw IPMI command to enable dynamic fan control.
#
# Requires:
# ipmitool – apt-get install ipmitool
# slacktee.sh – https://github.com/course-hero/slacktee
# ----------------------------------------------------------------------------------
@qlyoung
qlyoung / challenges-with-running-cpu-pinned-processes-within-docker.md
Last active January 14, 2025 13:09
Some notes on issues faced when using CPU pinning within a docker container

Challenges with running CPU pinned processes within Docker

Programs that want to bind themselves to free cores present some challenges
when run within Docker.

CPU pinning allows a program to request it be assigned exclusively to a core or set of cores This improves cache locality and other factors that become relevant for extremely CPU bound processes, especially in combination with other configurations that prevent the scheduler from assigning other processes

@qlyoung
qlyoung / wtf-canonical.md
Created January 28, 2020 07:26
wtf canonical
  • Snaps don't work if your homedir isn't /home/foo
  • Snaps don't work if your homedir is /home/foo but it's nfs
  • microk8s straight up doesn't work on zfs (canonical/microk8s#401)

what is software testing

@qlyoung
qlyoung / sample-bsm-crash-logs.txt
Created April 6, 2020 15:29
PIM bsm crash logs
2020/03/29 18:25:08 warnings: PIM: pim_parse_addr_group: unknown group address encoding family=0 mask_len=0 from
2020/03/29 18:25:08 warnings: PIM: pim_tlv_parse_holdtime: PIM hello holdtime TLV with incorrect value size=173 correct=2 from 0.1.0.173 on interface fuzziface
2020/03/29 18:25:08 warnings: PIM: pim_tlv_parse_holdtime: PIM hello holdtime TLV with incorrect value size=173 correct=2 from 0.1.0.173 on interface fuzziface
2020/03/29 18:25:08 warnings: PIM: pim_tlv_parse_holdtime: PIM hello holdtime TLV with incorrect value size=173 correct=2 from 0.1.0.173 on interface fuzziface
2020/03/29 18:25:08 warnings: PIM: pim_tlv_parse_holdtime: PIM hello holdtime TLV with incorrect value size=173 correct=2 from 0.1.0.173 on interface fuzziface
2020/03/29 18:25:08 warnings: PIM: pim_tlv_parse_holdtime: PIM hello holdtime TLV with incorrect value size=173 correct=2 from 0.1.0.173 on interface fuzziface
2020/03/29 18:25:08 warnings: PIM: pim_tlv_parse_holdtime: PIM hello holdtime TLV with incorrect value size=173
@qlyoung
qlyoung / gist:a8ad8417f38c8d3df526d22e54faec5a
Created August 30, 2020 07:23
Procedure for importing data from Shearwater Teric to Subsurface on Windows 10
- In Windows, open Settings -> Bluetooth & other devices
- If Teric has been paired before, click it and click "Remove device"
- Open Subsurface, go to Import -> From Dive Computer
- In Windows Settings, click Add Bluetooth or other device -> Bluetooth
- On Teric, initiate Bluetooth mode (it seems it only sends one beacon at
startup, so Windows must be listening on the adapter first)
- Pair the Teric when it appears in the Windows panel
- Go to Subsurface, select the Teric as the model, and click "Download"
- If it fails, repeat all steps; sometimes it only works on the second try