Skip to content

Instantly share code, notes, and snippets.

View zudsniper's full-sized avatar
🎲
snake eyes every time

zod zudsniper

🎲
snake eyes every time
View GitHub Profile
@zudsniper
zudsniper / gist-editor-resize-userscript.user.js
Last active May 21, 2024 21:00 — forked from Dayjo/gist-editor-resize-userscript.js
Make Gist editor automatically resize based on content using a TamperMonkey script
// ==UserScript==
// @name gist-editor-resize-userscript
// @namespace https://gist.github.com/
// @version 0.2
// @description Automatically resize the gist editor for easier editing.
// @match http*://gist.github.com/*
// @copyright 2013+ Joel Day - blog.dayjo.org (updated by @zudsniper - gh.zod.tf)
// ==/UserScript==
var textareas = document.querySelectorAll('textarea.file_contents');
@zudsniper
zudsniper / old-reddit-redirect.user.js
Created February 12, 2024 07:12 — forked from msanders/old-reddit-redirect.user.js
Userscript: Old Reddit Redirect
// ==UserScript==
// @name Old Reddit Redirect
// @description Redirects www.reddit.com to the old version of the website
// @downloadURL https://gist.githubusercontent.com/msanders/52700d5c5ed76f1114594ddb862b530e/raw/old-reddit-redirect.user.js
// @updateURL https://gist.githubusercontent.com/msanders/52700d5c5ed76f1114594ddb862b530e/raw/old-reddit-redirect.user.js
// @version 2023.10.19
// @run-at request
// ==/UserScript==
[
@zudsniper
zudsniper / GlobalProtect-Portal-Linux.README.md
Last active January 22, 2024 13:45 — forked from iamdylanngo/GlobalProtect-Portal-Linux.readme
🌍 Setup Guide for GlobalProtect Portal on Linux

Setup Guide for Cisco GlobalProtect VPN on Linux

written by @dylanngo95
(styled by @zudsniper)

1️⃣ Setup GlobalProtect

sudo apt update -y && sudo apt upgrade -y
@zudsniper
zudsniper / get_giphy_link.user.js
Last active December 28, 2023 14:16 — forked from mouiserat/get_giphy_link.user.js
🍴 fork of userscript to get the damn normal gif URL from giphy...
@zudsniper
zudsniper / infiniteScrolling.user.js
Last active September 5, 2023 12:35 — forked from evarouss/infiniteScrolling
Infinite Scrolling UserScript?
// ==UserScript==
// @name Gist Infinite Scroll
// @namespace https://gist.github.com/*
// @version 0.1
// @description Infinite Scroll on github gists
// @author Jason McElhenney
// @match http://gist.github.com/* // Adjust this to match the websites you want the script to run on
// @grant GM_xmlhttpRequest
// @grant unsafeWindow
// @require https://code.jquery.com/jquery-3.6.0.min.js
@zudsniper
zudsniper / README.md
Created July 26, 2023 05:06 — forked from codelahoma/README.md
Automatically generate summaries of YouTube videos with transcriptions, using OpenAI's language model and create Markdown files with the output.

YouTube Video Summarizer (yt_summarize.py)

This gist contains a Python script that generates a transcript or summary of a YouTube video. It fetches video information, transcribes the audio using the Whisper ASR model, and generates a summary using the OpenAI language model.

Features

  • Fetch YouTube video information (title, description, channel title, etc.)
  • Transcribe video audio
  • Generate a summary of the video transcript
  • Save output as a markdown file
@zudsniper
zudsniper / README-SteamBots-Secrets.md
Created June 22, 2023 05:28 — forked from mathielo/README-SteamBots-Secrets.md
Steam Bots: How to get shared and identity secrets from Steam Guard TOTP

Steam Bots: How to get shared and identity secrets

If you're looking into automating transactions in your Steam Account using Steam Bots, you most likely will need to:

  1. Have TOTP ("MFA" or "2FA") enabled via Steam Authenticator (Steam Guard)
  2. Have in hands both shared secret and identity secret

Having Steam Guard enabled for your Steam Account ensures that there will be no holds on transactions such as trades. Having the shared and identity secrets are necessary for complete autonomy of your Steam Bot, meaning it won't require any human interaction from you.

There is a tremendous lack of information about all of this as Steam does not provide official support for implementing Steam Bots. The information available in this guide was gathered through lots of blood and sweat hard research, reverse eng

@zudsniper
zudsniper / dlgh.sh
Last active June 7, 2023 13:23 — forked from erdincay/sugh.sh
download all repositories from a specified organization. Uses the gh command line tool for authentication of private repositories.
#!/bin/bash
# dlgh.sh
# --------
#
# Download all repositories of a user or organization using the gh commandline tool.
# REQUIRES `gh auth login`!
#
# @zudsniper
# GitHub-themed header
1. Add dependecy:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j.version}</version>
</dependency>
2.Create config file for log4j (https://logging.apache.org/log4j/2.x/manual/configuration.html).
I prefer log4j2-test.properties because according documentation this format will look second, after configFile:
'If no system property is set the properties ConfigurationFactory will look for log4j2-test.properties in the classpath.'
---------------------------------------------------------------
upstream node_server {
server localhost:3000;
}
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;