Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Cormier dcormier

View GitHub Profile
@dcormier
dcormier / rusting.md
Last active Aug 23, 2020
On Rusting
View rusting.md

On Rusting

Notes from golang dev learning to use Rust.

Beginning

I started by watching this (protip: 1.25x speed is about normal), and following along in vscode (my usual IDE, lately).

Visual Studio Code

@dcormier
dcormier / vpn.md
Created Apr 29, 2019 — forked from joepie91/vpn.md
Don't use VPN services.
View vpn.md

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

(A Russian translation of this article can be found here, contributed by Timur Demin.)

Why not?

@dcormier
dcormier / deepequal.go
Last active Feb 2, 2020
Golang reflect.DeepEqual() example; does it do what you mean?
View deepequal.go
// Runable: https://play.golang.org/p/-bkg2k6ymCR
//
package main
import (
"fmt"
"reflect"
"time"
)
@dcormier
dcormier / msg_test.go
Last active Nov 20, 2018
golang: parsing emails with mime, mime/multipart and net/mail packages
View msg_test.go
pacakge msgtest
import (
"io"
"mime"
"mime/multipart"
"net/mail"
"net/textproto"
"os"
"path/filepath"
@dcormier
dcormier / docker-cleanup-resources-windows.md
Last active May 2, 2019
docker cleanup guide (for PowerShell on Windows): containers, images, volumes, networks
View docker-cleanup-resources-windows.md

Docker - How to cleanup (unused) resources in PowerShell on Windows

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

Based on this gist.

delete volumes

TODO

// see: https://github.com/chadoe/docker-cleanup-volumes