This file has been truncated, but you can view the full file.
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 | |
# A temporary script for a temporary problem. | |
# I have a bunch of github repositories that no longer work | |
# for git push because the original URL uses the deprecated | |
# username/password combo. This script repairs the remote | |
# origin so it uses ssh. | |
# B9 August 2021 |
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 -e | |
# Bogus disk speed tester by b9 2016-2021 | |
# Well, not exactly bogus, but overly simplistic. | |
TMPDIR=/tmp # where to write the file | |
COUNT=64 # number of blocks | |
BS=1 # blocksize (in *MEGA*bytes) | |
total=$((COUNT*BS)) | |
[ "$1" ] && TMPDIR="$1" # Usage: bogodisk [dir [count]] |
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
#!/usr/bin/python3 | |
# globals | |
name={} | |
hierarchy={} | |
vernacular={} | |
synonyms={} | |
def loaddb(): | |
"Load up databases into dictionaries: name, hierarchy, vernacular" |
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
# Fail2Ban configuration file | |
# | |
# Redirect from a certain port to a different port on the same host | |
# Example usage: | |
# # By default redirects port=22, toport=2222, protocol=tcp | |
# action = iptables-redirect[name=cowrie] | |
# | |
# # Can specify other defaults if you'd like. | |
# action = iptables-redirect[name=web, proto=tcp, port=80, toport=8080] |
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 | |
# XXX showanddelete hacked to show best view by default and to | |
# change the image every five seconds if no key pressed. | |
# Maximum number of seconds to wait for a response from the terminal | |
# after a an escape sequence query. Usually, terminals respond much | |
# faster than 0.1 seconds, but may need to be increased for slow links | |
# (e.g., RS232C, ssh). | |
TIMEOUT=0.1 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/sh | |
# Silly speed test just by downloading a file directly to /dev/null | |
# Useful on routers which only have busybox installed. | |
# ↄ⃝🄯 B9 2016, 2018, 2023. Creative Commons Zero. | |
# NOTA BENE: cachefly has worked for over a decade, however they may | |
# be getting tired of scripts like this. Starting February 2023, their | |
# 100mb.test file is empty and the 50mb.test file holds 100MB. | |
dotest() { |