Skip to content

Instantly share code, notes, and snippets.

View AW1534's full-sized avatar

Andrew Wiltshire AW1534

  • school
  • Birmingham, England
View GitHub Profile
@AW1534
AW1534 / discordupdate.sh
Last active April 25, 2024 16:28
update discord and patches vencord with one script
#!/bin/bash
# Default values
verbose=false
branch="stable"
discord_download_path=$(sudo mktemp)
vencord_installer_download_path=$(sudo mktemp)
npm_installed=false
git_installed=false
pnpm_installed=false
@AW1534
AW1534 / benchmark.py
Created January 1, 2023 21:44
benchmark tool
import time
import os
import sys
if len(sys.argv) < 3:
print(f"Usage: python3 {sys.argv[0]} <command> <amount of times to run>")
sys.exit(1)
file = sys.argv[1]
times = int(sys.argv[2])
@AW1534
AW1534 / help.md
Last active January 1, 2023 21:45
line of code counter

Line of code counter

counts lines of code??

Usage:

options: -h, --help show this help message and exit -d DIRECTORY, --directory DIRECTORY root dir to be searched (recursive)