Skip to content

Instantly share code, notes, and snippets.

View cstrouse's full-sized avatar
💭
Bug Bounty

Casey Strouse cstrouse

💭
Bug Bounty
View GitHub Profile
@Wh1terat
Wh1terat / deob.js
Last active January 28, 2025 00:51
Incapsula JS Deobfuscator (obfuscator.io) - JS
#!/usr/bin/env node
var fs = require('fs');
var esprima = require('esprima');
var escodegen = require('escodegen');
var estraverse = require('estraverse');
var debug = true;
var rename = true;
var stringrotatefunc = `
(function (array, times) {
@Wh1terat
Wh1terat / deob.py
Created February 4, 2020 10:57
Incapsula JS Deobfuscator (obfuscator.io) - Python
#!/usr/bin/env python3
import sys
import json
import string
import random
import visitor
import mytemplates
from pyjsparser import parse
from base64 import b64decode
@Rdp3389
Rdp3389 / pwgen-bios-with-i.py
Created January 19, 2020 10:50
generate result for HP serial with "i" error code
print("============================ Insyde H2O BIOS 'i'/'I' error-code ============================")
print("= Insyde H2O BIOS (Acer, HP) System Disabled 'i'/'I' error-code response generator.")
print("= this script meant to solve https://github.com/bacher09/pwgen-for-bios/issues/52 in Python 3")
print("= ")
print("= HP official response to BIOS Password reset: https://support.hp.com/us-en/document/c06368824")
print("============ Start Quote ============")
print("= A forgotten BIOS password cannot be reset by HP. HP is committed to the security and privacy of")
print("= our customers. To resolve a forgotten BIOS password issue, a system board replacement is required,")
print("= and additional customer costs apply. For more information, go to HP Worldwide Limited Warranty and Technical Support.")
print("= https://www8.hp.com/us/en/privacy/limited_warranty.html")
@joshco
joshco / README UI_and_Logging.md
Last active March 24, 2021 13:37
TablePress AutoImport Patch

Overview

This patch adds:

  • a function to wrap the WP calls to get a URL based source and sets a 30sec timeout.
  • More detailed status information in the plugin's WP Dashboard pane on why an autoupdate failed.
  • Logging information, and a logging function, which outputs debug information when WP_DEBUG is true to help troubleshoot.

Failure case (with a timeout)

Debug Log

@yassineaboukir
yassineaboukir / List of API endpoints & objects
Last active August 4, 2025 04:37
A list of 3203 common API endpoints and objects designed for fuzzing.
0
00
01
02
03
1
1.0
10
100
1000
@timelsass
timelsass / functions.php
Last active January 14, 2022 06:59
Add and use a new stock status in WooCommerce
<?php
/**
* This code adds a lowstock stock status to WooCommerce products. There is more code
* included here for examples of usage, such as hiding the lowstock status products from
* queries so they aren't displayed in shop pages,add badges to products, and update the
* availability messages on product pages.
*
* Please see this WordPress Stack Exchange question for more information and background:
*
* https://wordpress.stackexchange.com/questions/348759/exclude-products-with-a-stock-lower-than-the-low-stock-threshold-from-the-shop-l
@kytulendu
kytulendu / install-opencl-amd.sh
Last active January 4, 2025 23:31
A shell script to install AMDGPU-PRO OpenCL driver.
#!/bin/bash
# This script will install AMDGPU-PRO OpenCL and Vulkan support.
#
# For Ubuntu and it's flavor, just install the package using this command
# in extracted driver directory instread.
#
# ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms
#
# For Arch Linux or Manjaro, use the opencl-amd or rocm-opencl-runtime on AUR instread.
@JL2210
JL2210 / bootstrap.sh
Last active June 27, 2020 13:15
A script to bootstrap Gentoo on a Chromebook
#!/bin/bash
set -e
if [ "${UID}" = "0" ]; then
echo "Error: ${0} must not be run as root.";
exit 3;
fi
TMPDIR="$(mktemp -d)"
@teacupx
teacupx / widevine-flash_arm64.sh
Created December 30, 2018 19:30 — forked from ruario/1-README.md
Fetches a ChromeOS image for ARM and extracts the Widevine and Flash binaries, saving them in a compressed archive
#!/bin/sh -eu
# Make sure we have wget or curl
available () {
command -v "$1" >/dev/null 2>&1
}
if available wget; then
DL="wget -O-"
DL_SL="wget -qO-"
elif available curl; then
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active March 17, 2025 06:52
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {