Skip to content

Instantly share code, notes, and snippets.

William Thompson willinspire

Block or report user

Report or block willinspire

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@willinspire
willinspire / macspoof.sh
Created Oct 24, 2018
Automatically generate and assign a new MAC address for the local system.
View macspoof.sh
#! /bin/bash
################################################################################
# __
# / _|
# _ __ ___ __ _ ___ ___ _ __ ___ ___ | |_
# | '_ ` _ \ / _` |/ __/ __| '_ \ / _ \ / _ \| _|
# | | | | | | (_| | (__\__ \ |_) | (_) | (_) | |
# |_| |_| |_|\__,_|\___|___/ .__/ \___/ \___/|_|
# | |
# |_|
@willinspire
willinspire / assetnews.sh
Last active Sep 25, 2018
Fetch asset-linked news stories categorized by the Wall Street Journal
View assetnews.sh
#! /bin/bash
#### ABOUT ####----------------------------------------------------------------#
#
# Script: assetnews.sh
# Source: http://bit.ly/assetnews
#
# Fetch asset-linked news stories categorized by the Wall Street Journal
#
# This script can be customized to fetch news stories related to any mainstream
@willinspire
willinspire / crypto-arbitrage.sh
Created Sep 24, 2018
Mirror the table of cryptocurrency arbitrage data provided by Cryptopia exchange (automate running this script via cron to keep it updated)
View crypto-arbitrage.sh
#! /bin/bash
# Cryptocurrency Arbitrage Page Builder
# Data provided by Cryptopia.co.nz
# Assembled by h8rt3rmin8r on 20180924
#
# NOTE: This bash script requires prior installation of Apache or some other web host
# software and it requires write-access to /var/www/html/index.html
# Set up the output location in a public-facing HTML page
@willinspire
willinspire / gsrapi.sh
Created Sep 16, 2018
Google Search Recommendations API -- (Bash Shell Script)
View gsrapi.sh
#! /bin/bash
################################################################################
#
# gsrapi.sh
# Google Search Recommendations API -- Bash Library
# This script was created by h8rt3rmin8r on 20180916
# Built for use by ResoNova International Consulting, LLC (ResoNova.com)
#
# BASIC USAGE:
# Make this script executable and pass a query to the script...
@willinspire
willinspire / encryptStrings.sh
Created Nov 30, 2017
Encrypt a string within a shell script
View encryptStrings.sh
################
# #
# #
# ENCRYPTING #
# SHELL #
# STRINGS #
# #
# #
################################################################################
#------------------------------------------------------------------------------#
@willinspire
willinspire / NationalGoogleTrends.sh
Last active Nov 23, 2017
Curl the XML data from all nationally-sorted Google search trends feeds.
View NationalGoogleTrends.sh
################################
# NATIONAL GOOGLE TRENDS #
################################
#
# Updated: 20171123
# Created by h8rt3rmin8r
# Email: 161803398@email.tg
# PGP: h8rt3rmin8r.com
###############################################################################################################
# Curl the XML data from all nationally-sorted Google search trends feeds.
View jq-manual
JQ(1) JQ(1)
NAME
jq - Command-line JSON processor
SYNOPSIS
jq [options...] filter [files...]
jq can transform JSON in various ways, by selecting, iterating, reducing and otherwise mangling JSON documents. For instance, running the command jq ´map(.price) | add´ will take an array of JSON objects as input and return the sum of their "price" fields.
@willinspire
willinspire / SheetTimeStamper.gs
Last active Sep 25, 2017
A Google Apps Script for generating automated time stamping in Google Sheets
View SheetTimeStamper.gs
/*/////////////////////////////////////////////////////////////////////////
SHEET TIME STAMPER - (FOR USE IN GOOGLE SHEETS)
The initial configuration generates a unique time stamp on the line of
of the specified sheet ("Sheet1") whenever the corresponding cell in
column 4 is NOT empty. Included is an additional configuration which will
perform this same action on multiple columns simultaneously.
###############################
View bittrex.py
from requests import Session # pip install requests
from signalr import Connection # pip install signalr-client
def handle_received(**kwargs):
print('received', kwargs)
def print_error(error):
print('error: ', error)
@willinspire
willinspire / Google Script Cache-Busting IMPORTHTML.md
Last active Apr 30, 2019 — forked from ranaroussi/Google docs cache-busting importdata.md
It is not easy to refresh the IMPORTHTML functions in Google Sheets due to cashe limitations. The resulting limitations are old data instead of new data being pulled into the Sheet upon running a Script to reload the IMPORTHTML function. This Google Script is a "Cache-Busting" function which circumvents this problem.
View Google Script Cache-Busting IMPORTHTML.md
// Set your variables below
SHEET_NAME="MC-Import-Data"
URL="https://coinmarketcap.com/currencies/views/all/"

// Create a trigger to refresh every 5 minutes
function myFunctionA() {
  ScriptApp.newTrigger("getData")
  .timeBased()
  .everyMinutes(5)
You can’t perform that action at this time.