Skip to content

Instantly share code, notes, and snippets.

View ejkarne's full-sized avatar

Eric Karnes ejkarne

View GitHub Profile
@Gateswong
Gateswong / manifest.json
Created December 28, 2012 08:11
Open link in a new popup window in Chrome.
{
"name": "Poput it up!",
"version": "1.0",
"description": "Open the link in a new popup window instead of new tab",
"permissions": ["contextMenus", "tabs"],
"background": {
"scripts": ["menu.js"]
},
"manifest_version": 2
}
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@AviDuda
AviDuda / README.md
Last active April 23, 2024 10:32
Unmuting Twitch VODs
@pylover
pylover / a2dp.py
Last active September 27, 2025 02:50
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
@IanColdwater
IanColdwater / twittermute.txt
Last active October 25, 2025 19:14
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@dlevi309
dlevi309 / profile_defaults.md
Last active June 27, 2025 16:57
An extensive list of settings written when installing a debugging profile from developer.apple.com

Digital Car Key:

Has three sections.

defaults: {
    “com.apple.MobileBluetooth.debug” =     {
        ExtraZoningLog =         {
            EnableZoneLogging = 1;
        };
        FWStreamLogging =         {
@zhuowei
zhuowei / unpackpdx.py
Last active January 2, 2024 10:43
Unpacks a .pdx/.pdz file from the PlayDate
import sys
import os
import zlib
with open(sys.argv[1], "rb") as infile:
indata = infile.read()
magic = b"Playdate PDX\0\0\0\0"
magic_new = b"Playdate PDZ\0\0\0\0"
if not indata[0:len(magic)] in [magic, magic_new]:
@BestPig
BestPig / analogue-pocket-game-patches.md
Last active October 29, 2025 15:08
Patches to convert GameBoy ROM to `.pocket` (Analogue Pocket ROM)

Patches

Those patches are to convert GameBoy ROM to .pocket ROM. This allows you to play games from the SD Card on your Analogue Pocket.
Feature like RTC and Link cable seems to be unsupported by the Analogue Pocket in GB Studio mode.

Legend of Zelda, The - Link's Awakening DX

GitHub: https://github.com/BestPig/LADX-Disassembly-Pocket

Zelda no Densetsu - Yume o Miru Shima DX

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active November 5, 2025 20:03
Make Firefox fast again
@ssv445
ssv445 / Twitter-Interest-List-Reset-Script.js
Last active August 25, 2025 22:52
Twitter Interest List Reset Script (One Liner)
const checkboxes = document.querySelectorAll('input[type=checkbox]');
let index = 0;
(function uncheckNext() { if (index >= checkboxes.length) return; try { if (checkboxes[index].checked) { checkboxes[index].click(); console.log(`Unchecked checkbox at index ${index}`); } else { console.log(`Checkbox at index ${index} is already unchecked`); } index++; setTimeout(uncheckNext, 1000); } catch (error) { console.error('Error while unchecking checkbox:', error); setTimeout(uncheckNext, 5000); } })();