Skip to content

Instantly share code, notes, and snippets.

View GGAlanSmithee's full-sized avatar

Alan Smithee GGAlanSmithee

View GitHub Profile
@martinsam16
martinsam16 / docker-wsl2.md
Last active December 15, 2024 20:22
How to install wsl2 ubuntu + docker + docker-compose

Activate wsl2

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Install and Configure Ubuntu

struct Connection {
void disconnected()
{
m_connection = Disconnected();
}
void interrupted()
{
m_connection = std::visit(InterruptedEvent(*this), m_connection);
}
@surganov
surganov / essential-bret-victor.md
Created January 6, 2016 13:02
Essential Bret Victor
@kjs3
kjs3 / server.js
Created December 3, 2015 20:26
Reloading express routes/middleware on file change WITHOUT restarting node process.
if ( process.env.NODE_ENV === 'production' ) {
// dev runs with babel-node so this isn't necessary
require('babel-core/register'); // this includes the polyfill
require('newrelic');
}
import 'source-map-support/register'
import Debug from 'debug'
import express from 'express'
@GGAlanSmithee
GGAlanSmithee / quotes.md
Last active December 14, 2017 14:10
Quotes I like
@DenisIzmaylov
DenisIzmaylov / INSTALLATION.md
Last active November 9, 2024 13:39
DigitalOcean Dokku: fresh install with Node.js Environment

DigitalOcean Dokku / Node.js Cloud Environment

Custom recipe to get full Node.js Cloud Environment in DigitalOcean Dokku droplet running from scratch. Yes. Your own Heroku for $5 per month.

I use this gist to keep track of the important configuration steps required to have a functioning system after fresh install.

When you have executed that's all step by step you will get a new working and stable system which is ready to host & serve your Node.js application and databases.