Skip to content

Instantly share code, notes, and snippets.

View Terminator637's full-sized avatar
🎯
Focusing

Denis Terminator637

🎯
Focusing
  • Space307
  • St. Petersburg
  • 11:29 (UTC +03:00)
View GitHub Profile
@prateek
prateek / reporter.go
Created May 6, 2018 03:32
gomock.Reporter
// Package test contains utility methods for testing.
package test
import (
"fmt"
"testing"
"github.com/golang/mock/gomock"
)
@hongkongkiwi
hongkongkiwi / generate-ssh-key
Last active September 20, 2024 16:01
Simple one liner to generate an SSH key without a password in the default place with the comment as hostname then print out the public key for copy and paste.
HOSTNAME=`hostname` ssh-keygen -t rsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub
@bradrydzewski
bradrydzewski / generate_docker_cert.sh
Last active May 27, 2024 15:59
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \