Skip to content

Instantly share code, notes, and snippets.

View dpsmith's full-sized avatar

Daniel P. Smith dpsmith

  • Apertus Solutions, LLC
View GitHub Profile
conn, err := grpc.Dial(
s.rpcSocketPath,
grpc.WithInsecure(),
grpc.WithDialer(func(addr string, timeout time.Duration) (net.Conn, error) {
return net.DialTimeout("unix", addr, timeout)
}))
if err != nil {
log.Fatalf("did not connect: %v", err)
}
defer conn.Close()
#!/bin/bash
# This script has only been tested on Fedora 29 &>
if [[ $EUID -ne 0 ]]; then
echo -e "Please run as the root user"
exit 1
fi
read -p "Name for vtpm vm: " vm_name
@ruanbekker
ruanbekker / 0_drone_minio_gitea_local.md
Last active November 29, 2023 23:06
Drone, Minio, Gitea, Sqlite on Docker Compose
  • docker-compose.yml
version: '3.6'

services:
  minio:
    image: minio/minio:RELEASE.2020-01-03T19-12-21Z
    container_name: minio
    volumes: