Skip to content

Instantly share code, notes, and snippets.

@Rimbo
Rimbo / minecraft-server.sh
Created March 12, 2023 23:20
Suppose you want your own self-hosted Minecraft server on EC2 because you want to save money; you have a Route 53 DNS that needs updating, too...
#
# AWS EC2 Minecraft Server Functions!
# These functions will work for any EC2 you want to start and stop on-demand.
# Save even MORE money with a spot instance.
#
# You will need:
# 1. An AWS account.
# 2. A domain/DNS for the host, preferably in Route 53.
# 3. An EC2 with the minecraft server installed on it (possibly launched on boot?)
@Rimbo
Rimbo / insult.py
Created January 13, 2017 20:18
Shakespearean insult generator
#!/usr/bin/python
# Shakespeare insult generator
# http://www.pangloss.com/seidel/shake_rule.html
import random
column1 = ['artless', 'bawdy', 'beslubbering', 'bootless', 'churlish', 'cockered', 'clouted', 'craven', 'currish', 'dankish', 'dissembling', 'droning', 'errant', 'fawning', 'fobbing', 'froward', 'frothy', 'gleeking', 'goatish', 'gorbellied', 'impertinent', 'infectious', 'jarring', 'loggerheaded', 'lumpish', 'mammering', 'mangled', 'mewling', 'paunchy', 'pribbling', 'puking', 'puny', 'qualling', 'rank', 'reeky', 'roguish', 'ruttish', 'saucy', 'spleeny', 'spongy', 'surly', 'tottering', 'unmuzzled', 'vain', 'venomed', 'villainous', 'warped', 'wayward', 'weedy', 'yeasty', 'cullionly', 'fusty', 'caluminous', 'wimpled', 'burly-boned', 'misbegotten', 'odiferous', 'poisonous', 'fishified', 'Wart-necked']
column2 = ['base-court', 'bat-fowling', 'beef-witted', 'beetle-headed', 'boil-brained', 'clapper-clawed', 'clay-brained', 'common-kissing', 'crook-pated', 'dismal-dreaming', 'dizzy-eyed', 'doghearted', 'd
@Rimbo
Rimbo / metalbandnamegenerator.py
Created April 7, 2016 17:17
Generates a random metal band name. \m/, ^_^ ,\m/ Go to http://rimbosity.com/metalbandname/ to see it all prettified with trve kvlt fonts.
#!/usr/bin/python
# http://www.invisibleoranges.com/2014/02/the-100-most-overused-metal-band-name-words-according-to-metal-archives/
import random
def getmetalname():
namelist=['Death','Black','Dark','Blood','Dead','Hell','War',
'Necro','Soul','Night','Fall','Hate','God','Evil',
'Kill','Fire','Storm','Rain','Lord','Head','Metal',
'Human','Light','Moon','Winter','Shadow','Demon',
@Rimbo
Rimbo / dude
Created April 7, 2016 17:15
Turns your computer into a complete moron until you hit Ctrl-C.
#!/usr/bin/python
import random
import time
extendednessrarity=3 # one chance in extendednessrarity of extendedness
extendedness=8 # extent of extendedness
def Dude(punc,cap,l):
youse = 'u'*l
dude=cap('du%sde%s'%(youse,punc))
@Rimbo
Rimbo / fetchComic.py
Created April 7, 2016 17:15
A script to download the archives of Girl Genius, Buck Godot and BattlePug locally. Designed so you can add your own comics to it. PLEASE SUPPORT THE ARTISTS!
#!/usr/local/bin/python
from bs4 import BeautifulSoup
from urllib2 import urlopen
from urllib import urlretrieve
import argparse
class getComic:
"""Base class for comics
"""
@Rimbo
Rimbo / YEEARGH
Last active April 7, 2016 17:26
Type YEEARGH. Get YEEARGH. Easy as pie.
#!/bin/sh
cat <<EOF
#######################################+:::;;;;;:'###############################+++++++#+#+++##+++++++++++
#####################################';;;++++;''';:++############################+##++++#+++++##+++++++++++
###################################+;;'+##++';:;'';:+############################################++++++++++
##################################'''+#+';::,,,:::'''############################################++++++++++
#################################';'++':::::,,,,,::;++#############################################++++++++
################################+''++;:::::,,,,,,,,:;+#################################+###########++++++++
################################'+++;;::::,,,,,,,,,,,'++#########################################++++++++++