Skip to content

Instantly share code, notes, and snippets.

View hak8or's full-sized avatar

hak8or hak8or

View GitHub Profile
@hak8or
hak8or / xolo_miner_setup.sh
Last active June 21, 2017 10:35
Sets up xolominer to mine primecoin on the beeeeer.org mining pool.
#!/usr/bin/env bash
# This sets up a miner on your address using the xolo miner.
echo "+-------------------------------------------------------------------+"
echo "| Xolo Miner Automatic setup script |"
echo "| |"
echo "| Sit back, grab a cup of tea, and relax as I take care of |"
echo "| everything for you! This will install all of the required |"
echo "| dependancies, compiler the miner, configure the miner, |"
echo "| have the miner autostart if the server has to restart, and |"
@hak8or
hak8or / gist:7971686
Created December 15, 2013 11:13
notes sha-256
// NOTES
abc
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
RabbleRabble
fc9d6d9a223480bc51e4c6a4893502930d66a13c71c5818d230f1f50be2a20e6 <-- website 1
fc9d6d9a223480bc51e4c6a4893502930d66a13c71c5818d230f1f50be2a20e6
RabbleRabbleRabbleRabble
@hak8or
hak8or / submissions.txt
Created January 20, 2014 01:32
Reddit Dogecoin submissions list
/u/MorpheneGaming - [Dogecoin Promo #dogecoin #dogevideocontest](http://youtu.be/0OluRWiUJmw)
/u/orange_furbal - [Dogecoin Promo - Reddit Contest](http://youtu.be/91ZsC-byikQ)
/u/specialdog - [Dogecoin Destination: The Moon](http://youtu.be/TZjcVWHAy2E)
/u/NAD - [Dogecoin](http://youtu.be/C1h0EC6EIVY)
/u/Bearaid - [To reach for the Moon](http://youtu.be/BlTPPbeOtd8)
@hak8or
hak8or / SHA_256_hak.cpp
Created February 3, 2014 23:12
SHA-256 basic implementation in C++ with a test.
#include <iostream>
#include <sstream>
#include <bitset>
#include <vector>
#include <iomanip>
#include <cstring>
// By: hak8or
// To compile: g++ -std=c++0x SHA_256_hak.cpp -o SHA_256_hak
// To run self test just run the following: SHA_256_hak
@hak8or
hak8or / compile.rb
Created August 22, 2014 11:30
Compilation script turned into a dependency management hybrid thing.
require "erubis"
require 'yaml'
require 'colorize'
require 'fileutils'
# Holds the project class/schema.
require_relative "project"
# Expected input: script_file_name proj_name devel/prod
@hak8or
hak8or / redo_sig.sh
Created January 5, 2015 02:37
Write BCB to SD card
echo "Remove old files"
rm bcb
rm bcb_512.cfg
rm bcb_sdcard_part.old
rm bcb_sdcard_part.readback
echo "Compiling bcb tool"
gcc bcb.c -o bcb
echo "Running bcb tool"
@hak8or
hak8or / copy_to_sdcard.sh
Created January 5, 2015 02:37
Copies an image to the SD card.
echo "Clear the SD card partition first"
dd if=/dev/zero of=/dev/sdb1
echo "And now we write it to the SD card."
dd if=bootstream-factory.raw of=/dev/sdb1
echo "Sync things up to make sure we are right"
sync
echo "Dumping the image to check if things went back"
@hak8or
hak8or / gist:356911140cc45584ed0b
Created January 5, 2015 02:46
Original writer
// This file will create the 512 byte BCB config block that must be located
// at the last block of the SD card when booting from SD with BCB.
// This is for STMP378x or i.MX233 BCB boot creation.
// You can use dd in Linux to wriet this one out to the SD card.
#include <stdio.h>
// NEVER CHANGE ANY OF THE FOLLOWING:
#define CONFIG_BLOCK_SIGNATURE 0x00112233 // This MUST be bcb_config[0]
#define CONFIG_BLOCK_VERSION 0x1 // This must be bcb_config[1]