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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true do | |
event, senderId, message, distance = os.pullEvent("rednet_message") | |
print( "Computer: "..senderId.." sent a message: "..message.." from "..distance.." blocks away!" ) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
screen -S keyboardled sudo node flow.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |