Skip to content

Instantly share code, notes, and snippets.

View qrpike's full-sized avatar

Quinton Pike qrpike

View GitHub Profile
@qrpike
qrpike / install_boot_usb.md
Created November 25, 2025 00:45
Flash Win11 ISO to USB on Mac

Bootable Windows USB on Mac

Using sudo dd will NOT work for Windows installers.
You will hit the “install driver to show hardware” screen when booting the USB.
The following commands correctly create a working Windows 10/11 installer on macOS.


1. Identify the USB Drive

@qrpike
qrpike / FXSymbols.json
Created February 19, 2019 02:54
FX Pairs Covered
[
{
"ticker": "C:AEDAUD",
"base": "AED",
"baseName": "United Arab Emirates dirham",
"currency": "AUD",
"currencyName": "Australian dollar"
},{
"ticker": "C:AEDBHD",
"base": "AED",
@qrpike
qrpike / CryptoSymbols.json
Created February 19, 2019 02:53
Crypto Symbols Covered
[{
"ticker": "X:XTZUSD",
"base": "XTZ",
"baseName": "Tezos",
"currency": "USD",
"currencyName": "United States dollar"
},{
"ticker": "X:IOTUSD",
"base": "IOT",
"baseName": "IOTA",
@qrpike
qrpike / crypto-schemas.js
Created February 13, 2019 02:05
Polygon.io crypto posts
// Crypto QUOTE:
const QUOTE = {
"ev": "XQ", // Event Type
"pair": "BTC-USD", // Crpyto Pair
"lp": 6001.20, // Last Trade Price
"ls": 1.05 // Last Trade Size
"bp": 6001.09, // Bid Price
"bs": 1.0003, // Bid Size
"ap": 6001.115, // Ask Price
"as": 3.0204005, // Ask Size
@qrpike
qrpike / poly.js
Last active September 17, 2018 02:37
const WebSocket = require('ws')
const ws = new WebSocket('wss://socket.polygon.io/forex')
// Connection Opened:
ws.on('open', () => {
ws.send(`{"action":"auth","params":"APIKEY"}`)
ws.send(`{"action":"subscribe","params":"C.AUD/USD,C.USD/EUR,C.USD/JPY"}`)
})
package main
import (
"fmt"
nats "github.com/nats-io/nats"
)
func main(){
import React, { Component } from 'react'
import { NavLink, withRouter } from 'react-router-dom'
import { Animation } from '../../helpers/Animations'
import { connect } from 'react-redux'
import { Route, Switch } from 'react-router'
import actions from '../../actions/index'
'use strict'
// Load in Route Class
const Route = require('restify-loader/route')
const lodash = require('lodash')
const sharp = require('sharp')
const Promise = require('bluebird')
const request = require('request-promise')
#!/bin/bash
# Clear all current rules:
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X
#cloud-config
ssh_authorized_keys:
- ssh-rsa xyz
write_files:
- path: /var/lib/rancher/conf/cloud-config.yml
permissions: "0644"
owner: root
content: |
#cloud-config
ssh_authorized_keys: