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
//// Bitcoin Barber Shop Pole | |
//// Author: Mo Morsi <mo@morsi.org> | |
//// Arduino Controller Sketch | |
//// | |
//// License: MIT | |
//// For use at the Syracuse Innovators Guild (sig315.org) | |
#include <SPI.h> | |
#include <Ethernet.h> |
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
#!/usr/bin/ruby | |
# Read / write db related metadata to/from dia diagram | |
# | |
# Copyright (C) 2015-2016 - Red Hat Inc. | |
require 'zlib' | |
require 'nokogiri' | |
require 'optparse' | |
require 'active_record' | |
require 'active_support/core_ext/string' |
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
# LVM Parser & Block Reader | |
# | |
# Copyright (C) 2016 Red Hat Inc | |
require 'optparse' | |
require 'ostruct' | |
require 'binary_struct' | |
### constants |
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
#!/usr/bin/ruby | |
# search for unmatched '{' / '}' pairs and '#ifndef' / '#endif' pairs | |
# assuming that any given file should have fully matched sets of both | |
Dir.glob("src/**/*\.[h,cpp]").each { |src| | |
c = File.read(src) | |
ob = c.count('{') | |
cb = c.count('}') | |
od = c.count('#ifndef') | |
cd = c.count('#endif') |
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
# runs tests in parallel | |
TEST_CMD="./build/test/run_unit_tests" | |
JOBS="8" | |
TAGS="$($TEST_CMD -l | grep Scenario -A 1 | grep -v Scenario | sort -u)" | |
IFS=' ' read -a SPLIT <<< $TAGS | |
NUM_TAGS=${#SPLIT[@]} | |
# so as to round up | |
PER_JOB=`expr $NUM_TAGS + $JOBS - 1` |
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
#!/usr/bin/ruby | |
# Read keyboard presses / release / holds on Linux | |
# Released under the MIT License | |
# Use binary_struct to process blobs | |
require_relative 'binary_struct' | |
##################!!!!###################### | |
#!!!!CHANGE ME TO YOUR KEYBOARD DEVICE!!!!!# | |
############################################ |
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
#!/usr/bin/ruby | |
# Small script to retrieve a twitter account's followers | |
# and report on new followers and 'unfollows' | |
require 'twitter' | |
require_relative '../lib/wipple/config' | |
ACCOUNT = 'change_me' | |
AUTH = { |
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
<!-- | |
Small drop-in webpage to display rippled server status. | |
To deploy download the following and place in the same web server directory as this file: | |
- https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.js | |
- https://github.com/ripple/ripple-lib/releases/download/1.0.0/ripple-1.0.0-min.js | |
- https://raw.githubusercontent.com/caldwell/renderjson/master/renderjson.js | |
Then change RIPPLED_URI below to the location of your rippled server. | |
--> |
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
# Setup rippled validator on CentOS with a letsencrypt certificate. | |
# Run all commands as sudo unless otherwise indicated. | |
# Replace <HOSTNAME> with you full server hostname (ex. syracloud.net). | |
# Replace <COMPACT_HOSTNAME> with your server hostname minus periods (ex. syracloudnet). | |
# Replace <USER> with your login username | |
# Set system hostname to <HOSTNAME> | |
vim /etc/hostname | |
# Update the system |
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
# Instructions on how to setup secure postgresql server <-> client communication on two different machines. | |
# Set SERVER_HOSTNAME and CONNECTION_USER appropriately. Instructions are for Fedora 29, may need to be modified for other platforms | |
# Set DAYS to the number of days which you'd like certificates to be valid (after this time new client certificates will need to be created) | |
# General guide can be found here: | |
# https://www.howtoforge.com/postgresql-ssl-certificates | |
### |