Skip to content

Instantly share code, notes, and snippets.

@dcormier
dcormier / git.md
Last active November 19, 2021 20:55
Get handy stats from a git repo
  • Show the first commit: git log --reverse --max-count=1
  • Non-merge commits to master: git rev-list --no-merges master --count
  • Number of non-merge commits in master per author: git shortlog -s -n --no-merges master
  • Merges to master: git rev-list --merges --first-parent master --count

If you want to see the commits in question, you can replace --count with something like --pretty=oneline.

@CodyBohn
CodyBohn / Maxis Loading Messages.txt
Last active January 28, 2026 20:01
Compiled list of loading messages from the Sims games
Abolishing Pedestrian Posturing
Abstracting Loading Procedures
Activating Deviance Threshold
Activating Hotel Staff
Activating Story Arc
Adapting Behavioral Model
Adding Hidden Agendas
Adjusting Acceptable Apparel
Adjusting Bell Curves
Adjusting Emotional Weights
@dcormier
dcormier / rusting.md
Last active August 23, 2020 20:47
On Rusting

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 / docker-cleanup-resources-windows.md
Last active November 5, 2021 19:21
docker cleanup guide (for PowerShell on Windows): containers, images, volumes, networks
@doyle
doyle / gist:92b0b34cd4804d237ed9661e20e33e5d
Created October 17, 2016 19:51
Use curl to upload a file to a S3 pre-signed url
curl -X PUT -T test_s3.txt -L "https://your-bucket.s3.amazonaws.com/url-stuff"
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

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

delete volumes

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

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into
@joepie91
joepie91 / vpn.md
Last active February 2, 2026 11:30
Don't use VPN services.

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.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@erikcox
erikcox / SimCityLoadingMessages.txt
Created November 11, 2015 21:23
A list of loading messages from the game SimCity, which I repurposed for Slack loading messages.
Adding Hidden Agendas
Adjusting Bell Curves
Aesthesizing Industrial Areas
Aligning Covariance Matrices
Applying Feng Shui Shaders
Applying Theatre Soda Layer
Asserting Packed Exemplars
Attempting to Lock Back-Buffer
Binding Sapling Root System
Breeding Fauna