Skip to content

Instantly share code, notes, and snippets.

View koo04's full-sized avatar

Douglas DeVicariis koo04

View GitHub Profile
@koo04
koo04 / create-wsl-instance.ps1
Last active May 3, 2025 23:03
Create a new WSL instance of any available distro
# example usage: .\create-wsl-instance.ps1 -name mywsl -distro Ubuntu-24.04 -wslPath d:/wsl -userName gamer
param (
[string]$name,
[string]$distro = "Ubuntu-24.04",
[string]$wslPath = "$env:USERPROFILE\wsl",
[string]$userName = "$env:USERNAME",
[switch]$help
)
# check if help is requested
@koo04
koo04 / tmux.conf
Created August 23, 2024 13:49 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@koo04
koo04 / Dockerfile
Last active January 19, 2024 14:08
SSDB Dockerfile
FROM ubuntu:20.04 AS builder
RUN apt-get update && apt-get install -y wget unzip make autoconf g++
WORKDIR /ssdb
RUN wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
RUN unzip master.zip
RUN cd ssdb-master && make
@koo04
koo04 / HumanReadableValidation.go
Last active March 21, 2023 17:23
A more human readable translator for go-playground/validator
package main
import (
"fmt"
"github.com/go-playground/validator/v10"
)
type Test struct {
Name string `validate:"required,gte=10"`
@koo04
koo04 / sc-patch-procedures.md
Last active December 13, 2023 15:52
Star Citizen Pre/Post patch procedures

Pre and Post Patch Process

This is to walk a player through pre and post patch update procedures as to help midigate any annoyances that might occur.

Pre

  1. Open Star Citizen
  2. Open Options
  3. Change to the Keybindings Tab
  4. Click "Advanced Control Customization" at the bottom of the screen
  5. Open "Control Profiles"
  6. Select "Save Control Settings"
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#0077c2",
"foreground": "#ffffff",
"leading_diamond": "\u256d\u2500\ue0b6",
@koo04
koo04 / PingdomPauseDomain.js
Last active September 25, 2019 14:46
Pingdom API - JS - Pause Domain
const https = require('https')
const body = JSON.stringify({
paused: true,
checkids: "{Check ID}"
})
const options = {
hostname: 'api.pingdom.com',
method: 'PUT',
@koo04
koo04 / slack-darkmode.css
Created January 28, 2019 21:51
Darkmode for Slack
body {
background: #222;
color: #e6e6e6;
}
a {
color: #949494;
}
a:link,
a:visited {
color: #949494;
@koo04
koo04 / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console