Skip to content

Instantly share code, notes, and snippets.

@ncflagg
ncflagg / continue.sh
Last active June 16, 2020 10:51
openpilot: OG Eon tri-state switch mod + auto-enable WiFi hotspot
#!/usr/bin/bash
# Adapted from Erich's tri-state switch mod which allows choosing from three installed openpilot locations on boot
# I've only really added some error-checking and fallback options
# Boot locations:
# /data/openpilot.1
# /data/openpilot.2
# /data/openpilot.3
#
# Moves existing real /data/openpilot dir (I.E not a symlink) to /data/openpilot.backup
@0chroma
0chroma / VFIO Setup Guide.md
Last active March 12, 2024 13:49
Windows 10 VFIO QEMU Setup

VFIO Setup Guide

I play games regularly, and the sad reality is that it forces me to use Windows on my desktop. There's a Linux installation on there, but rebooting into it is such a massive interruption that I usually just move over to my laptop for programming. Working on a laptop leads to all sorts of ergonomic issues, and it felt like a massive waste to not develop on the desktop hardware I invested so much in. So after extensively researching what the VFIO community has been doing, I've deleted my Windows installation and moved all my gaming into a virtual machine on a Linux host.

Normally VMs are too slow for gaming, but thanks to a feature called VFIO you can run games at near-native performance by passing graphics cards and USB controllers directly to a virtual machine. The only requirement is that your board supports IOMMU, which most modern systems have. In this guide I'll wal

@pylover
pylover / a2dp.py
Last active March 11, 2024 03:06
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3
"""Fixing bluetooth stereo headphone/headset problem in debian distros.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
Licence: Freeware
@noelleleigh
noelleleigh / filterPins.user.js
Last active July 2, 2017 00:23
Adds buttons to Pinterest to allow filtering of certain annoying pins.
// ==UserScript==
// @name Filter Pins
// @namespace https://gist.github.com/noahleigh/
// @version 3.1.2
// @author Noah Leigh
// @description Add buttons that let the user toggle the visibility of certain pins on Pinterest.
// @homepage https://gist.github.com/noahleigh/0c71909a860d15ea56fd
// @match https://*.pinterest.com/*
// ==/UserScript==