Skip to content

Instantly share code, notes, and snippets.

@0xkuj
0xkuj / SafariX-JS-Known-Fixes.md
Last active April 22, 2025 08:03
SafariX tweak JS to fight back webkit issues on older iOS

SafariX JavaScript Fixes Collection

A collection of JavaScript fixes for various websites that can be used with SafariX tweak. Each fix includes a description of the issue it solves and the JavaScript code to fix it. To use it, go to SafariX settings -> JavaScript Injection -> add the domain as stated in this gist -> press on the domain -> enable subdomains if needed -> paste the js code into the text box below the toggle


ChatGPT Scroll Fix 1

iOS: 15/16

@tyhallcsu
tyhallcsu / Trollstore_All_Links_8076_URLS_by_sharmanhall.txt
Created September 20, 2024 05:11
Trollstore-IPA-SwaggyP6300---8,076-IPA-Archive-Links So i scraped all the archive links, and here is an unabriged collection. Most of the URLs work, and you can download the IPA files thanks to archive[dot]org. Full compiled list of 8,076 IPA links: - https://gist.github.com/tyhallcsu/30a862531c44f3e422e182bf3b23488f -------- Archive Sources Scr…
@padgriffin
padgriffin / StartIsBack Cleanup.xml
Created July 18, 2024 01:21
Task Scheduler Task that removes the key for StartIsBack Trial upon logon
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2024-07-18T02:11:06.5028053</Date>
<Author>KINGCLAWTHORNE\Pad</Author>
<URI>\StartIsBack Cleanup</URI>
</RegistrationInfo>
<Triggers>
<LogonTrigger>
<Enabled>true</Enabled>
@thesamesam
thesamesam / xz-backdoor.md
Last active April 7, 2025 09:15
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@gd3kr
gd3kr / embeddings.py
Created February 15, 2024 20:35
compute embeddings for tweets in tweets.json
"""
a simple script that reads tweets inside a json file, uses openai to compute embeddings and creates two files, metadata.tsv and output.tsv, which cam be used to visualise the tweets and their embeddings in TensorFlow Projector (https://projector.tensorflow.org/)
"""
# obtain tweets.json from https://gist.github.com/gd3kr/948296cf675469f5028911f8eb276dbc
import pandas as pd
import json
from openai import OpenAI
import Foundation
import SwiftUI
// MARK: - Custom Button Style
struct MobileMeButtonStyle: ButtonStyle {
// MARK: Metrics
@ScaledMetric private var cornerRadius = 12
@ScaledMetric private var horizontalLabelPadding = 12
@ScaledMetric private var verticalLabelPadding = 8
@Kenny-MWI
Kenny-MWI / slack_tweaks.md
Last active April 23, 2025 15:56
Slack Tweaks

Slack Tweaks

In Fall 2023, Slack introduced an updated client with some unpopular UI changes. The tweaks in this document can be used to revert to the old client or hide the new side bar. These will reset every time you fully close Slack but they are easy to re-apply once you get the hang of it.

(Cross Platform) Open Dev Tools [Preferred Option]

To run any of these scripts, you'll need to open the Dev Tools (or Console). You can do this by typing /slackdevtools in a Slack channel or direct message. These are the same Dev Tools you'd get in Chrome if you hit F12. Along the top are tabs for Elements, Console, Sources, Network, etc. You'll want to paste these scripts into the Console tab at the > prompt.

If Slack disables this command, then you can open Dev Tools by setting a system-wide environment variable and using a keyboard shortcut to open the console. If /slackdevtools worked for you then you can skip these next two sections.

(Mac OS) Enable Dev Mode

@thisbit
thisbit / googleSheetsEndpoint.js
Created July 15, 2023 07:51
Google Sheets as JSON, use this with Extensions > App Script in google sheets
function getSheetDataAsJSON() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var range = sheet.getDataRange();
var values = range.getValues();
var headers = values[0];
var jsonData = [];
for (var i = 1; i < values.length; i++) {
var row = values[i];
var rowObj = {};
@jetfir3
jetfir3 / tmpdevmodify.sh
Last active January 4, 2025 00:51
Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
#!/usr/bin/env bash
# Temporarily enable developer mode for the Spotify desktop client on Linux and macOS.
showHelp () {
echo -e \
"Usage: ./tmpdevmodify.sh [option]\n
Options:
-c, --clearcache Clear Spotify app cache
-d, --debug Add Debug Tools to user dropdown menu
@tyhallcsu
tyhallcsu / Extract Dropbox Image URLs to Clipboard.js
Last active January 17, 2024 22:36
This is a userscript that extracts image URLs from a Dropbox page and copies them to the clipboard when a button is clicked. The script creates a button on the page that, when clicked, scrolls to the bottom of the page, waits for new images to load, and extracts the image URLs. The script then joins the URLs into a string separated by newlines a…
// ==UserScript==
// @name Bulk Export Dropbox Image URLs (2024)
// @version 3.1.1
// @description Extracts image URLs from a Dropbox page and copies them to the clipboard when a button is clicked.
// @author sharmanhall
// @supportURL https://github.com/tyhallcsu/dropbox-image-url-extractor/issues/new
// @namespace https://github.com/tyhallcsu/dropbox-image-url-extractor
// @homepageURL https://github.com/tyhallcsu/dropbox-image-url-extractor
// @license MIT
// @connect greasyfork.org