Skip to content

Instantly share code, notes, and snippets.


Matt Gorecki mattgorecki

View GitHub Profile
justinjahn /
Last active Oct 19, 2021
Minecraft server(s) using systemd and screen.


# Install dependencies
sudo yum install -y java-1.8.0-openjdk screen

# Create a new unprivileged user for minecraft
useradd -r -m -d /opt/minecraft minecraft

# Create the directory that will house our minecraft instances
sudo su --shell /bin/bash minecraft
radupotop / iperf3.service
Last active Jan 12, 2019
iperf3.service for systemd
View iperf3.service
Description=iperf3 server auditd.service
ExecStart=/usr/bin/iperf3 -s --logfile /var/log/iperf.log
kyledrake / ferengi-plan.txt
Last active Jul 12, 2021
How to throttle the FCC to dial up modem speeds on your website using Nginx
View ferengi-plan.txt
# The blog post that started it all:
# Current known FCC address ranges:
# Confirm/locate FCC IP ranges with this:
# In your nginx.conf:
location / {
tmornini / gist:10551841
Last active Nov 24, 2015
Subledger v2 create_and_post JSON body
View gist:10551841
"effective_at": "ISO8601 Date/Time",
"description": "Free form text",
"reference": "URL",
"lines": [
"account": "account_id",
"value": {
"type": "debit",
"amount": "10.00"
#! /usr/bin/python
import Image
#_______________________________________________________load image/create 'canvas'
source ="test26.jpg")
img = source.load()
print source.format
#! /usr/bin/python
import Image
#Created by vvdr12
#Fully open license. Have fun.
#change threshold value in 'def contrastpoints' for higher/lower line density.
#put a 'test.jpg' file in the same folder as the code.
#!/usr/bin/env python
# Converts any integer into a base [BASE] number. I have chosen 62
# as it is meant to represent the integers using all the alphanumeric
# characters, [no special characters] = {0..9}, {A..Z}, {a..z}
# I plan on using this to shorten the representation of possibly long ids,
# a la url shortenters
mahmoudimus /
Created Apr 30, 2010 — forked from cyberdelia/
fabric deployment example
from fabric.api import env, run, sudo, local, put
def production():
"""Defines production environment"""
env.user = "deploy"
env.hosts = ['',]
env.base_dir = "/var/www"
env.app_name = "app"
env.domain_name = ""
env.domain_path = "%(base_dir)s/%(domain_name)s" % { 'base_dir':env.base_dir, 'domain_name':env.domain_name }