Skip to content

Instantly share code, notes, and snippets.

@johnelliott
johnelliott / uuidv4test.js
Last active January 7, 2025 01:33
uuid v4 regex
import { v4 as uuid } from 'uuid';
export function generateId() {
return uuid();
}
const v4 = new RegExp(/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i);
console.log(generateId().match(v4));
//console.log(generateId().length)
@bmwalters
bmwalters / multimc_install_optifine.py
Last active November 22, 2017 03:20
Automatically install OptiFine to a MultiMC instance
#!/usr/bin/env python3
import cfscrape # install with `pip install cfscrape`
import re
import os
import json
from packaging.version import Version
def build_multimc_patch_json(mc_version, optifine_version):
patch = {
@JonnyTech
JonnyTech / win10_privacy.ps1
Created December 14, 2016 13:49
Windows 10: Powershell Script to protect your privacy
###############################################################################
#
# Script to enhance your Privacy on Windows 10
# New-ItemProperty is used to set registry values, therefore the "if exist"
# operation is not requiered <img src="https://s.w.org/images/core/emoji/72x72/1f642.png" alt="🙂" class="emoji" draggable="false">
#
# created 16.12.2015 Michael Albert [email protected]
#
# changes:
# 1.0.1 Init release
@alirobe
alirobe / reclaimWindows10.ps1
Last active May 8, 2025 13:16
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@xPaw
xPaw / steam_quick_queue.user.js
Last active February 21, 2025 23:42
⚠ This script has been integrated into SteamDB browser extension!
// ==UserScript==
// @name Steam Queue Auto Discoverer
// @description Discover the Steam queue three times to get the sale cards
// @version 2.3.0
// @namespace https://gist.github.com/xPaw/73f8ae2031b4e528abf7
// @icon https://store.steampowered.com/favicon.ico
// @match https://store.steampowered.com/explore*
// @grant none
// ==/UserScript==
@Two9A
Two9A / decronym.php
Last active January 22, 2025 17:46
Decronym: A simple Reddit bot
<?php
/**
* Dirty, dirty Reddit bot: Decronym
*/
class Reddit {
const USERNAME = 'Decronym';
const PASSWORD = '***';
const CLIENTID = '***';
const SECRET = '***';
@sim642
sim642 / DI.m3u
Created July 5, 2015 12:52
Digitally Imported premium streams
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi
@Xinayder
Xinayder / autoJoin.js
Last active August 29, 2015 14:23
Auto-Join v3
function customJoin(gameid) {
var modal = ShowBlockingWaitDialog('Joining game', 'Attempting to join game...');
$J.post(
'http://steamcommunity.com/minigame/ajaxjoingame/',
{ 'gameid' : gameid }
).done(function(json) {
if (json.success == '1') {
modal.Dismiss();
modal = ShowDialog('Joining game', 'Game found! Redirecting you in a few seconds.');
window.setTimeout("top.location.href = 'http://steamcommunity.com/minigame/towerattack/'", 1500);
@hackruu
hackruu / di-fm-premium-account-generator.sh
Last active February 24, 2025 18:11
Generate di.fm premium account and playlist. Also supports radiotunes.com (ex sky.fm) and jazzradio.com.
#!/bin/bash
AGENT="AudioAddict-di/1.4.7 iOS/8.1"
COOKIES="./cookies.txt"
AUTH="ephemeron:dayeiph0ne@pp"
DOMAIN=gmail.com
PLAYLISTDI="di.fm.m3u"
PLAYLISTSKY="sky.fm.m3u"
PLAYLISTJAZZ="jazzradio.m3u"
PLAYLISTROCK="rockradio.m3u"
PLAYLISTCLASSICAL="classicalradio.m3u"
@LeoColomb
LeoColomb / README.md
Last active January 15, 2023 19:42 — forked from morganrallen/_README.md
JankyBrowser

JankyBrowser

The only cross-platform browser that fits in a Gist!

One line install. Works on Linux, MacOSX and Windows.

Local Install

$&gt; npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download