Skip to content

Instantly share code, notes, and snippets.

View hl2guide's full-sized avatar
👋
away from office

Dean hl2guide

👋
away from office
  • Australia
View GitHub Profile
@hl2guide
hl2guide / torrent_trackers.txt
Created February 20, 2023 10:04
qbittorrent torrent trackers Feb 2023
http://1337.abcvg.info:80/announce
http://bt.endpot.com:80/announce
http://bt.okmp3.ru:2710/announce
http://dht.dhtclub.com:666/announce
http://i-p-v-6.tk:6969/announce
@hl2guide
hl2guide / aria2_rpc_add_download.ps1
Created January 25, 2023 05:31
Connects to an aria2c RPC instance and adds a download.
# Connects to an aria2c RPC instance and adds a download
# Ref:
# Curl: curl.exe http://localhost:6800/jsonrpc -H "Content-Type: application/json" -H "Accept:application/json" -d "{\"jsonrpc\":\"2.0\",\"method\":\"aria2.tellActive\",\"params\":[\"token:TOKEN\"],\"id\":1}"
# Lint JSON: https://jsonlint.com/
# Last Edited: 2023-01-25 15:30:00PM
$aria2cRPCURI = "http://localhost:6800/jsonrpc"
# Set to your token
#!/bin/bash
# Check if Script is Run as Root
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user to run this script, please run sudo ./fedora_customizer.sh" 2>&1
exit 1
fi
# Updating System
dnf update -y
@hl2guide
hl2guide / Iosevka Font Guide for Windows.md
Last active September 1, 2022 09:55
A guide for using the Iosevka font in the Windows OS.

Intro

Iosevka is hands down the best font family for any kind of programming.

For Chinese and Japanese users check out Sarasa Gothic.

Features

  • open-source
  • sans-serif + slab-serif, monospace + quasi‑proportional typeface family
@hl2guide
hl2guide / settings.xml
Last active September 1, 2022 05:18
MPV v3 Settings for modern PC. Run updater.bat after adding this file.
<settings>
<channel>daily</channel>
<arch>x86_64-v3</arch>
<autodelete>true</autodelete>
<getffmpeg>true</getffmpeg>
</settings>
@hl2guide
hl2guide / btop.conf
Last active November 12, 2022 01:43
btop better default configuration file. Nicer looking "block" graph symbol.
#? Config file for btop4win v. 1.0.4
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "themes" folder in same folder as btop4win.exe
color_theme = "Default"
#* If the theme set background should be shown, set to False if you want terminal background transparency.
theme_background = True
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
@hl2guide
hl2guide / Search_Everything_Cheatsheet.md
Last active August 3, 2023 13:40
Search Everything Cheatsheet

Search Everything Cheatsheet 📒

Search Everything is a fast, powerful, and effective search tool for Windows.

This cheatsheet acts as a quick start reference to get more out of Search Everything.

It compliments the official documentation.

Searching 🔍

@hl2guide
hl2guide / config.toml
Last active August 2, 2022 03:52
An example config for use with olive (https://github.com/go-olive/olive) and streamlink (https://github.com/streamlink/streamlink). The "RoomID" is grabbed from the page's source code.
[[Shows]]
# platform name
Platform = "youtube"
# room id
RoomID = "UC3M7l8ved_rYQ45AVzS0RGA"
# streamer name
StreamerName = "thejimmydoreshow"
SaveDir = "C:/Temp/olive-streams"
Parser = "streamlink"
@hl2guide
hl2guide / winget_examples.md
Created July 1, 2022 03:19
Useful examples for using winget (terminal).

Exports installed packages to a JSON file

winget export --output "C:\Temp\winget_export.json"

Imports and installs packages in an exported JSON file (lastest package version)

winget import --import-file "C:\Temp\winget_export.json" --ignore-versions
@hl2guide
hl2guide / update_linux_os.sh
Last active September 13, 2023 04:05
A shellscript that updates all Linux OSs that use apt-get, pacman, eopkg or dnf as a package manager. Version: 1.1.3
#!/bin/sh
# Version: 1.1.3
# Tested on the following stable Linux-based OSs: Arch, Fedora, Linux Mint, Manjaro, POP_OS! and Ubuntu
# Checks if apt-get is available
if [ -x "$(command -v apt-get)" ]; then
echo 'apt-get package manager detected - running update process..' >&2
sudo apt-get update && sudo apt-get upgrade --yes \
&& sudo apt autoremove --yes \