Skip to content

Instantly share code, notes, and snippets.

View qrpike's full-sized avatar

Quinton Pike qrpike

View GitHub Profile
#!/bin/bash
# To install this, copy paste this into a fresh Fedora MINIMUM installation:
# https://gist.githubusercontent.com/qrpike/61df64f6bde72ba08cbf/raw/d251b4be2e6dc49f32924155d4cbe22885122083/install%20NWM%20on%20Fedora%2020%20min
#
#
# Install required X11 packages:
yum install -y xorg-x11-xinit xorg-x11-server-Xorg xorg-x11-drv-* xorg-x11-xinit xorg-x11-server-common
# Install required libs:
yum install -y xterm gtk2.x86_64 GConf2.x86_64 git wget alsa-lib.x86_64
@qrpike
qrpike / install-nave.sh
Last active December 30, 2015 07:18
Install Nave.sh and other essential CentOS 6.x libraries.
#!/bin/bash
yum install -y wget
cd
mkdir ~/.nave
cd ~/.nave
wget https://raw.github.com/isaacs/nave/master/nave.sh
chmod +x nave.sh
ln -s $PWD/nave.sh /usr/local/bin/nave
nave usemain stable
@qrpike
qrpike / install-coreos-pxe.sh
Last active January 14, 2016 09:12
Install CoreOS pxe boot server on Ubuntu14.04
#!/bin/bash
# Also look at: http://askubuntu.com/questions/581772/how-to-install-and-configure-a-tftp-server-on-14-04
HOSTIP=192.168.30.31
sudo apt-get install xinetd tftpd tftp nginx -y
# may need to edit /etc/inetd.conf - last param /srv/tftpboot/ to /tftpboot/
update-inetd --enable BOOT
#!/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
'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')
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'
package main
import (
"fmt"
nats "github.com/nats-io/nats"
)
func main(){
@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"}`)
})
@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 / 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",