Skip to content

Instantly share code, notes, and snippets.

View 43trh's full-sized avatar
🎯
Focusing

43trh 43trh

🎯
Focusing
View GitHub Profile
@43trh
43trh / eruda.js
Created July 14, 2025 16:11 — forked from suderman/eruda.js
Eruda Bookmarklet
javascript:(function()%7Bvar%20erudaScript%3Ddocument.createElement('script')%3BerudaScript.src%3D%22%2F%2Fcdn.jsdelivr.net%2Fnpm%2Feruda%2Feruda.min.js%22%3Bvar%20erudaTimingScript%3Ddocument.createElement('script')%3BerudaTimingScript.src%3D%22%2F%2Fcdn.jsdelivr.net%2Fnpm%2Feruda-timing%2Feruda-timing.min.js%22%3Bvar%20erudaCodeScript%3Ddocument.createElement('script')%3BerudaCodeScript.src%3D%22%2F%2Fcdn.jsdelivr.net%2Fnpm%2Feruda-code%2Feruda-code.min.js%22%3Bvar%20erudaDomScript%3Ddocument.createElement('script')%3BerudaDomScript.src%3D%22%2F%2Fcdn.jsdelivr.net%2Fnpm%2Feruda-dom%2Feruda-dom.min.js%22%3Bdocument.body.appendChild(erudaScript)%3BerudaScript.onload%3Dfunction()%7Beruda.init()%3Bdocument.body.appendChild(erudaTimingScript)%3BerudaTimingScript.onload%3Dfunction()%7Beruda.add(erudaTiming)%7D%3Bdocument.body.appendChild(erudaCodeScript)%3BerudaCodeScript.onload%3Dfunction()%7Beruda.add(erudaCode)%7D%3Bdocument.body.appendChild(erudaDomScript)%3BerudaDomScript.onload%3Dfunction()%7Beruda.add(erud
@43trh
43trh / unicode_header.py
Created July 14, 2025 04:35 — forked from mjpost/unicode_header.py
Standard Python header
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python *sucks* at UTF-8 (don't tell me "It's fixed in Python 3"; I don't care, plus no one uses Python 3)
# If you put this at the top of every Python script, however, it get rids of most of the headaches dealing with STDIN
# and STDOUT (basically, akin to "perl -C31"). I don't know if it's all necessary; I just know that if I put it at
# the top of my scripts, most of the problems go away, and I can stop thinking about it.
import sys
import codecs
@43trh
43trh / bundle.js
Created July 3, 2025 20:30 — forked from jackgill/bundle.js
A node.js script to create a bundle containing an npm package, and all of its dependencies.
/*
* This script will download a package (and all of its dependencies) from the
* online NPM registry, then create a gzip'd tarball containing that package
* and all of its dependencies. This archive can then be copied to a machine
* without internet access and installed using npm.
*
* The idea is pretty simple:
* - npm install [package]
* - rewrite [package]/package.json to copy dependencies to bundleDependencies
* - npm pack [package]
// ==UserScript==
// @name eruda dev-console
// @namespace http://tampermonkey.net/kayCODE
// @version 0.32
// @description dev-console (eruda.js) for mobile browsers using JS injection (tampermonkey and etc.)
// @author new version-line by kayCode, base code by kairusds
// @match *://*/*
// @require https://cdn.jsdelivr.net/npm/[email protected]/eruda.min.js
// @icon https://www.google.com/s2/favicons?domain=eruda.liriliri.io
// @downloadURL https://gist.githubusercontent.com/43trh/ffd8c58da8d34d1e566f7dac03dc82f6/raw/0628d09b593618889885601182914b9a20a78a80/eruda.userscript.js
@43trh
43trh / Alpine_Linux_minirootfs_install.md
Created June 1, 2025 22:29 — forked from lidgnulinux/Alpine_Linux_minirootfs_install.md
Install Alpine Linux Via Minirootfs Archive.

Install Alpine Linux Via Minirootfs Archive.

Prerequisites.

  • Any live usb bootable.
  • Alpine Linux minirootfs archive, we can get it here. We can choose alpine-minirootfs-3.20.2-x86_64.tar.gz.
  • Some partitions, for root system (/), efi (if you have uefi machine) and swap (optional).
  • Basic commandline knowledge.

Steps.

@43trh
43trh / .block
Created April 24, 2025 02:54 — forked from tompiler/.block
Zoomable candlestick chart
license: mit
@thoughtsunificator
thoughtsunificator / script.user.js
Created February 5, 2025 01:37
[userscript] Block ads on Youtube
// ==UserScript==
// @license MIT
// @copyright Copyright (c) 2019, Romain Lebesle <[email protected]> (https://thoughtsunificator.me)
// @namespace https://thoughtsunificator.me
// @name Block ads on Youtube
// @author Romain Lebesle <[email protected]> (https://thoughtsunificator.me)
// @supportURL https://thoughtsunificator.me/
// @version 1.2
// @description Block ads on Youtube
// @run-at document-start
@shadowdreamer
shadowdreamer / fetchInterceptor.user.js
Last active February 6, 2025 23:30
XHR & Fetch Interceptor
// ==UserScript==
// @name XHR & Fetch Interceptor
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 拦截并修改XHR和Fetch请求响应 douyin
// @author You
// @match *://*.douyin.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
@43trh
43trh / filedownloader.py
Created February 2, 2025 12:12 — forked from bitoffdev/filedownloader.py
filedownloader.py
# Python file downloader for Pythonista by OMZ Software
# By: EJM Software ---- http://ejm.cloudvent.net
# Source: https://gist.github.com/89edf288a15fde45682a
# *****************************************
# This simple script uses the requests module to download files
# and the ui module to show a progress bar
# You can use this bookmarklet to download files from Safari:
# javascript:window.location='pythonista://filedownloader?action=run&argv='+encodeURIComponent(document.location.href);
import ui, console, clipboard, sys, requests, zipfile
@JLCareglio
JLCareglio / #README.md
Last active February 8, 2025 21:11
🇺🇸 Adds a floating button to toggle Picture-in-Picture mode for videos on mobile devices. 🇦🇷 Agrega un botón flotante para alternar el modo Imagen en Imagen para videos en dispositivos móviles.

Floating PIP Button

This UserScript adds a floating button that enables Picture-in-Picture (PIP) mode for videos on mobile devices.

imageimageimage

License: MIT Tampermonkey YouTube