This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#Requires transmission-remote in $PATH. | |
#Make sure you are allowing the RPC and are not being limited by the whitelist | |
#First see how can you log in to transmission and then adjust these values | |
#Try running `transmission-remote` first and see what happens | |
TR_USERNAME="username" | |
TR_PASSWORD="password" | |
# might be able to leave empty, test it out. I'm running mine through an nginx reverse proxy. | |
TR_HOST="https://localhost/transmission/rpc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
packages="zsh htop" | |
logfile="~/apt.log" | |
touch "$logfile" | |
for package in packages; do | |
DEBIAN_FRONTEND=noninteractive apt-get install -qy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" "$package" >>"${logfile}" 2>&1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requires Aria2, apt-get install aria2 | |
# https://www.reddit.com/r/seedboxes/comments/dp38al/bringoutyourdeadsh_scanner_for_unreferenced/ | |
# BringOutYourDead.sh | |
if [ $# -ne 2 ] | |
then | |
echo Usage: $0 Path_of_Active_Torrents Path_of_Downloads | |
exit -1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ebook-convert $input.cbz/7/r $output.epub --landscape --no-default-epub-cover --no-process --output-profile=tablet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Forked from https://gist.github.com/mminer/d0a043b0b6054f428a8ed1f505bfe1b0 to | |
import Foundation | |
public extension Double { | |
var stringFileSize: String { | |
guard self > 0 else { | |
return "0 bytes" | |
} | |
guard self != 1 else { | |
return "1 byte" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# We're gonna assume your "key-value" pairs is in a normal bash array. | |
fakedict=( | |
key1 value1 | |
key2 value2 | |
key3 value3 | |
) | |
# Constructs a string like "s/key1/value1/g; s/key2/value2/g; s/key3/value3/g" |
So this is stupidly absurd to achieve right. Here are the steps I go through to get a key-based auth into the default WSL2 shell.
https://www.concurrency.com/blog/may-2019/key-based-authentication-for-openssh-on-windows
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration
Did you run some command from stack overflow that wiped your PATH
? Did you assume the PATH
variable on Windows works like it does on Linux? Are you getting ObjectNotFound
with every command you run?
Fret not because so did I once upon a time and I learned from my mistakes. Better write them down before I forget
Try the following:
- Delete the entire registry ree under
HKEY_CURRENT_USER\Console
including the directory itself - Reset your
PATH
in the System Environment variable tto the following values:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[run] | |
omit='.env/*' | |
source='.' | |
[report] | |
show_missing = true |
OlderNewer