Skip to content

Instantly share code, notes, and snippets.

@Skinner927
Skinner927 / README.md
Last active December 29, 2015 19:07
Minecraft service and helper scripts for running a vanilla Minecraft server. Greatly inspired/copied by: http://wellsie.net/p/349/

#Minecraft Server Service

Minecraft service and helper scripts for running a vanilla Minecraft server. Greatly inspired/copied by: http://wellsie.net/p/349/


Create a minecraft service user

sudo adduser --system --group --shell /bin/bash minecraft

@Skinner927
Skinner927 / keybase.md
Created January 19, 2016 20:14
keybase.md

Keybase proof

I hereby claim:

  • I am skinner927 on github.
  • I am skinner927 (https://keybase.io/skinner927) on keybase.
  • I have a public key whose fingerprint is 5BEC D1D6 3AE2 28A5 5515 1BA7 2F64 A295 FA0B AC66

To claim this, I am signing this object:

@Skinner927
Skinner927 / split.sh
Last active February 19, 2016 18:06
Recursively split directory of mp3s by X minute chunks. Requires ffmpeg.
#!/bin/bash
min=10; #num minutes to split by
VERBOSE=false
QUIET=false
TEST=false
while getopts ':vqt:nh' opt; do
case $opt in
@Skinner927
Skinner927 / app.wsgi
Last active April 20, 2016 04:06
Amazon Alexa/Echo Find My iPhone
"""
This is a WSGI script that will take responses from Amazon's Echo/Alexa and hit iCloud's FindMyIPhone.
Basically, using the power of pyicloud, you can ask Alexa to find your iPhone.
Example of what to say to Alexa:
Alexa, tell find my iphone dennis
or
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Skinner927
Skinner927 / init.lua
Last active November 15, 2020 22:10
Hammerspoon auto screen position script
hs.urlevent.bind('reload', function(eventName, params)
hs.reload()
end)
hs.urlevent.bind('currentScreenTag', function(eventName, params)
alert(getScreenTag())
end)
hs.urlevent.bind("printLayout", function(eventName, params)
config = {}
@Skinner927
Skinner927 / MyXubuntuSetup.md
Last active May 14, 2019 13:35
How I setup my XUbuntu boxes

How to setup computer

This document describes how I set up my development environment with a fresh install of Xubuntu 16.04 (Xubuntu is Ubuntu with xfce).

Currently this document describes how to set up:

  • Generic desktop environment with all the goodies (themes, keyboard, utilities).
  • Python 2 & 3 development with PyCharm.
@Skinner927
Skinner927 / etc|docker|daemon.json
Created December 13, 2018 01:58
Specify docker's IP range for bridged adapters
{
"bip": "192.168.128.5/24",
"default-address-pools": [{"base": "192.168.0.0/17", "size": 24}]
}
@Skinner927
Skinner927 / static_property_descriptor.py
Last active December 30, 2018 00:47
Python static property using a non-data descriptor
"""
This is an example of how to create a static property using a
non-data descriptor.
https://docs.python.org/2/howto/descriptor.html
This works in python >= 2.3 including 3.x.
In this example the __get_default() method is called the first time
we need to access Widget.default. The __get_default method clobbers