Skip to content

Instantly share code, notes, and snippets.

@mitchellh
mitchellh / archive.md
Last active January 17, 2024 11:17
Archive List

Planned Repo Archive

In the new year, I plan on archiving the repositories below. Because I plan on only archiving the repositories, any project that depends on any of these projects will continue to work. However, I will no longer be accepting issues or pull requests and will never tag a new release.

The reality of each of the projects listed below is that I've almost completely ignored issues and pull requests for

@jolheiser
jolheiser / catppuccin.tape
Created October 28, 2022 14:52
Catppuccin themes for vhs tapes
# Latte
Set Theme { "black": "#5c5f77", "red": "#d20f39", "green": "#40a02b", "yellow": "#df8e1d", "blue": "#1e66f5", "purple": "#ea76cb", "cyan": "#179299", "white": "#acb0be", "brightBlack": "#6c6f85", "brightRed": "#d20f39", "brightGreen": "#40a02b", "brightYellow": "#df8e1d", "brightBlue": "#1e66f5", "brightPurple": "#ea76cb", "brightCyan": "#179299", "brightWhite": "#bcc0cc", "background": "#eff1f5", "foreground": "#4c4f69", "selectionBackground": "#acb0be", "cursorColor": "#dc8a78" }
# Frappe
Set Theme { "black": "#51576d", "red": "#e78284", "green": "#a6d189", "yellow": "#e5c890", "blue": "#8caaee", "purple": "#f4b8e4", "cyan": "#81c8be", "white": "#b5bfe2", "brightBlack": "#626880", "brightRed": "#e78284", "brightGreen": "#a6d189", "brightYellow": "#e5c890", "brightBlue": "#8caaee", "brightPurple": "#f4b8e4", "brightCyan": "#81c8be", "brightWhite": "#a5adce", "background": "#303446", "foreground": "#c6d0f5", "selectionBackground": "#626880", "cursorColor": "#f2d5cf" }
# Macchiato
Set Theme { "black"
@developer-guy
developer-guy / registry.go
Created October 25, 2022 09:02
Programmatically run container registry based on Docker's reference implementation distribution/distribution
package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
"time"
@paulmillr
paulmillr / guide.md
Last active November 4, 2023 15:22
Sign git commits with ssh key

Sign git commits with ssh key

  • git version must be >= 2.34. Earlier versions don't support gpg.format ssh (signing commits with ssh keys).

    If you're printing signature keys in git log by using %GK %GF %GP %GT in git.format.pretty, earlier versions will crash when doing git log with following error:

    BUG: gpg-interface.c:284: bad signature

  • OpenSSH version must be >= 8.8. Earlier versions don't support valid-after,valid-before options.

Linkedin is a great platform to network and meet people.

Unfortunately opinionated discussion tend to take over a lot of engagment and insights take a back seat.

These are the following instructions to make linkedin feed work for you

PS: Use chrome to make sure this works.

  1. Go to https://www.linkedin.com/feed/following/
if(prop("Completed") / prop("Goal") == 0, "░░░░░░░░░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.1), "▓░░░░░░░░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.2), "▓▓░░░░░░░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.3), "▓▓▓░░░░░░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.4), "▓▓▓▓░░░░░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.5), "▓▓▓▓▓░░░░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.6), "▓▓▓▓▓▓░░░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.7), "▓▓▓▓▓▓▓░░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.8), "▓▓▓▓▓▓▓▓░░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.9), "▓▓▓▓▓▓▓▓▓░ ", if(smallerEq(prop("Completed") / prop("Goal"), 0.99), "▓▓▓▓▓▓▓▓▓▓ ", if(prop("Completed") / prop("Goal") == 1, " 🏁", "")))))))))))) + format(round(prop("Completed") / prop("Goal") * 100)) + "%"
@mfridman
mfridman / top-50.md
Last active November 26, 2019 01:45
top 50 project (by stars) using goreleaser
@mfridman
mfridman / five.md
Created November 24, 2019 23:33
top 5 most common .goreleaser files

10666361bf2ddb7070c9ea6756b1e8ce327a9edb

8 found

builds:
  # List of builds
  - # First Build
    env:
    - CGO_ENABLED=0
@enricofoltran
enricofoltran / main.go
Last active March 23, 2024 16:41
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@rushilgupta
rushilgupta / GoConcurrency.md
Last active January 25, 2024 14:59
Concurrency in golang and a mini Load-balancer

INTRO

Concurrency is a domain I have wanted to explore for a long time because the locks and the race conditions have always intimidated me. I recall somebody suggesting concurrency patterns in golang because they said "you share the data and not the variables".

Amused by that, I searched for "concurrency in golang" and bumped into this awesome slide by Rob Pike: https://talks.golang.org/2012/waza.slide#1 which does a great job of explaining channels, concurrency patterns and a mini-architecture of load-balancer (also explains the above one-liner).

Let's dig in:

Goroutines