Skip to content

Instantly share code, notes, and snippets.

View itsallpretend's full-sized avatar
😈
normal people scare me

itsallpretend itsallpretend

😈
normal people scare me
View GitHub Profile
@morisono
morisono / git-hook-post-checkout.sh
Created April 3, 2026 03:30 — forked from f-honcharenko/git-hook-post-checkout.sh
This Bash script dynamically updates the VS Code `settings.json` file with the current Git branch name. It ensures that any previous dynamically added instructions are removed before appending the new branch name. This is useful for tools like GitHub Copilot Chat to generate commit messages based on the active branch.
#!/bin/bash
# Run the custom script whenever a branch is checked out
"/Users/$USER/Library/Application Support/Code/User/update-copilot-branch-instructions.sh"
# Check if the custom script executed successfully
if [ $? -eq 0 ]; then
# If the script was successful, print the success message
echo "Successfully updated Copilot commit message generation instructions with the current Git branch name."
else
@alganet
alganet / c89cc.sh
Last active June 8, 2026 20:13
c89cc.sh - standalone C89/ELF64 compiler in pure portable shell
#!/bin/sh
# ISC License
# Copyright (c) 2026 Alexandre Gomes Gaigalas <alganet@gmail.com>
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
@StrixROX
StrixROX / README.md
Last active May 21, 2026 04:39
How to limit battery charging threshold in Linux

To make the change persistent, create a file named /etc/systemd/system/battery-charge-threshold.service with the following content:

[Unit]
Description=Set the battery charge threshold
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c 'echo 80 &gt; /sys/class/power_supply/BAT0/charge_control_end_threshold'
@Soham7777777
Soham7777777 / README.md
Last active March 31, 2026 02:30
My AWS Notes

IAM Notes

Definitions

Resource: An object that exists within a service.

Examples:

  • S3 is a service and each bucket is a separate resource.
  • IAM is a service and each user user, role & group is a resource.
  • EC2 is a service and each instance is a resource.
@matbrito
matbrito / test-connection.sh
Created March 30, 2026 16:26
K8s cluster connectivity test script with kubeconfig support and detailed status reporting
#!/bin/bash
# Script to test connectivity to all Kubernetes clusters defined in config.yaml
# This script will test each cluster context and report connectivity status
show_help() {
cat << EOF
Usage: $0 [OPTIONS]
Test connectivity to all Kubernetes clusters defined in a kubeconfig file.
Draziw.Button.Mines
ag.video_solutions.wedotv
ahf.dummynation
ai.socialapps.speakmaster
air.com.beachbumgammon
air.com.freshplanet.games.SongPop2
air.com.gamesys.mobile.slots.jpj
air.com.goodgamestudios.empirefourkingdoms
air.com.kitchenscramble.goo
air.com.lalaplay.rummy45
javascript:(function(){var scripts=document.getElementsByTagName("script"),regex=/(?<=(\"|\%27|\`))\/[a-zA-Z0-9_?&=\/\-\#\.]*(?=(\"|\'|\%60))/g,jsRegex=/(?<=(\"|\'|\%60))(?:\/|https?:\/\/)[a-zA-Z0-9_?&=\/\-\#\.]+\.js(?:\?[^"'%60]*)?(?=(\"|\'|\%60))/g;const results=new Set;const paramMap=new Map();const jsFiles=new Set();function processContent(t,src){var e=t.matchAll(regex);for(let r of e){results.add(r[0]);var params=r[0].split('?')[1];if(params){params.split('&').forEach(param=>{var [key,]=param.split('=');if(key){if(!paramMap.has(key)){paramMap.set(key,[]);}paramMap.get(key).push(src||'Inline script or HTML');}});}}var j=t.matchAll(jsRegex);for(let r of j){jsFiles.add(r[0]);}}for(var i=0;i<scripts.length;i++){var t=scripts[i].src;if(t){jsFiles.add(t);fetch(t).then(function(t){return t.text()}).then(text=>processContent(text,t)).catch(function(t){console.log("An error occurred: ",t)});}else{processContent(scripts[i].textContent);}}var pageContent=document.documentElement.outerHTML;processContent(pageContent
@jhaddix
jhaddix / d4dorks.txt
Last active December 6, 2025 22:34
Diablo 4 Dorks
Search groups explained:
Group 1 "exploit, farm, glitch, cheese, AFK, multibox, dupe, grind" - This search will keep you up to date on "clever use of game mechanics" should you want to be on the bleeding edge.
Group 2 "build OR guide OR nerf" - This wil keep you up to date with classes and builds coming out and ones that are over powered.
Group 3: "unique OR set OR legendary OR gold OR murmuring OR veiled" - will keep you up to date on the currency and gear grind meta.
SEARCH LINKS:
@jhaddix
jhaddix / ffufone.json
Created March 8, 2023 20:48
Axiom ffuf module to scan one host vertically
[{
"command":"/home/op/go/bin/ffuf -w input -rate 8 -of csv -o _output_/_cleantarget_ -ac -u ",
"ext":"csv",
"threads":"10"
}]
@jhaddix
jhaddix / reconftw.cfg
Last active September 24, 2025 23:27
reconFTW config file: NO google/osint, wordlist creation, nuclei js analysis
#################################################################
# reconFTW config file #
#################################################################
# General values
tools=~/Tools # Path installed tools
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" # Get current script's path
profile_shell=".$(basename $(echo $SHELL))rc" # Get current shell profile
reconftw_version=$(git rev-parse --abbrev-ref HEAD)-$(git describe --tags) # Fetch current reconftw version
generate_resolvers=false # Generate custom resolvers with dnsvalidator