Skip to content

Instantly share code, notes, and snippets.

View johanstenberg92's full-sized avatar

Johan Stenberg johanstenberg92

View GitHub Profile
using System;
using Algorand;
using Algorand.V2;
namespace AlgorandTransactionFeesDemo
{
class Program
{
private const string ApiAddress = "<replace me>";
private const string ApiToken = "<replace me>";
@johanstenberg92
johanstenberg92 / install-pcp.sh
Created July 2, 2015 19:11
Install Performance Co-Pilot on Amazon Linux AMI
#!/bin/sh
if [ "$(id -u)" != "0" ]; then
echo "Sorry, you are not root."
exit 1
fi
if !(type pcp 2>/dev/null;) then
yum -y install git bison flex gcc-c++ perl-Tk-devel libmicrohttpd-devel
git clone git://git.pcp.io/pcp
@johanstenberg92
johanstenberg92 / install-redis
Created July 2, 2015 10:03
Install Redis-stable on Amazon AMI
1. Install Linux updates, set time zones, followed by GCC and Make
sudo yum -y update
sudo ln -sf /usr/share/zoneinfo/America/Indianapolis \
/etc/localtime
sudo yum -y install gcc make
2. Download, Untar and Make Redis stable (check here http://redis.io/download)
@johanstenberg92
johanstenberg92 / SSNValidatorUtils.java
Last active December 21, 2015 01:59
Validates a swedish social security number
/**
* Validates a Swedish social security number.
*
* @author Johan Stenberg
*/
public class SSNValidatorUtils extends AbstractUtils {
private SSNValidatorUtils() {
}