Skip to content

Instantly share code, notes, and snippets.

View bushidocodes's full-sized avatar

Sean McBride bushidocodes

View GitHub Profile
@bushidocodes
bushidocodes / capitalgoconf2017.md
Last active April 26, 2017 23:24
Notes from Capital Go Conf

Evolution of Go Loggers

  • Summer 2014 - inconshreveable/log15
  • Fall 2014 - go-stack/stack
  • Spring 2015 - go-kit/kit/log
  • Summer 2015 - go-logfmt/logfmt

json

@bushidocodes
bushidocodes / s390x-RHEL7-Steps.md
Last active January 8, 2017 23:27
s390x RHEL7 Steps
@bushidocodes
bushidocodes / projectIdeas.md
Last active December 22, 2016 20:55
Project Ideas

Dev/Ops Tools Ideas

  • Tool that scans browser and Node.js JavaScript and generates UML diagrams
  • http://www.objectplayground.com/
  • Tool that tracks package.json and visualizes the support / LTS lifecycle for Node and other packages
  • Enterprise Configuration Management Tool for Node.js
  • These could be a web app or a browser plugin

Mainframe Ideas

  • ChatOps for Mainframe
  • Browser-based 3270 terminal emulator
@bushidocodes
bushidocodes / sequelize-example.md
Last active November 21, 2016 04:30
Sequelize Example
var Sequelize = require('sequelize');
var connection = new Sequelize('dbname', 'userid', 'pw', {
  host: 'localhost',
  dialect: 'sqlite'
});

var Pokemon = connection.define('pokemon', {
@bushidocodes
bushidocodes / Installing Postgres on WSL.md
Last active May 10, 2021 08:43
Installing Postgres on WSL.md

When I went through Eliot's excellent tutorial, I decided to try to push forward with the latest-and-greatest version of Postgres to troubleshoot the directions with the newer version (the 64-bit Version 9.6.1.1 x64 Windows installer).

But first I had cleanup to do. I had mistakenly assumed that I was running postgresql under WSL and installed some packages. I removed them to make sure I didn't end up with collisions over Linux and Windows binaries sharing the same name in $PATH.

➜  ~ sudo apt-get remove postgresql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:

Base Windows 10

  1. Installed NVM for Windows as my base WNT Node.js runtime
  2. Installed Node.js 7.3.0 64-bit
  3. Installed npm-windows-upgrade globally
  4. Updated npm to 4.1.1

Microsoft Suggestions for Node.js: https://github.com/Microsoft/nodejs-guidelines

Image Encoding

  • Triads of 8-bit unsigned ints for RGB values
  • 8 bits is ~ 256 possible brightnesses per channels
  • 24-bit bitmaps allow for significantly more levels of brightness

Audio Encoding

  • Raw Pulse-Code Modulation
  • Normal digital audio uses 44,100 samples per second, where each sample has an amplitued of 16-bit

Some Abstract Data Types

Set - List, Linked Tree, Trie, Hash Table List Stack Queue Map (Associative Array / Dictionary / etc.) Graph Tree