Skip to content

Instantly share code, notes, and snippets.

@jim3ma
jim3ma / starttls_smtp_example.go
Last active Dec 28, 2022 — forked from chrisgillis/ssl_smtp_example.go
Golang StartTLS SMTP Example
View starttls_smtp_example.go
package main
import (
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"crypto/tls"
)
View ssl_smtp_example.go
package main
import (
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"crypto/tls"
)
@mloberg
mloberg / gist:3750653
Created Sep 19, 2012
Find file in git based on md5 checksum.
View gist:3750653
#!/bin/sh
CHECKSUM=$1
FILE=$2
if [[ -z "$CHECKSUM" ]]; then
echo "Usage: $0 md5 file"
exit 1
elif [[ -z "$FILE" ]]; then
echo "Usage: $0 md5 file"