Skip to content

Instantly share code, notes, and snippets.

@hisea
hisea / asymmetric.go
Created September 24, 2018 04:36 — forked from cryptix/LICENSE
example of using JWT for http authentication in go
package main
// using asymmetric crypto/RSA keys
import (
"crypto/rsa"
"fmt"
"io/ioutil"
"log"
"net/http"
@hisea
hisea / ethminer_ubuntu_nvidia.md
Created December 25, 2017 06:29 — forked from johnstcn/ethminer_ubuntu_nvidia.md
NVIDIA/CUDA ethminer setup under Ubuntu Server 16.04

Headless Ethminer (nVidia) Setup Guide

Cian Johnston, July 2017

A couple of weeks ago, I decided I should put my gaming rig to work crypto mining. I did not expect to make any significant profit on this, it was more of a fun project to set up. However, there were a large number of tutorials and guides already out there, and many were more than a year out of date.

This guide assumes the reader already has a crypto wallet set up, is comfortable with Linux and the command line, and knows how to use Google if they run into problems.

The end result is an Ubuntu 16.04 LTS headless server running CUDA ethminer via systemd.

Hardware

@hisea
hisea / ethminer_ubuntu_nvidia.md
Created December 25, 2017 06:29 — forked from johnstcn/ethminer_ubuntu_nvidia.md
NVIDIA/CUDA ethminer setup under Ubuntu Server 16.04

Headless Ethminer (nVidia) Setup Guide

Cian Johnston, July 2017

A couple of weeks ago, I decided I should put my gaming rig to work crypto mining. I did not expect to make any significant profit on this, it was more of a fun project to set up. However, there were a large number of tutorials and guides already out there, and many were more than a year out of date.

This guide assumes the reader already has a crypto wallet set up, is comfortable with Linux and the command line, and knows how to use Google if they run into problems.

The end result is an Ubuntu 16.04 LTS headless server running CUDA ethminer via systemd.

Hardware

@hisea
hisea / install_connector.sh
Last active December 14, 2016 01:12 — forked from hkhamm/install_connector.sh
Install the Spark Cassandra Connector
#!/bin/bash
# Installs the spark-cassandra-connector and support libs
mkdir /usr/local/opt/connector
cd /usr/local/opt/connector
rm *.jar
curl -o ivy-2.4.0.jar \
'https://repo1.maven.org/maven2/org/apache/ivy/ivy/2.4.0/ivy-2.4.0.jar'
@hisea
hisea / create-multi-host-swarm-digitalocean.sh
Last active August 2, 2016 00:44 — forked from jmshal/create-multi-host-swarm-digitalocean.sh
Setup a Docker Swarm multi-host cluster on DigitalOcean
docker-machine create \
--driver=digitalocean \
--digitalocean-access-token=$DO_TOKEN \
--digitalocean-size=512mb \
--digitalocean-region=tor1 \
--digitalocean-private-networking=true \
--digitalocean-image=ubuntu-16-04-x64 \
docker-swarm-kv-store
docker $(docker-machine config docker-swarm-kv-store) run -d \
# vim: ft=gitconfig
[sendemail]
multiedit = true
suppresscc = self
[color]
ui = true
[filemerge]
executable = vimdiff
[merge]
# lib/tasks/deploy.rake
namespace :deploy do
desc 'Deploy to staging environment'
task :staging do
exec 'mina deploy -f config/deploy/staging.rb'
end
end