Skip to content

Instantly share code, notes, and snippets.

View OstlerDev's full-sized avatar

Sky Young OstlerDev

View GitHub Profile
@OstlerDev
OstlerDev / insight.md
Last active August 2, 2018 23:05
How to Setup Bitcore, Litecore and Flocore

How to install Insight for Bitcoin, Litecoin and Flo

As a pre-requisite to any of the guides, make sure you have Node v8.11.3 or later installed and accessable.

Bitcoin

  1. Make sure you have Node v8.11.3 or later installed and accessable.

  2. Create a directory to store everything in

mkdir bitcore
@OstlerDev
OstlerDev / flocore-setup.md
Last active May 22, 2018 17:59
How to setup Flocore
07:43:14.808 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
07:43:24.808 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
07:43:30.980 ERROR providers: error adding new providers: open /home/ipfs/.ipfs/datastore/403333.ldb: too many open files providers.go:258
07:43:34.809 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
07:43:44.808 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
07:43:54.808 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
07:44:04.809 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
07:44:14.808 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
07:44:24.808 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
07:44:34.808 ERROR mdns: mdns lookup error: failed to bind to any unic
01:56:02.656 ERROR commands/h: err: mime: no media type handler.go:285
01:56:03.659 ERROR commands/h: err: mime: no media type handler.go:285
01:56:04.662 ERROR commands/h: err: mime: no media type handler.go:285
01:56:05.665 ERROR commands/h: err: mime: no media type handler.go:285
01:56:06.670 ERROR commands/h: err: mime: no media type handler.go:285
01:56:07.674 ERROR commands/h: err: mime: no media type handler.go:285
01:56:08.679 ERROR commands/h: err: mime: no media type handler.go:285
01:56:09.684 ERROR commands/h: err: mime: no media type handler.go:285
01:56:10.687 ERROR commands/h: err: mime: no media type handler.go:285
01:56:11.692 ERROR commands/h: err: mime: no media type handler.go:285
@OstlerDev
OstlerDev / backup.sh
Last active August 29, 2015 14:25
Minecraft Auto-backup
#!/bin/bash
# ftp login info
HOST='example.com'
USER="username"
PASSWD="password"
# cd into the world folder in order to get the name of the latest file.
cd /opt/msm/archives/worlds/tulpa/world/
FILE="$(ls -lat | head -3 | tail -1 | awk '{print $9}')"
# set the remote path for the FTP upload
REMOTEPATH='/mc-backup/'
[21:27:26] [Server thread/INFO]: Starting minecraft server version 1.8.7
[21:27:26] [Server thread/INFO]: Loading properties
[21:27:26] [Server thread/INFO]: Default game type: SURVIVAL
[21:27:26] [Server thread/INFO]: Generating keypair
[21:27:26] [Server thread/INFO]: Starting Minecraft server on *:25565
[21:27:26] [Server thread/INFO]: Using epoll channel type
[21:27:26] [Server thread/INFO]: Preparing level "world"
[21:27:26] [Server thread/INFO]: Preparing start region for level 0
[21:27:27] [Server thread/INFO]: Done (0.819s)! For help, type "help" or "?"
[21:30:01] [Server thread/INFO]: Turned off world auto-saving
@OstlerDev
OstlerDev / application.js
Created June 29, 2015 00:10
Netflix Play Next
atv.player.loadRelatedPlayback = function(a, callback){ // I have no idea what "a" is, but the callback sends the preplay XML back.
var o = atv.player.asset.getElementByTagName("myMetadata"),
t = o && o.getElementByTagName("relatedPlaybackURL"),
url = t && t.textContent;
handlePostPlay(url, callback);
}
function handlePostPlay(url, callback) {
// Load the Preplay XML
var req = new XMLHttpRequest();
@OstlerDev
OstlerDev / test.php
Last active August 29, 2015 14:23
Get Strike Parser
<?php
$titles = [
'MyTV.Show.S09E01.HDTV.XviD',
'Game of Thrones S05E04 WEBRip XviD-FUM[ettv]',
'Breaking Bad S01E07 FINAL FRENCH DVDRip XviD-JMT',
'Breaking Bad S01E02 720p x265 HEVC - UTR'];
foreach($titles as $title){
$pattern = "/S(\d+)E(\d+)\.(.+)/";
preg_match($pattern, str_replace(' ', '.', $title), $matches);
@OstlerDev
OstlerDev / Full Log
Last active August 29, 2015 14:21
Apple TV Home Movies
08:36:45 PlexConnect: started: 08:36:45
08:36:45 PlexConnect: Version: 0.5-dev
08:36:45 PlexConnect: Python: 2.7.6 (default, May 10 2015, 04:52:05)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)]
08:36:45 PlexConnect: Host OS: linux2
08:36:45 PlexConnect: PILBackgrounds: Is PIL installed? True
08:36:45 Settings: getsetting enable_plexconnect_autodetect=True
08:36:45 PlexConnect: IP_self: (VPS IP)
08:36:45 Settings: getsetting hosttointercept=trailers.apple.com
08:36:45 ATVSettings: init class CATVSettings
@OstlerDev
OstlerDev / gist:7630815
Created November 24, 2013 18:52
Bypass Boingo Hotspot
Just enter in this URL and it allows you to access all of the web! Pretty nice and now the whole world can access free wifi!
https://www.boingohotspot.net/ClickCapture.aspx?linkID=BoingoSponsorship&promoId=BIP000000000108&promocode=MDWTheGoodStuff&redirectURL=http%3A%2F%2Fwww.google.com%2F