import (
_ "net/http/pprof"
"net/http"
)
// This is a value (de|en)coder for the github.com/google/uuid UUID type. For best experience, register | |
// mongoRegistry to mongo client instance via options, e.g. | |
// clientOptions := options.Client().SetRegistry(mongoRegistry) | |
// | |
// Only BSON binary subtype 0x04 is supported. | |
// | |
// Use as you please | |
package repository | |
import ( |
Instructions to hack up WSL2 on Windows 10 Build 18917 to run k3s (Kubernetes) and rio
https://docs.microsoft.com/en-us/windows/wsl/wsl2-install
I already had Ubuntu-18.04 installed in wsl 1. So I just did wsl --set-version Ubuntu-18.04 2
Using Ubuntu 18.04 (I'm sure any distro will work), inside WSL2 download https://thirdpartysource.microsoft.com/download/Windows%20Subsystem%20for%20Linux%20v2/May%202019/WSLv2-Linux-Kernel-master.zip and extract to a folder. The latest version of the kernel source is available at (https://github.com/microsoft/WSL2-Linux-Kernel)
// ==UserScript== | |
// @name EmuParadise Download Workaround | |
// @version 1.2.3 | |
// @description Replaces the download button link with a working one | |
// @author infval (Eptun) | |
// @match https://www.emuparadise.me/*/*/* | |
// @grant none | |
// ==/UserScript== | |
// https://www.reddit.com/r/Piracy/comments/968sm6/a_script_for_easy_downloading_of_emuparadise_roms/ |
#!/bin/sh | |
STAGED_GO_FILES=$(git diff --cached --name-only | grep ".go$") | |
if [[ "$STAGED_GO_FILES" = "" ]]; then | |
exit 0 | |
fi | |
GOLINT=$GOPATH/bin/golint | |
GOIMPORTS=$GOPATH/bin/goimports |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech
This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ webpack@4.0.0-beta.2
#!/bin/sh | |
# install needed curl package | |
sudo apt install --no-install-recommends curl -y | |
# install kubectl | |
# https://github.com/kubernetes/minikube/issues/3437#issuecomment-449408316, maybe use https://storage.googleapis.com/minikube/releases/v0.30.0/docker-machine-driver-kvm2 | |
curl -Lo /tmp/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ | |
chmod +x /tmp/kubectl && \ | |
sudo mv /tmp/kubectl /usr/local/bin/kubectl | |
# kubectl tab completion | |
sudo sh -c 'echo "source <(kubectl completion bash)" > /etc/bash_completion.d/kubectl' |