Skip to content

Instantly share code, notes, and snippets.

View Decicus's full-sized avatar
💻

Alex Thomassen Decicus

💻
View GitHub Profile
@oledid
oledid / km-0414.md
Last active April 24, 2021 16:48
Norwegian keyboard mapping for XRDP
#!/bin/bash
# Revokes any Twitch OAuth2 token.
# Usage: ./revoke-twitch-token.sh
# The script will prompt for the token to avoid leaking a valid token
# to history or environment in case an error occurs while attempting to revoke.
command -v jq >/dev/null 2>&1 || { echo >&2 "Please install 'jq'."; exit 1; }
command -v curl >/dev/null 2>&1 || { echo >&2 "Please install 'curl'."; exit 1; }
#!/usr/bin/env python2
#
# Find and replace tracker urls in a Deluge torrents.state
import os
import sys
import platform
import shutil
import cPickle
@Kovah
Kovah / ff_colorthemes.md
Last active June 1, 2023 10:39
Firefox Color Themes
@CommanderRoot
CommanderRoot / how_to_properly_file_a_DMCA_takedown_notice_for_Twitch.md
Last active September 24, 2023 23:59
How to properly file a DMCA takedown notice for Twitch
@xPaw
xPaw / steam_quick_queue.user.js
Last active November 21, 2023 00:15
⚠ 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==
@cowboy
cowboy / #bf4-emblem-import-export.md
Last active December 3, 2023 17:43
JavaScript: BF4 Battlelog Emblem Import / Export

Exporting an emblem

  1. Log into BF4 Battlelog.
  2. Visit the Customize emblem page.
  3. Select the emblem you wish to export.
  4. Open the console (Ctrl-Shift-J).
  5. Enter the following code snippet to copy the raw emblem data to the clipboard:
    copy('emblem.emblem.load('+JSON.stringify(emblem.emblem.data,null,2)+');');
  6. Paste somewhere useful, like a gist. Whatever.
  7. Close the console (Ctrl-Shift-J).
@marzavec
marzavec / run.js
Created August 8, 2019 16:43
Browser-based subdomain bruteforcing using DNS over HTTP(s) (DoH)
/*
Developer: Marzavec ( https://github.com/marzavec )
Description: A simple browser-based subdomain bruteforcing script, using DoH providers. Developed as a 5 minute hack, just to see it's preformance. Many improvements could be made, such as adding error handling or informing the user when the script is done.
Usage: Open the browsers dev console (usually F12), paste this script, change the `rootTld`, press enter to run. Ezpz.
*/
const rootTld = 'lyka.pro'; // change to your target's root tld
// url to newline seperated wordlist
const wordlistUrl = 'https://raw.githubusercontent.com/rbsec/dnscan/master/subdomains.txt';
@ssddanbrown
ssddanbrown / export-books.php
Last active January 2, 2024 10:46
BookStack-Export-Books
#!/usr/bin/env php
<?php
// API Credentials
// You can either provide them as environment variables
// or hard-code them in the empty strings below.
$apiUrl = getenv('BS_URL') ?: ''; // http://bookstack.local/
$clientId = getenv('BS_TOKEN_ID') ?: '';
$clientSecret = getenv('BS_TOKEN_SECRET') ?: '';