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 |
Loading
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() { |
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
/* Student's t-test (Two Independent Samples) */ /* -*- c -*- */ | |
/* Implemented in GNU bc by hackerb9, 2018. */ | |
/* Copyright assigned to FSF. */ | |
/* | |
* | |
* µ₀ - µ₁ | |
* t = ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
* ⎡ ⎤ ½ | |
* ⎢ (ΣA² - (ΣA)²/n₀) + (ΣB² - (ΣB)²/n₁) ⎛ 1 1 ⎞ ⎥ |
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
/* Student's t-test (Two Independent Samples) */ | |
/* Implemented in GNU bc by hackerb9, 2018. */ | |
/* Copyright assigned to FSF. */ | |
/* | |
* | |
* µ₀ - µ₁ | |
* t = ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
* ⎡ ⎤ ½ | |
* ⎢ (ΣA² - (ΣA)²/n₀) + (ΣB² - (ΣB)²/n₁) ⎛ 1 1 ⎞ ⎥ |
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 | |
# Sum of Factors. hackerb9 2018. | |
# This is a generalization of a certain type of numeric logic puzzle | |
# that gives you a hint by telling you that the previous hints were | |
# insufficient: that is, you now know that the answer is one that | |
# could be arrived at two different ways. Here's an example, as told | |
# by Jim Fixx in the 1970's: | |
############################################ |
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
If you want to give a link to a big PDF file, but you want it to open to some page by default, just append "#page=123". | |
http://harmonizer.s3.amazonaws.com/Harmonizer_vol59_no6_nov1999.pdf#page=40 |

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 | |
# gist.sh from https://github.com/kathawala/gist | |
# A bash script meant to take in user input, craft an API call to Github's Gist | |
# API and send the request, with content and filename filled in by the user | |
#Sends error on script failure | |
set -o errexit | |
USER=-uhackerb9 |