Skip to content

Instantly share code, notes, and snippets.

@urwrstkn8mare
urwrstkn8mare / galaxy-bethesda.json
Last active January 23, 2022 15:40
just a temporary scoop manifest using fork while official bethesda plugin updated
{
"homepage": "https://github.com/MrJuicyBacon/Galaxy_Plugin_Bethesda",
"version": "custom",
"depends": "sudo",
"url": "https://github.com/MrJuicyBacon/Galaxy_Plugin_Bethesda/archive/refs/heads/master.zip",
"hash": "797106189879466B19095301150E3360F916209628D63538E1D6992C6FDEE639",
"extract_dir": "Galaxy_Plugin_Bethesda-master/betty",
"extract_to": "integration",
"uninstaller": {
"script": "(Get-Item \"$env:LOCALAPPDATA\\GOG.com\\Galaxy\\plugins\\installed\\bethesda\").Delete()"
@urwrstkn8mare
urwrstkn8mare / https2ssh.sh
Created June 24, 2021 10:20
A bash script to convert git repos in a directory of folders to use SSH from HTTPS. (1 folder depth)
#/bin/bash
for d in */ ; do
cd "$d"
inside_git_repo="$(git rev-parse --is-inside-work-tree 2>/dev/null)"
if [ "$inside_git_repo" ]; then
repo_url=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$repo_url" ]; then
echo "$d - Could not identify repo url (might already be using SSH)."
else
@urwrstkn8mare
urwrstkn8mare / python-RLE-functions.py
Last active May 23, 2022 08:23
A run length encoding compression script (Comp. Sci. 2020)
# Title: Simple Run Length Encoding Implementation
# Author: Samit Shaikh
# Info: A run length encoding compression (RLE) script.
# This is just a task in my computer science class.
# For more relevant information about the actual
# thing. Just look at the top of the python-RLE-functions.py.
# And yes, RLE compression isn't the best compression
# algorithm out there.
# Purpose: To demonstrate the principles of compression
# using RLE.
@urwrstkn8mare
urwrstkn8mare / caesar_cipher.py
Last active July 18, 2020 12:04
Caesar cipher (Comp. Sci. 2020)
# Title: Caesar Cipher Encryption and Decryption Python Functions
# Author: Samit Shaikh
# Purpose: To underestand an encryption algorithm and implement it in Python.
# Last Revision: 17/06/2020
# Note: In this revision I removed alot of the type checking because I have
# learned that in Python that its good practice not to unlike most other
# languages as it assumes the developer knows what they are doing with
# the function. I also added comments to describe it.
ALPHABET = "abcdefghijklmnopqrstuvwxyz" # The alphabet in lowercase.
@urwrstkn8mare
urwrstkn8mare / README.md
Last active June 24, 2021 10:27
GOG Galaxy Integration Builder and more