Skip to content

Instantly share code, notes, and snippets.

View meta1203's full-sized avatar
💭
Apparently GitHub has statuses now

meta1203

💭
Apparently GitHub has statuses now
View GitHub Profile
@meta1203
meta1203 / optigame.sh
Last active March 16, 2016 04:12
A shell script for getting logs through steam/bumblebee
stamp=$(date +%Y%m%d-%H:%M:%S)
command=$(echo $@ | cut -f1 -d" ")
command="${command##*/}-"
stamp=$command$stamp
echo $stamp
mkdir -p /tmp/gamelogs
echo "$@" &> "/tmp/gamelogs/$stamp.txt"
echo -e "\n" >> "/tmp/gamelogs/$stamp.txt"
#! /bin/sh -
#
# Install OpenVPN connections for all available
# regions to NetworkManager
#
# Requirements:
# should be run as root
# python and openvpn (will be installed if not present)
#
# Usage:

Common salt is a mineral composed primarily of sodium chloride (NaCl), a chemical compound belonging to the larger class of salts; salt in its natural form as a crystalline mineral is known as rock salt or halite. Salt is present in vast quantities in seawater, where it is the main mineral constituent; the open ocean has about 35 grams (1.2 oz.) of solids per liter, a salinity of 3.5%. Salt is essential for animal life, and saltiness is one of the basic human tastes. The tissues of animals contain larger quantities of salt than do plant tissues; therefore the typical diets of nomads who subsist on their flocks and herds require little or no added salt, whereas cereal-based diets require supplementation. Salt is one of the oldest and most ubiquitous of food seasonings, and salting is an important method of food preservation. Some of the earliest evidence of salt processing dates to around 8,000 years ago, when people living in Romania were boiling spring water to extract the salts; a salt-works in China has be

#! /bin/sh -
#
# Install OpenVPN connections for all available
# regions to NetworkManager
#
# Requirements:
# should be run as root
# python and openvpn (will be installed if not present)
#
# Usage:
screen -S keyboardled sudo node flow.js
var keyboard = require('msi-keyboard');
var colors = ['red','yellow','green','sky','blue','purple'];
var reg1 = 0;
var reg2 = 1;
var reg3 = 2;
keyboard.color('left', colors[reg1]);
keyboard.color('middle', colors[reg2]);
keyboard.color('right', colors[reg3]);
@meta1203
meta1203 / CC_Server.lua
Created February 5, 2013 20:50
Server for the Computer Craft Intercontinental Network (CCIN)
while true do
event, senderId, message, distance = os.pullEvent("rednet_message")
print( "Computer: "..senderId.." sent a message: "..message.." from "..distance.." blocks away!" )
end
package com.mtgox.api;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.crypto.Mac;
import me.meta1203.plugins.satoshis.Satoshis;
import me.meta1203.plugins.satoshis.SatoshisEconAPI;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.RegisteredServiceProvider;