Skip to content

Instantly share code, notes, and snippets.

View birdybro's full-sized avatar
🏳️‍🌈
Focusing

Kevin Coleman birdybro

🏳️‍🌈
Focusing
View GitHub Profile
@nicolasnoble
nicolasnoble / sector-prober.c
Created March 24, 2021 18:01
Sector prober
#include <stdint.h>
#include <stdio.h>
static inline uint8_t from_BCD(uint8_t x) { return ((x & 0x0f) + ((x & 0xf0) >> 4) * 10); }
static inline uint32_t from_MSF(uint8_t m, uint8_t s, uint8_t f) {
return (from_BCD(m) * 60 + from_BCD(s)) * 75 + from_BCD(f);
}
static void probe_sector(const uint8_t* sector, unsigned expected_lba) {
// do we have a sync pattern?
@glenselle
glenselle / bridge-diff-subnet.sh
Last active October 22, 2024 20:45
Raspberry PI4 Wifi to Eth Bridge
#!/usr/bin/env bash
set -e
[ $EUID -ne 0 ] && echo "run as root" >&2 && exit 1
apt-get update && apt install -y dnsmasq
# Create a directory where we will store our `iptables` forwarding rules.
mkdir -p /etc/iptables
@SteveALee
SteveALee / README.md
Last active November 11, 2025 15:24
Build audacity with ASIO support on Windows

Build your own Audacity for Windows with ASIO driver support

!!Breaking news - Steinberg recently open sourced the ASIO SDK (GPLv3) so Audacity will be able to release ASIO binaries. As they are focussed on Audacity 4 it might not happen anytime soon though!!

You might want Audacity to work with the ASIO drivers supplied with your sound devices. Commmon reasons for this are:

  • Only ASIO drivers are available for your hardware (eg Behringer mixers)
  • Performance - ASIO has low latency (delays)
  • You don't want to use the ASIO4All bridging driver with non ASIO drivers
  • Multi channel support - though Audacity is not so good at handling other than Stereo or Mono
@hernan43
hernan43 / MiSTer.ini
Created November 14, 2019 17:26
MiSTer FPGA custom modeline for Dell 2007FP 20.1 Inch Ultrasharp 1600x1200
[MiSTer]
key_menu_as_rgui=0 ; set to 1 to make the MENU key map to RGUI in Minimig (e.g. for Right Amiga)
forced_scandoubler=0 ; set to 1 to run scandoubler on VGA output always (depends on core).
ypbpr=0 ; set to 1 for YPbPr on VGA output.
composite_sync=0 ; set to 1 for composite sync on HSync signal of VGA output.
vga_scaler=1 ; set to 1 to connect VGA to scaler output.
hdmi_audio_96k=0 ; set to 1 for 96khz/16bit HDMI audio (48khz/16bit otherwise)
keyrah_mode=0x18d80002 ; VIDPID of keyrah for special code translation (0x23418037 for Arduino Micro)
volumectl=0 ; enable audio volume control by multimedia keys
vscale_mode=1 ; 0 - scale to fit the screen height.
@arthurbeggs
arthurbeggs / install_quartus17.sh
Created November 2, 2019 03:15
Install Quartus Prime Lite 17.0 in Ubuntu
#!/bin/bash
################################################################################
### Install Quartus and ModelSim ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Based on https://github.com/jessebarreto/ConfigureWorkspace script. #
# #
@obstschale
obstschale / autostart
Last active December 21, 2020 18:36
Raspberry Pi Script to autostart Chromium
# /home/pi/.config/lxsession/LXDE-pi/autostart before Buster
# /etc/xdg/lxsession/LXDE-pi/autostart on Buster
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@sh /home/pi/bin/start-chromium.sh

Setting up RetroArch on Raspberry Pi 4 and building emulator cores

Guide for myself and others to get RetroArch running on the new Raspberry Pi 4 while projects like RetroPie get an image out for the rpi4.
Disclaimer: I am not an expert and this may not be the most optimal build possible, but it works.

Inspiration taken from:

@sgherbst
sgherbst / notes.md
Created March 11, 2019 13:32
Installing Verilator on Windows 10 using a fresh MSYS2 install
  1. Download and install MSYS2: https://sourceforge.net/projects/msys2/
  2. Open MSYS2 shell and run pacman -Syu
  3. After some time you will be prompted to close the MSYS2 shell by clicking the "X" button, which you should do :-)
  4. Relaunch MSYS2 shell and run pacman -Su
  5. Install the required packages for Verilator:
> pacman -S git make autoconf gcc flex bison man perl
  1. Clone the Verilator source and build the latest stable release:
@itsho
itsho / Force 100 DPI Scale.ps1
Created December 20, 2018 09:41
Force 100% DPI Scaling for all screens even if the default value is different
# =========================================================================================================
# if you like to reset your DPI Scaling to the DEFAULT, you can use the registry (Option five) from here:
# https://www.tenforums.com/tutorials/5990-change-dpi-scaling-level-displays-windows-10-a.html#option5
#
# But, since the default value is different on various monitors, if you like to force 100%,
# you need the following trick:
# for each monitor - set DPIValue to 0xFFFFFFFF (which is -1 in DWord)
#
# Last update: 18 December 2018
# Created by: Itsho
@bryc
bryc / YamahaFM.md
Last active December 8, 2025 00:29
Collecting info on Yamaha FM soundchips