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 / get_coords.py
Last active July 12, 2023 18:51
🌐 get location data from IP with geolocation IPify API (REQUIRES API_KEY)
#/usr/bin/python3
# get_coords.py v1.0.0
# --------------------
#
# @zudsniper
import requests
import json
import os
import sys
from loguru import logger
@zudsniper
zudsniper / mdpdf_pop.sh
Last active July 12, 2023 18:44
🚫 [BROKEN] Generate a PDF from a Markdown file with a metadata.yaml file provided, or via the values provided in the document header.
#!/bin/bash
# mdpdf_pop.sh v2.0.1
# ------------
#
# @zudsniper
# ANSI color codes
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
@zudsniper
zudsniper / MARKPDF.README.md
Last active July 16, 2023 02:31
🦠 a python script to fucking populate a markdown template with metadata from a yaml document or embedded header and output a pdf. HOW CAN THAT BE SO HARD

markpdf.py

easily convert markdown to pdf -- including variables provided in the header of the file or within a separate provided metadata.yaml file

Installation

Administrator Privileged Dependency

🔴 wkhtmltopdf is REQUIRED
Installation process varies based on OS.

  • Linux (debian based) sudo apt-get install wkhtmltopdf -y
@zudsniper
zudsniper / 10ZIPPER.ps1
Last active August 17, 2023 05:35
⓽ 10ZIPPER.ps1 -> the final iteration of the (7+n)ZIPPER.ps1 saga, this will be used for data duplicate detection and archival onto an external drive for system recovery.
# 10ZIPPER.ps1
# v2.0.3
# -----------
#
# @zudsniper
# @openai
param(
[Parameter(Mandatory=$true)]
[Alias("s")]
[string[]]$source,
@zudsniper
zudsniper / sleep_schedule.ps1
Created July 18, 2023 23:21
🛌 Sleep time? or not? configure whether or not your Windows 10 PC can sleep.
# sleep_schedule.ps1
param (
[Parameter(Mandatory=$false)]
[ValidateSet("0","1","true","false","yes","no")]
[string]$input
)
function ConvertTo-Boolean {
param (
[Parameter(Mandatory=$true)]
@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 / chatgpt_remove_link_previews.user.js
Last active August 2, 2023 18:55
ChatGPT broke link previews as of writing this (2023-08-02) so this userscript removes them as they're added.
@zudsniper
zudsniper / WIN11_AESTHETIC_DOWNGRADE.ps1
Created August 15, 2023 05:21
Change the main pain points changed in Windows 11 back to the way they were in Windows 10.
# PowerShell script to revert Windows 11 to Windows 10 aesthetics
# v0.0.1
# 2023-08-15
# Function to print colored messages
function Write-Color([string]$Message, [string]$Color) {
Write-Host $Message -ForegroundColor $Color
}
# Revert Right-Click Context Menu
@zudsniper
zudsniper / MACOS_BYPASS_APPLOCK.md
Last active August 15, 2023 05:50
🍏 Guide to disabling SIP & editing an applications plist file to allow it to execute even if Apple said no. For MacOS Catalina 10.15.7, but may work on other versions.

MACOS BYPASS SOFT-LOCKING APPS

Such as Xcode, which is pretty important I've heard...

🟨 DISCLAIMER ⬛️

PERFORM THESE STEPS AT YOUR OWN RISK.

THIS GUIDE MAY INSTRUCT YOU TO VIOLATE APPLE'S OFFICIAL TERMS OF USE.
I IN NO WAY ENDORSE YOU DOING SO.
THIS GUIDE IS PRESENTED EXCLUSIVELY AS A PROOF OF CONCEPT
INTENDED ONLY FOR EDUCATIONAL / RESEARCH USE

@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