Skip to content

Instantly share code, notes, and snippets.

@szero
szero / install_winget.ps1
Last active February 27, 2024 08:57
Simple script to install winget on Windows 10 and 11 systems, most usefull for people using privacy Windows tools that remove Microsoft Store (must be run with administrator privileges)
#Requires -RunAsAdministrator
Write-Output "Removing previous instances of winget..."
Get-AppxPackage -allUsers *desktopappinstaller* | Remove-AppxPackage
Get-AppxPackage -allUsers *winget* | Remove-AppxPackage
Write-Output "Getting information on latest winget release..."
@szero
szero / scrap-yt-page.py
Last active June 6, 2021 22:08
Scrap youtube video page by going through the consent screen
from requests import Session
from bs4 import BeautifulSoup
UA = (
"Mozilla/5.0 (Linux; cli) pyrequests/0.1 "
"(python, like Gecko, like KHTML, like wget, like CURL) myscrapper/1.0"
)
req = Session()
req.headers.update({"User-Agent": UA})
@szero
szero / redtweet.py
Last active May 11, 2019 16:28
Send tweets of given person to given volafile room
#!/usr/bin/env python3
import sys
import re
import argparse
from io import BytesIO
from random import random
from time import sleep
from functools import lru_cache
@szero
szero / volander.py
Last active June 11, 2020 20:56
Python volafile downloader for linux, type $ volander.py -h to check usage
#!/usr/bin/env python3
import sys
import re
import os
import argparse
from tempfile import NamedTemporaryFile
from subprocess import run
from shutil import which
@szero
szero / readme.md
Last active January 24, 2020 01:20
Upload nice text file meem to volafile

Steps for posting your based meem

  1. Go here. You must use ANSI Shadow font.
  2. Type your text and copy it.
  3. Save it as text file or pass the clipboard directly to script.

Dependencies

@szero
szero / pomfload.sh
Last active December 25, 2021 22:15
Uploads your files to random pomf clones
#!/usr/bin/env bash
# shellcheck disable=SC1117
# Script that uploads files to random pomf-like sites
# It can take multiple files as arguments
#DED:
# https://mixtape.moe/upload.php
# https://citron.pw
# http://www.shanatan.moe/upload.php ??
@szero
szero / clip2img
Last active July 16, 2018 02:18
python script for saving clipboard selection as image or uploading the selection to volafile and then discarding it
#!/usr/bin/env python3
"""
Save image from clipboard to file
"""
import sys
import glob
import argparse
@szero
szero / pysort
Last active March 28, 2019 21:21
Ghetto file sorting script
#!/usr/bin/env python3
import sys
import re
class fileSort:
def __init__(self):
self.delim = "\n"
self.string_list = list()
@szero
szero / get_southpark
Last active September 10, 2023 04:18
Download a South Park episode from southparkstudios.com
#!/usr/bin/env bash
if [[ $# != 1 ]]; then
echo "Usage: get_south_park <page link>"
exit 0
fi
TD="$(mktemp -d)"
clear_on_exit() {
@szero
szero / curlbar
Last active October 17, 2023 15:08
cURL wrapper that makes saner upload/download progress bar
#!/usr/bin/env bash
#shellcheck disable=SC2155,SC1117
# Wraps curl with a custom-drawn progress bar. Use it just like curl:
#
# $ curlbar -O http://example.com/file.tar.gz
# $ curlbar http://example.com/file.tar.gz > file.tar.gz
#
# All arguments to the program are passed directly to curl. Define your
# custom progress bar in the `print_progress` function.
#