Skip to content

Instantly share code, notes, and snippets.

@AStevensTaylor
AStevensTaylor / MC.js
Created July 24, 2012 14:45
Node.js Minecraft Server interface.
/*
===NOTE===
Not working on any of the snapshots that include encryption (as of 12w18a). Simply put, I am hoping to chat to @dinnerbone about how this encryption works, but it won't be ready in time for 1.3.
*/
//Setup variables
var sPort = 25565; //The port you wish to broadcast on (Default: 25565)
var sName = 'MC-Server'; //Also known as the MOTD
var sKickMessage = 'This Server is currently down for maintenance'; //The message sent when they get kicked
var sMaxSlots = '100'; //The max slots shown after the ping (A value below 1 will be shown as '???' in client)
@AStevensTaylor
AStevensTaylor / Diff.py
Last active December 20, 2015 10:09
Finds differences in two directories, attempts to read files, and prints the differences in those files; disregarding position in the file.
#! /usr/bin/python
import os, os.path, sys
def getFiles(dir):
os.chdir(os.path.join(os.getcwd(), dir))
file_list = []
for root, _, filenames in os.walk('.'):
for filename in filenames:
file_list.append(os.path.join(root, filename))
@AStevensTaylor
AStevensTaylor / archdual.sh
Last active February 26, 2019 11:33 — forked from altercation/archdual.sh
arch-dual drive config
#!/bin/sh
#----------------------------------------------------------------------
# Arch Linux Installation Script
#
# This installs, with no intervention (other than initial edit to change
# RAID array drive values), Arch Linux on an encrypted btrfs raid1 array.
#----------------------------------------------------------------------
set -eu
# For just your local account
defaults write ~/Library/Preferences/us.zoom.config.plist ZDisableVideo 1
# For all users on the machine
sudo defaults write /Library/Preferences/us.zoom.config.plist ZDisableVideo 1
sudo kill -9 $(lsof -i :19421|tail -n 1|awk '{print $2}') && rm -rf ~/.zoomus && touch ~/.zoomus && chmod 600 ~/.zoomus

Keybase proof

I hereby claim:

  • I am astevenstaylor on github.
  • I am ahrentpackt (https://keybase.io/ahrentpackt) on keybase.
  • I have a public key ASA5KXWDgJbwWixfSWEo7YI2BIroJnQJNUuHmaKnnZJlYQo

To claim this, I am signing this object: