Skip to content

Instantly share code, notes, and snippets.

Damon Oehlman DamonOehlman

View GitHub Profile
@DamonOehlman
DamonOehlman / GAMES.md
Last active Apr 24, 2020
A list of games that I've enjoyed and would recommend. Some of them are more additive than others (I'll try and include emoji warnings).
View GAMES.md

Emoji guide:

  • 👯 Supports co-op gameplay (my preference over PvP)
  • 😵 Can get a bit addictive...
  • 💵 Game has a payments system and they try and get money from you other than through the purchase price
  • ⚙️ Can require a bit of a grind to be rewarding
  • 🎫 Available on MS Xbox Game pass which I think is reasonable value...
  • 💺 Best enjoyed in a couch co-op scenario

Shooters

@DamonOehlman
DamonOehlman / docker.md
Last active Jun 18, 2020
Awesome one liners (not to be used in bars)
View docker.md

Run the interactive command prompt on a particular container:

docker exec -it $(docker ps --filter "name=mysql*" --format "{{.ID}}") /bin/bash

Remove ALL registered containers:

docker container ls -a --format="{{.ID}}" | xargs docker container rm
@DamonOehlman
DamonOehlman / README.md
Last active Jul 20, 2016
Helpful commands for doing things with ImageMagick, FFmpeg, etc
View README.md

Convert a series of images into an MPEG file:

$ MAGICK_THREAD_LIMIT=2 MAGICK_MEMORY_LIMIT=2G convert -delay 5 -quality 100 *.JPG out.mpeg
@DamonOehlman
DamonOehlman / README.md
Last active May 27, 2020
How to prepare for going offline
View README.md

The following is an "oh noes, where's my Internet" guide to surviving as a coder with no or limited Internet. Primarily the guide is focused on those who will be doing JS development (and using npm as a package manager) but some of the advice is useful for other environments also.

Step 1. Clone all things

Tooling in this steps require that you have git installed, and use github for your repositories.

One thing I really like to do when I get a bit of time offline, is clean up an old repository that I once thought was useful. I rarely know about what project this might be in advance. As a result, I like to clone all the things from my personal github account.

To do this I recommend using multirepo, which is best installed (at the moment) like so:

@DamonOehlman
DamonOehlman / README.md
Last active Sep 28, 2015
Debugging Browser Graphical Performance (NOTES TO SELF)
View README.md
View 51-firefox-os.rules
# 51-firefox-os.rules
ACTION!="add", GOTO="ffos_end"
SUBSYSTEM=="usb_device", GOTO="ffos_start"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="ffos_start"
GOTO="ffos_end"
LABEL="ffos_start"
# ZTE Open C
@DamonOehlman
DamonOehlman / talks.md
Created May 19, 2015
Talks I'd be happy to give, i.e. feel passionate about, and know mostly enough
View talks.md

Death to Isomorphic JS

When exactly did we decide that we should substitute the term "code reuse" with isomorphism? I didn't get the memo...

All the Streams

So you've heard about streams huh? Yeah, the kind that makes producing, transforming and consuming data more portable. That's great. Did you know there are a few different kinds of streams, and it's not a one type will solve all your problems? No? Ah, well let me explain...

Don't control, react

@DamonOehlman
DamonOehlman / README.md
Created Apr 12, 2015
Useful Links for Performance Optimizing Node Code
View README.md
View index.js
var COLORLIST = ['red', 'blue', 'yellow', 'green', 'pink'];
var h = require('hyperscript');
function toggler(value) {
return function(evt) {
var currentColor = evt.target.innerText;
var currentIdx = COLORLIST.indexOf(currentColor);
console.log(currentIdx + ' ^ ' + value + ' = ' + (currentIdx ^ value));
evt.target.innerText = COLORLIST[currentIdx ^ value];
You can’t perform that action at this time.