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
#!/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 |
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
#!/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 |
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
#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: |
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
#!/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 |
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
'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') |
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
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' |
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
package main | |
import ( | |
"fmt" | |
nats "github.com/nats-io/nats" | |
) | |
func main(){ |
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
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"}`) | |
}) |
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
// 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 |
OlderNewer