Skip to content

Instantly share code, notes, and snippets.

View lazd's full-sized avatar

Larry Davis lazd

View GitHub Profile
@lazd
lazd / nginx.conf
Created October 12, 2023 15:55
nginx.conf for reverse proxy
#user nobody;
worker_processes 1;
# error_log /usr/local/var/log/nginx/error.log;
# error_log /usr/local/var/log/nginx/error.log notice;
error_log /usr/local/var/log/nginx/error.log info;
#pid logs/nginx.pid;
@lazd
lazd / GLideN64.custom.ini
Last active July 11, 2021 01:51
GLideN64.custom.ini to fix Goldeneye 007 rendering issues/white flickering for multiplayer on RetroPie with ParaLLEl + GLideN64
# Add everything below to /opt/retropie/configs/n64/GLideN64.custom.ini
[GOLDENEYE]
Good_Name=007 - GoldenEye (E)(U)
frameBufferEmulation\enable=0
generalEmulation\enableFragmentDepthWrite=0
@lazd
lazd / eep2srm.sh
Last active July 9, 2021 18:55
Convert Nintendo 64 .eep to .srm
#!/bin/sh
# Usage: ./eep2srm "Goldeneye 007.eed" "Goldeneye 007.srm"
# Make sure the script is executable: chmod +x eep2srm.sh
dd if=/dev/zero bs=296960 count=1 of="$2"
dd if="$1" bs=2048 count=1 conv=notrunc of="$2"
echo "Done!"
# version
# Betaflight / STM32F7X2 (S7X2) 4.1.3 Jan 16 2020 / 11:35:53 (543a5e1ba) MSP API: 1.42
# manufacturer_id: IFRC board_name: IFF7_TWIN_G custom defaults: YES
# start the command batch
batch start
board_name IFF7_TWIN_G
manufacturer_id IFRC
@lazd
lazd / FaceTime Auto-answer.scpt
Last active July 2, 2020 16:15
Automatically answer FaceTime calls from a given set of contacts
(*
FaceTime Auto-answer
Automatically answer FaceTime calls from a given set of contacts
Sources:
https://blakeembrey.com/posts/2015-06-facetime-auto-answer
https://github.com/PaperCutSoftware/teleportme/issues/17#issuecomment-517218493
*)
set contacts to {"Manali Davis", "Leah Davis", "Larry Davis", "Eileen Keveny", "Pam Roberts", "Allison Lutge", "Michelle Miller"}
@lazd
lazd / origin-DSDT.aml.c
Last active January 12, 2020 17:23
Goodix DSDT entry
Scope (_SB.PCI0.I2C2)
{
Device (TPL1)
{
Name (HID2, Zero)
Name (SBFH, ResourceTemplate ()
{
I2cSerialBusV2 (0x0014, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C2",
0x00, ResourceConsumer, _Y2F, Exclusive,
@lazd
lazd / .zshrc
Last active January 6, 2020 06:40
Goodix kext functions
VOODOOKEXTDIR="~/Library/Developer/Xcode/DerivedData/VoodooI2C-hkujhbyvdpyfqxdamhidwpiudbmp/Build/Products/Release"
KEXTDIR="/Volumes/EFI/EFI/CLOVER/kexts/Other/"
function mktmp() {
mkdir -p ~/tmp
}
function dumpklog() {
if [ $# -eq 0 ]; then
time=3m
@lazd
lazd / HWDB
Created December 31, 2019 03:00
Chuwi MiniBook Ubuntu Info
P: /devices/LNXSYSTM:00
L: 0
E: DEVPATH=/devices/LNXSYSTM:00
E: SUBSYSTEM=acpi
E: MODALIAS=acpi:LNXSYSTM:
E: USEC_INITIALIZED=12351931
E: ID_VENDOR_FROM_DATABASE=The Linux Foundation
P: /devices/LNXSYSTM:00/ACPI0008:00
L: 0
# version
# Betaflight / OMNIBUSF4SD (OBSD) 4.1.0 Oct 16 2019 / 11:48:35 (c37a7c91a) MSP API: 1.42
# start the command batch
batch start
# reset configuration to default settings
defaults nosave
board_name OMNIBUSF4SD
@lazd
lazd / HDCruiser
Last active November 2, 2019 17:01
# version
# Betaflight / OMNIBUSF4SD (OBSD) 4.1.0 Oct 16 2019 / 11:48:35 (c37a7c91a) MSP API: 1.42
# start the command batch
batch start
# reset configuration to default settings
defaults nosave