Skip to content

Instantly share code, notes, and snippets.

View baetheus's full-sized avatar

Brandon Blaylock baetheus

View GitHub Profile
@baetheus
baetheus / ..README.md
Last active August 29, 2015 14:10
Brandon's Simple Env Setup
@baetheus
baetheus / .README.md
Last active August 29, 2015 14:15
Headphones on SmartOS

Headphones on SmartOS

Introduction

Documentation on installing and setting up Headphones on a SmartOS base64 14.3.0 zone. These instructions assume a fresh zone creation of image 62f148f8-6e84-11e4-82c5-efca60348b9f.

Prerequisites

Make sure to copy the following line by line and confirm that each runs successfully. All of the following are run from the root shell.

pkgin -fy up

pkgin -y fug

@baetheus
baetheus / .README.md
Last active November 14, 2015 21:09
Running Sickbeard in a SmartOS Zone

Sickbeard on SmartOS

Introduction

Documentation on installing and setting up SickBeard on a SmartOS base64 14.3.0 zone. These instructions assume a fresh zone creation of image 62f148f8-6e84-11e4-82c5-efca60348b9f.

Prerequisites

Make sure to copy the following line by line and confirm that each runs successfully. All of the following are run from the root shell.

pkgin -fy up

pkgin -y fug

@baetheus
baetheus / baetheus.c
Last active July 26, 2016 19:55
Planck Keymap 1
// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
// this is the style you want to emulate.
#include "planck.h"
#include "action_layer.h"
#include "audio.h"
#include "eeconfig.h"
extern keymap_config_t keymap_config;
@baetheus
baetheus / .README.md
Last active November 26, 2016 13:43
Running Couchpotato in a SmartOS Zone

Couchpotato on SmartOS

Introduction

Documentation on installing and setting up Couchpotato on a SmartOS base64 14.3.0 zone. These instructions assume a fresh zone creation of image 62f148f8-6e84-11e4-82c5-efca60348b9f.

Prerequisites

Make sure to copy the following line by line and confirm that each runs successfully. All of the following are run from the root shell.

pkgin -fy up

pkgin -y fug

@baetheus
baetheus / tsconfig.json
Created July 29, 2017 21:35
tsconfig.json
{
"compilerOptions": {
"target": "ES2015",
"module": "commonjs",
"declaration": true,
"sourceMap": true,
"outDir": "./dist/",
"rootDir": "./src/",
"removeComments": true,
"strict": true,
/// <reference path="../node_modules/@types/node/index.d.ts" />
'use strict'
import { newStream, tap, runEffects } from '@most/core';
import { newDefaultScheduler } from '@most/scheduler';
import { Sink, Scheduler } from 'most';
import { IncomingMessage, ServerResponse, createServer } from 'http';
interface Ctx {
@baetheus
baetheus / remove-java.sh
Created August 10, 2017 17:23
Remove Java
sudo rm -rf /Library/Java/*
sudo rm -rf /Library/PreferencePanes/Java*
sudo rm -rf /Library/Internet\ Plug-Ins/Java*
@baetheus
baetheus / scan-lodash.js
Last active August 23, 2017 04:42
Scan and lodash
/*
This will turn your arrays into a keyed object like:
{
1: <Obj 1>,
2: <Obj 2>,
3: <Obj 3>
}
Newest values will over-write old values.
*/
const keyedSource = source.scan((acc, arr) => _.assign(acc, _.keyby(arr, 'id'));
@baetheus
baetheus / example.ts
Last active October 26, 2017 23:17
fromStream POC
/// <reference path="../node_modules/@types/node/index.d.ts" />
'use strict';
import { fromStream } from './index';
import { createReadStream } from 'fs';
import 'rxjs/add/operator/reduce';
const stream = createReadStream('./example.ts', {encoding: 'utf-8'});
const obs = fromStream(stream, ['data'], ['error'], ['end', 'close']);