Skip to content

Instantly share code, notes, and snippets.

View SimJoSt's full-sized avatar
🏝️
Remote, based in Germany

Joda Stößer SimJoSt

🏝️
Remote, based in Germany
View GitHub Profile
@jnormore
jnormore / gist:abe729f77b9f7f16c1e5170c970d1084
Created June 16, 2026 22:10
shopify app session exchange for contact capture
/* client side */
if (typeof shopify !== "undefined") {
//get the current session token from shopify
const sessionToken = await shopify.idToken();
// send the session token to your server to exchange it for an online token with the user info
const response = await fetch(GET_USER_INFO_FROM_SESSION_URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
// TODO: add your server api auth headers here
@TeamDijon
TeamDijon / claude-code-context-guide.md
Created February 5, 2026 14:59
Claude Code Context Guide

Claude Code Context Management Guide

Context Loading Overview

SESSION START (always in context)
├── CLAUDE.md                    → Full content loaded
├── .claude/rules/*.md           → Full content loaded
├── Skill metadata               → Names + descriptions only
└── Subagent metadata → Names + descriptions only
@perry-mitchell
perry-mitchell / buttercup.md
Created March 3, 2025 15:53
Buttercup has come to an end - an explanation and a thank you

The Buttercup project is coming to an end

I've spent a long time debating this decision, but it's one that I need to make, since the project has all but stagnated. You've probably noticed or suspected this, if you've come into contact with any of Buttercup's repositories recently. While many of you have helpfully been reporting issues, there have been few responses (especially from myself) and even fewer PRs addressing them.

I wouldn't call this burn-out, first and foremost.. I honestly feel fine and excited by the prospect of developing OSS even. That being said, I do feel substantial relief at the thought of putting Buttercup onto potentially permanent hiatus. The project is enormous in scope - it would be for a small team of developers, let alone a single dev working full time who lacks both the energy and motivation to support the project. I've tried getting more serious help on board too, though since Sallar (the other co-founder) left it's honestly been just myself holding the fort. It's a passion

@rameerez
rameerez / telegram-mtproxy.md
Last active June 22, 2026 17:25
Telegram Proxy How-To: complete and up-to-date MTProxy tutorial

How to set up a Telegram Proxy (MTProxy)

This tutorial will teach you how to set up a Telegram MTProxy on an Ubuntu 22.04 sever using AWS Lightsail, although you can use any other Linux distribution and cloud provider.

Using a Telegram proxy is a safe, easy and effective way of overcoming Telegram bans. It's useful, for example, to keep using Telegram under tyrannical regimes, or to circumvent judges' decisions to block Telegram.

Telegram proxies are a built-in feature in all Telegram apps (both mobile and desktop). It allows Telegram users to connect to a proxy in just one or two clicks / taps.

Telegram proxies are safe: Telegram sends messages using their own MTProto secure protocol, and the proxy can only see encrypted traffic – there's no way for a proxy to decrypt the traffic and read the messages. The proxy does not even know which Telegram users are using the proxy, all the proxy sees is just a list of IPs.

@joshtrichards
joshtrichards / WebDAV-Small-Files-Perf.md
Last active June 13, 2026 20:26
WebDAV Client Small Files Performance Testing

Rankings

Results, ranked so far (executed via unix time command where possible; balance based on wall clock observation cross-verified with log files):

  1. Cyberduck: 12 seconds (!!!)
  2. cURL + NC's Bulk File API: 50 seconds
  3. Duck.sh: 1 minute 10 seconds
  4. cURL (parallel mode aka -Z): 2 minutes 20 seconds
  5. Windows 10: 4 minutes 45 seconds
  6. Rclone: 7 minutes 41 seconds
@Aldaviva
Aldaviva / wmp_h.265_hevc.md
Last active June 21, 2026 18:48
Play H.265/HEVC videos in Windows Media Player (Classic) without a third-party codec pack or media player. Tested using Microsoft.HEVCVideoExtension_2.0.60091.0_x64__8wekyb3d8bbwe with WMP 12.0.20348.1311 on Windows Server 2022 21H2 and 12.0.22621.1105 on Windows 11 22H2.

Download

  1. Go to https://store.rg-adguard.net.
  2. Search for the HEVC Video Extensions from Device Manufacturer (Microsoft.HEVCVideoExtension) app by entering the following store URL into the search box and then clicking the button.
    https://www.microsoft.com/en-us/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq
    
    • Do not use the normal HEVC Video Extensions app URL, because that can't play HEVC videos in Windows Media Player for some inscrutable reason.
  3. Download the AppxBundle file for the version you want.
    • You may have to right click › Save Link As because the URL scheme is http, not https, if your browser is set to enforce HTTPS-only mode.
  • If it tries to save as a filename that's just a GUID, you may copy the correct .AppxBundle filename and save it as that instead.
@rdraward
rdraward / shopifyCustomerOnUpdate.js
Created December 14, 2022 16:16
An example of a code effect added to the Update action of a Shopify Customer model that overrides the metafield data in Gadget first, then sends the information to Shopify so that the data stays in sync
/**
* Fetch the ids for metafields on a resource
*/
const fetchMetafieldIds = async ({ resource, shopifyApi, metafieldSchema, id }) => {
const gidResource = resource.charAt(0).toUpperCase() + resource.slice(1);
const gid = `gid://shopify/${gidResource}/${id}`;
return (
await shopifyApi.graphql(
`
query MetafieldIds($id: ID!) {
@troyfontaine
troyfontaine / README.md
Last active January 6, 2025 18:49
Running Badblocks on External USB Drives attached to a TrueNAS Scale Machine

Badblocks on TrueNAS Scale

  1. Connect your USB drive to the machine
  2. Navigate to the TrueNAS Scale shell by opening the menu, going to System Settings and then clicking on Shell
  3. Locate the drive's device ID using the lsblk command
  4. Check the recommended block size using the command blockdev --getbsz /dev/<YOUR BLOCK DEVICE ID>
  5. Note the block size you got from the last command
  6. STOP! Have you ensured that the USB device does NOT have any important data on it? If it does, stop now, unplug it from the TrueNAS Scale machine and back it up elsewhere! Running the specific badblocks command we'll use will destroy data on the drive!
  7. Okay, you've confirmed there is no data on the drive you need? Good!
  8. Fire up a new tmux session tmux new -s badblocks_
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active June 28, 2026 09:07
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!


Update 2025-07-16: Use either Revanced, NewPipe or Firefox with add-ons. Revanced is my personal pick, due to it being a mod of the official App like Vanced, but better (e.g. it has integration of Sponsor Block, Return YouTube Disklike and more).

I wouldn't recommend Kiwi Browser anymore as it has been discontinued. AFAIK it has been accuired by Microsoft and the extension support has been merged into Edge (Canary). But you'd have to use Edge. Yuck.


@7468696e6b
7468696e6b / okular-appleSilicon.md
Last active March 31, 2026 17:36
how to install Okular viewer on macOS Big Sur, using M1/Apple Silicon/arm64
  1. Install homebrew from https://brew.sh/ (follow the instructions there)
  2. tap the https://invent.kde.org/packaging/homebrew-kde/ repo, brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git
  3. brew edit okular, workaround now is to comment out or delete the line depends_on "chmlib" (won't compile on macos arm64 for now as of 2021-08-18), then save (if using vim you need to first press i to insert/type, when saving then <esc> then :wq then <enter>.
  4. brew install okular, wait for stuff to compile and/or install
  5. It may ask for keychain credentials (to sign the binaries? because of mac arm64 security policy https://eclecticlight.co/2021/01/26/when-you-dont-have-permission-to-run-an-app-on-an-m1-mac/)
  6. $(brew --repo kde-mac/kde)/tools/do-caveats.sh
  7. Now okular is in your $HOME/Applications/KDE folder, and will show up in Launchpad! You can view pdf, djvu, etc documents.

Edit: as of 2025 there is now a precompiled nightly binary available for download at https://okul