Skip to content

Instantly share code, notes, and snippets.

View jaredallard's full-sized avatar
:shipit:

Jared Allard jaredallard

:shipit:
View GitHub Profile
@jaredallard
jaredallard / README.md
Created December 18, 2015 20:25
Calculate a penny triangle using node.js!

pen.js

How to use:

node pen.js width height pennies_per_stack pennies_removed_per_row
@jaredallard
jaredallard / README.md
Last active December 18, 2015 23:07
Find the inverse of a penny pyramid from pen.js (total => stack)

unpen.js

Usage:

node index.js total

Notes

@jaredallard
jaredallard / dankit.js
Last active February 3, 2016 06:36
Dank up Discord
// ==UserScript==
// @name Discord Dank-ified.
// @namespace https://discordapp.com/
// @version 1.3
// @description Make it dank memes
// @require http://code.jquery.com/jquery-latest.js
// @author Jared Allard <[email protected]>
// @match https://discordapp.com/channels/*
// @downloadURL https://gist.githack.com/jaredallard/06acc12e7a3d2f862ab7/raw/dankit.js
// @updateURL https://gist.githack.com/jaredallard/06acc12e7a3d2f862ab7/raw/dankit.js
@jaredallard
jaredallard / openpgp.txt
Created February 8, 2016 19:25
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:330cb625f1aef09e1de9a1bcfd942313d5b4ac9b]
@jaredallard
jaredallard / install-ee2.sh
Last active May 3, 2016 23:15
EEII on Linux!
#!/usr/bin/env bash
# A minimal untested script to install
# Empire Earth II on Linux (note: it's just the wine ENV)
export WINEARCH=win32
export WINEPREFIX=~/.wineEEII
echo "installing wine and other libraries"
sudo pacman -S wine winetricks wine_gecko wine-mono lib32-mpg123 lib32-gstreamer lib32-gst-plugins-good lib32-gst-plugins-base
echo "using $(wine --version)"
@jaredallard
jaredallard / express.js
Last active May 18, 2016 23:26
Dynamically Create Express Routes.
'use strict';
const express = require('express');
const async = require('async');
let ROUTES = path.join(__dirname, 'routes', API_VERSION);
fs.readdir(ROUTES, (err, list) => {
if(err) return next();
async.each(list, function(route, next) {
@jaredallard
jaredallard / route.js
Created May 18, 2016 23:25
Route for Dynamic Express constructor thing.
/**
* /users route.
*
* @author Jared Allard <[email protected]>
* @version 1.0.0.
* @license MIT
**/
'use strict';
/**
* A* (A-Star) Pathfinding Algorithm in JavaScript
* @author Matthew Trost
* @license Creative Commons Attribution-ShareAlike 3.0 Unported License
* @datepublished December 2010
*/
function astar (map, heuristic, cutCorners) {
var listOpen = [];
var listClosed = [];
@jaredallard
jaredallard / server-63649929600.txt
Created December 27, 2017 02:41
Server Log From Emby
2017-12-27 00:00:00.017 Info App: Application version: 3.2.60.0
2017-12-27 00:00:00.017 Info App: Emby
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -updatepackage emby-server-deb_{version}_amd64.deb
Operating system: Unix 4.13.0.21
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 2
Program data path: /var/lib/emby
Application directory: /opt/emby-server/system
@jaredallard
jaredallard / <id>.log
Created December 27, 2017 03:04
android log (emby)
Tue Dec 26 18:59:21 PST 2017 AndroidSyncFileRepository started. syncPath: /storage/emulated/0/Android/data/com.mb.android/files/sync
Tue Dec 26 18:59:21 PST 2017 Calling MediaSyncAdapter.updateSyncPreferences. syncPath: null
Tue Dec 26 18:59:22 PST 2017 Received instruction to updateCredentials
Tue Dec 26 18:59:22 PST 2017 AppVersion: 2.9.76
Tue Dec 26 18:59:22 PST 2017 DeviceId: 56d536f9f0e32877
Tue Dec 26 18:59:22 PST 2017 DeviceName: ONEPLUS A3000
Tue Dec 26 18:59:22 PST 2017 initStore called
Tue Dec 26 18:59:22 PST 2017 IAB helper created.
Tue Dec 26 18:59:22 PST 2017 Starting in-app billing setup.
Tue Dec 26 18:59:22 PST 2017 Billing service connected.