Skip to content

Instantly share code, notes, and snippets.

View surfaceflinger's full-sized avatar
🦗
elo 20 13 rpk

surfaceflinger

🦗
elo 20 13 rpk
View GitHub Profile
@surfaceflinger
surfaceflinger / dell-optiplex-9020sff-uefi
Last active December 26, 2023 12:24
Minimal coreboot+SeaBIOS/EDK2 configs for devices that I own.
# Cherry-pick https://review.coreboot.org/c/coreboot/+/55232
# Display not working on dedicated GPUs, needs working setup IntelGopDriver which I can't figure out :/
# If you need to change bootorder, UEFI settings etc. - connect DisplayPort to the motherboard.
# Internal flashing is available once you short service mode pins near PCIe and boot with iomem=relaxed.
# If you bricked your board then
# 4MB flash is MX25L3273E
# 8MB flash is MX25L6473F
# Base
CONFIG_VENDOR_DELL=y
@surfaceflinger
surfaceflinger / worker.js
Created October 15, 2022 22:07
cloudflare worker -> oracle cloud object storage proxy
addEventListener('fetch', event => {
handleRequest(event);
})
/**
* Respond to the request
* @param {Request} request
*/
async function handleRequest(event) {
var url = new URL(event.request.url);
@surfaceflinger
surfaceflinger / hostname.vio0
Created May 21, 2021 13:45
netcup IPv6 interface configuration for OpenBSD
inet xxx.xxx.xxx.xxx 255.255.252.0 NONE
inet6 xxxx:xxxx:xxxx:xxxx::1 64
up
!route add -inet default 188.68.52.1
!route add -inet6 :: fe80::1%vio0
#!/usr/sbin/nft -f
# Hook order is: ingress -> prerouting -> input/output/forward -> postrouting
# Start by flushing all the rules.
flush ruleset
# Defining variables is easy in nftables scripts.
define wan = eth0
define vpn = wg0
@surfaceflinger
surfaceflinger / media-rescan.sh
Last active November 7, 2022 21:46
Android thingies
#!/bin/sh
adb shell am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///sdcard/ -p com.android.providers.media