Skip to content

Instantly share code, notes, and snippets.

View thedoum's full-sized avatar

Dominique thedoum

  • Lévis, QC, Canada
  • 08:06 (UTC -04:00)
View GitHub Profile
@todbot
todbot / cirpy-showpins.py
Last active July 30, 2025 11:25
Find the defined board.* pins for a CircuitPython board, given a repo directory
#!/usr/bin/env python3
# Find all the defined pins for a CircuitPython board
# 5 Jul 2025 - @todbot / Tod Kurt
# e.g. "cirpy-showpins.py qtpy_m0 ~/projects/adafruit/circuitpython"
# Note: you need a checkout of the CircuitPython github repo for this tool to work
# e.g. "mkdir -f ~/projects/adafruit && cd ~/projects/adafruit && git checkout https://github.com/adafruit/circuitpython/"
import os, sys, re
if len(sys.argv) <= 1:
@RDS5
RDS5 / emg2926_VTR.patch
Created July 21, 2024 20:31
UBoot on Videotron routers requires DEVICE_MODEL header to be EMG2926 rather than AAVK-EM
diff --git a/target/linux/ath79/image/nand.mk b/target/linux/ath79/image/nand.mk
index 1a7eebc..1afe182 100644
--- a/target/linux/ath79/image/nand.mk
+++ b/target/linux/ath79/image/nand.mk
@@ -517,3 +517,10 @@ define Device/zyxel_emg2926_q10a
RAS_BOARD := AAVK-EMG2926Q10A
endef
TARGET_DEVICES += zyxel_emg2926_q10a
+
+define Device/zyxel_emg2926_q10a_VTR
@kilasuit
kilasuit / Install-PowerShell.ps1-enhanced-Readme.md
Last active September 20, 2023 01:44
Examples of using the install-powershell.ps1 script from the PowerShell Repo
let scroll = 0;
function handleNextMedia() {
const el = document.querySelector(".Media");
if (!el) {
document.querySelector(".Profile.custom-scroll").scrollTo(0, scroll + 1800);
return setTimeout(() => handleNextMedia(), 5000);
}
$(el).click();
setTimeout(() => {
$(".MediaViewerActions .icon-download").click();
@Explosion-Scratch
Explosion-Scratch / Bookmarklets.md
Last active January 19, 2026 02:21
Bookmarklets

Copy ChatGPT Transcript as markdown

javascript:void (async () => { let { default: TD } = await import("https://cdn.skypack.dev/turndown");  let json = [   ...document.querySelectorAll(".text-base"), ].map((i) => ({   html: i.innerHTML,   text: i.innerText,   markdown: new TD().turndown(i),   isPrompt: !i.querySelector(".prose"), }));  window.open(   URL.createObjectURL(     new Blob(       [         json           .map((i) =>             i.isPrompt ? `**Prompt**: ${i.text}` : `**ChatGPT**: ${i.markdown}`           )           .join("\n\n"),       ],       { type: "text/plain" }     )   ) ); })()

Google answer

Get a quick answer from google for any question

(async function answer(q) {
  var html = await fetch(
    `https://cors.explosionscratc.repl.co/google.com/search?q=${encodeURI(q)}`,
@SMSAgentSoftware
SMSAgentSoftware / Invoke-HPBIOSUpdate.ps1
Last active January 23, 2024 06:01
Silently updates an HP BIOS using HP Image Assistant
#####################
## HP BIOS UPDATER ##
#####################
# Params
$HPIAWebUrl = "https://ftp.hp.com/pub/caps-softpaq/cmit/HPIA.html" # Static web page of the HP Image Assistant
$BIOSPassword = "MyPassword"
$script:ContainerURL = "https://mystorageaccount.blob.core.windows.net/mycontainer" # URL of your Azure blob storage container
$script:FolderPath = "HP_BIOS_Updates" # the subfolder to put logs into in the storage container
$script:SASToken = "mysastoken" # the SAS token string for the container (with write permission)
@pamburus
pamburus / alacritty.yml
Last active September 17, 2024 11:51
Alacritty configuration file
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@rithvikvibhu
rithvikvibhu / LICENSE
Last active March 11, 2026 09:17
Get tokens for Google Home Foyer API
MIT License
Copyright (c) 2020 Rithvik Vibhu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@revooms
revooms / basic.user.css
Last active October 17, 2025 14:42
Collection of my personal userstyles and userscripts
/* ==UserStyle==
@name Basic Styling
@description Applies basic styles to all webpages
@namespace github.com/revooms
@version 0.1.2
@author revooms
@homepageURL https://gist.github.com/revooms/61a1d536ff6f1b9916a9f865f69e38cc#file-basic-user-css
@updateURL https://gist.github.com/revooms/61a1d536ff6f1b9916a9f865f69e38cc/raw/basic.user.css
==/UserStyle== */
@-moz-document url-prefix(http),
@a1exdandy
a1exdandy / checkm8_a8_a9.patch
Last active October 3, 2024 02:49
ipwndfu patch for s8000/s8003/t7000
diff --git a/Makefile b/Makefile
index 96e99b7..4884309 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,10 @@ arm64:
gobjcopy -O binary -j .text bin/checkm8_arm64.o bin/checkm8_arm64.bin
rm bin/checkm8_arm64.o
+ xcrun -sdk iphoneos clang src/checkm8_nopaddingcorruption_arm64.S -target arm64-apple-darwin -Wall -o bin/checkm8_nopaddingcorruption_arm64.o
+ gobjcopy -O binary -j .text bin/checkm8_nopaddingcorruption_arm64.o bin/checkm8_nopaddingcorruption_arm64.bin