Skip to content

Instantly share code, notes, and snippets.

View TravisMullen's full-sized avatar

Travis Mullen TravisMullen

View GitHub Profile
@TravisMullen
TravisMullen / pivx-cli
Created January 1, 2018 03:20
PIVX Commands
== Blockchain ==
getbestblockhash
getblock "hash" ( verbose )
getblockchaininfo
getblockcount
getblockhash index
getblockheader "hash" ( verbose )
getchaintips
getdifficulty
getmempoolinfo
@TravisMullen
TravisMullen / motion.conf
Created March 7, 2018 02:36
/etc/motion/motion.conf
# Rename this distribution example file to motion.conf
#
# This config file was generated by motion 4.0
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
@TravisMullen
TravisMullen / fixedContentDirective.js
Created March 15, 2018 22:14
AngularJS fixedContent
angular.module( 'vpower.directives' ).directive( 'fixedContent',
[
function() {
'use strict';
return {
restrict: 'A',
scope: {
fixedBelow: '=',
fixedPadding: '='
@TravisMullen
TravisMullen / passwordless_entry.sh
Last active May 4, 2019 20:23
Add SSH key to remote node.
#!/bin/sh
echo "What is your node's username?"
read REMOTE_USER_NAME
echo "What is your node's IP address (or hostname)?"
read IP_ADDRESS
ssh "$REMOTE_USER_NAME@$IP_ADDRESS" 'mkdir -p ~/.ssh && chmod 700 ~/.ssh && touch .ssh/authorized_keys'
@TravisMullen
TravisMullen / install_ccminer.sh
Last active April 7, 2018 14:20
Set-up nvidia cuda ccminer for multiple algos on Ubuntu 16.04 server.
#!/bin/bash -e
# Ubuntu Server 16.04.4 LTS
# The long-term support version of Ubuntu Server, including the Mitaka release of OpenStack and support guaranteed until April 2021 — 64-bit only.
# https://www.ubuntu.com/download/server/thank-you?version=16.04.4&architecture=amd64
sudo apt-get update && sudo apt-get upgrade -y
# nvidia drivers
sudo apt-get remove nvidia* && sudo apt-get autoremove -y
@TravisMullen
TravisMullen / hp_omen_wifi.sh
Created April 7, 2018 18:19
Fix Wifi hardware for Linux install on HP Omen desktop.
#!/bin/sh
sudo sh -c 'echo blacklist acer-wmi > /etc/modprobe.d/blacklist.conf'
@TravisMullen
TravisMullen / diskspace.sh
Created April 7, 2018 18:37
This script does a very simple test for checking disk space.
#!/bin/bash
# This script does a very simple test for checking disk space.
space=`df -h | awk '{print $5}' | grep % | grep -v Use | sort -n | tail -1 | cut -d "%" -f1 -`
case $space in
[1-6]*)
Message="All is quiet."
;;
@TravisMullen
TravisMullen / X11_color_names.json
Last active April 25, 2018 03:40
This list of X11 color names was developed for color based computer display system.
{"aliceblue":"#f0f8ff","antiquewhite":"#faebd7","antiquewhite1":"#ffefdb","antiquewhite2":"#eedfcc","antiquewhite3":"#cdc0b0","antiquewhite4":"#8b8378","aquamarine1":"#7fffd4","aquamarine2":"#76eec6","aquamarine4":"#458b74","azure1":"#f0ffff","azure2":"#e0eeee","azure3":"#c1cdcd","azure4":"#838b8b","beige":"#f5f5dc","bisque1":"#ffe4c4","bisque2":"#eed5b7","bisque3":"#cdb79e","bisque4":"#8b7d6b","black":"#000000","blanchedalmond":"#ffebcd","blue1":"#0000ff","blue2":"#0000ee","blue4":"#00008b","blueviolet":"#8a2be2","brown":"#a52a2a","brown1":"#ff4040","brown2":"#ee3b3b","brown3":"#cd3333","brown4":"#8b2323","burlywood":"#deb887","burlywood1":"#ffd39b","burlywood2":"#eec591","burlywood3":"#cdaa7d","burlywood4":"#8b7355","cadetblue":"#5f9ea0","cadetblue1":"#98f5ff","cadetblue2":"#8ee5ee","cadetblue3":"#7ac5cd","cadetblue4":"#53868b","chartreuse1":"#7fff00","chartreuse2":"#76ee00","chartreuse3":"#66cd00","chartreuse4":"#458b00","chocolate":"#d2691e","chocolate1":"#ff7f24","chocolate2":"#ee7621","chocolate3":"#cd6
@TravisMullen
TravisMullen / crayola_colors.json
Last active May 19, 2021 23:41
Crayola is a famous color pencil and crayon producer.
{"Red":"#ED0A3F","Maroon":"#C32148","Scarlet":"#FD0E35","Brick Red":"#C62D42","English Vermilion":"#CC474B","Madder Lake":"#CC3336","Permanent Geranium Lake":"#E12C2C","Maximum Red":"#D92121","Indian Red":"#B94E48","Orange-Red":"#FF5349","Sunset Orange":"#FE4C40","Bittersweet":"#FE6F5E","Dark Venetian Red":"#B33B24","Venetian Red":"#CC553D","Light Venetian Red":"#E6735C","Vivid Tangerine":"#FF9980","Middle Red":"#E58E73","Burnt Orange":"#FF7F49","Red-Orange":"#FF681F","Orange":"#FF8866","Macaroni and Cheese":"#FFB97B","Middle Yellow Red":"#ECB176","Mango Tango":"#E77200","Yellow-Orange":"#FFAE42","Maximum Yellow Red":"#F2BA49","Banana Mania":"#FBE7B2","Maize":"#F2C649","Orange-Yellow":"#F8D568","Goldenrod":"#FCD667","Dandelion":"#FED85D","Yellow":"#FBE870","Green-Yellow":"#F1E788","Middle Yellow":"#FFEB00","Olive Green":"#B5B35C","Spring Green":"#ECEBBD","Maximum Yellow":"#FAFA37","Canary":"#FFFF99","Lemon Yellow":"#FFFF9F","Maximum Green Yellow":"#D9E650","Middle Green Yellow":"#ACBF60","Inchworm":"#AFE313",
sudo -E bash -c 'wpa_passphrase $YOUR_WIFI_NAME >> /etc/wpa_supplicant/wpa_supplicant.conf'
# enter your password into the prompt
/sbin/wpa_supplicant -B -c /etc/wpa_supplicant/wpa_supplicant.conf -i $YOUR_WIFI_DEVICE
/sbin/dhclient $YOUR_WIFI_DEVICE