Skip to content

Instantly share code, notes, and snippets.

View crhntr's full-sized avatar

Christopher Hunter crhntr

View GitHub Profile
@AbbyDeng
AbbyDeng / Abby at GopherCon 2023.md
Last active October 4, 2023 23:52
Abby at GopherCon 2023

a few of us attended GopherCon 2023, i put down some notes that i shared with all the Datadogs

Talks

Googlers gave 5 talks, Redditers gave 2, we Datadog gave 1 (by Jon Bodner) all just great:

  • well structured, clear logic with a storyline, nice designed and delivered
  • some Googlers spent several months on talks, Redditers even had customized mascots
  • i guess they got tons of internal help, support, and resources on public speaking

what impressed me the most is what they covered about:

@philippta
philippta / main.go
Last active August 13, 2020 18:32
Cleaner Go API example with access policies
package main
import (
"encoding/json"
"errors"
"net/http"
"github.com/go-chi/chi"
)
@maxvt
maxvt / infra-secret-management-overview.md
Last active February 28, 2024 20:53
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

@leommoore
leommoore / mongodb_ssl_with_letsencrypt.md
Last active August 16, 2022 17:35
MongoDB 3.2.x SSL with Letsencrypt

MongoDB 3.2.x SSL with Letsencrypt

Letsencrypt is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain. We will look at the what is needed to secure your MongoDB installation. For more details on setting up a MongoDB server see MongoDB 3.2.x.

Set the hostname

We sould to set the hostname to match the name of the certificate we are going to optain.

sudo hostname mongo0.example.com

Then update the hostname file to set the server name permanently.

@julz
julz / main.go
Created November 20, 2015 12:39
containersched minicontainer
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@leommoore
leommoore / node_child_processes.markdown
Last active May 30, 2023 08:22
Node - Child Processes

#Node - Processes To launch an external shell command or executable file you can use the child_process. Apart from command line arguments and environment variables you cannot communicate with the process using child_process.exec. However you can use child_process.spawn to create a more integrated processes.

##Executing Child Processes

###To launch an external shell command

var child_process = require('child_process');
var exec = child_process.exec;
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 23, 2024 18:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname