Skip to content

Instantly share code, notes, and snippets.

View DamonOehlman's full-sized avatar

Damon Oehlman DamonOehlman

View GitHub Profile
@DamonOehlman
DamonOehlman / README.md
Last active October 30, 2023 20:03
General WebRTC tips and tricks collated over time
@DamonOehlman
DamonOehlman / README.md
Last active August 1, 2023 05:23
Using nginx to proxy HTTPS to local non HTTPS servers

An nginx configuration that can be added to your /etc/nginx/sites-enabled directory to proxy from the local nginx server through to other servers running on other ports. Primarily this is useful when you want to view a site using HTTPS but don't want to associate the certificate with that local server.

The following proxys work:

http://localhost/ => http://localhost:9966/
https://localhost/ => http://localhost:9966/

https://localhost/<port>/ => http://localhost:<port>/
https://localhost// =&gt; http://localhost:/
@DamonOehlman
DamonOehlman / GAMES.md
Last active June 15, 2023 21:13
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).

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 / AWESOME-ONE-LINERS.md
Last active November 6, 2022 09:34
Awesome one liners (not to be used in bars)

A collection of useful commands for dealing with various systems.

git

List all (local) branches and report date and sort in descending order:

git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
@DamonOehlman
DamonOehlman / README.md
Last active June 12, 2022 19:01
Provisioning of node + nginx designed for use with vagrant shell provisioner. No need for chef, puppet.

This is a simple shell script that is designed to provision both nginx and node on your machine. I primarily wrote it for use with Vagrant and an example Vagrantfile is included in the Gist as well.

@DamonOehlman
DamonOehlman / README.md
Created June 25, 2013 21:50
Ubuntu 13.04 Dell XPS 13 Hacks - Things you occassionally need to do to keep your Ubuntu installation on a Dell XPS happy.

Brightess Fix

When brightness controls stop responding manually trigger a brightness update. Once this is done brightness controls seem to respond again. Not sure if the lspci command is required, when my linux foo is stronger I'm sure I'll know...

lspci -nn | grep VGA
echo 3500 | sudo tee /sys/class/backlight/intel_backlight/brightness
@DamonOehlman
DamonOehlman / README.md
Last active June 12, 2022 18:59
Video Loopback on Ubuntu 13.04
@DamonOehlman
DamonOehlman / README.md
Created October 31, 2013 10:21
Modules in NPM that look interesting with regards to generating CSS with JS (and some other things discovered along the way).

Currently trawling NPM in search of a node module that makes working with CSS and browserified code "feel" better. My first thought was to seek out an existing project (or create one) that took a programmatic approach to CSS generation.

Here's what I've found:

Generators in Code

Shortlist

  • jcss: Some nice features, and worthy of further investigation. Looks active.
@DamonOehlman
DamonOehlman / default.conf
Created April 17, 2014 05:21
Simple nginx configuration for proxying HTTPS traffic to a local port
server {
listen 443;
server_name localhost;
root html;
index index.html index.htm;
ssl on;
ssl_certificate server.crt;
ssl_certificate_key server.key;
@DamonOehlman
DamonOehlman / README.md
Last active June 12, 2022 08:10
Research for building an Message Bus Centric Application using Node

Message Bus App Architecture

This is some research focused around looking for node modules that support the development of an application that makes heavy use of a central message bus for cross component communication. The process for identifying potential components was simply to start by looking for packages that depend node the node-redis module, as at this this stage we see redis being the mechanism for powering the bus.

Potential Components

MQTT Centric