Skip to content

Instantly share code, notes, and snippets.

Avatar

Murray W. Greer C. greermurray

View GitHub Profile
@stvoidit
stvoidit / sender.go
Last active Jun 18, 2020 — forked from douglasmakey/sender.go
Golang - send an email with attachments.
View sender.go
package main
import (
"bytes"
"crypto/tls"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"mime/multipart"
@douglasmakey
douglasmakey / sender.go
Last active Oct 22, 2020
Golang - send an email with attachments.
View sender.go
package main
import (
"bytes"
"encoding/base64"
"fmt"
"io/ioutil"
"mime/multipart"
"net/smtp"
"os"
@jg-l
jg-l / getRecentMedia.go
Last active May 5, 2020
Get Recent Media from Instagram
View getRecentMedia.go
import (
"fmt"
"io/ioutil"
"net/http"
"github.com/tidwall/gjson"
)
type Media struct {
Link, Source string
}
@SchumacherFM
SchumacherFM / db.go
Created Feb 15, 2015
GoLang Database SQL: Selecting an unknown amount of columns from a query. Benchmark results in db_test.go
View db.go
package main
import (
"database/sql"
"fmt"
_ "github.com/go-sql-driver/mysql"
"log"
)
const (
@drmalex07
drmalex07 / README-create-debian-startup-script.md
Last active Oct 19, 2020
An example of how to create a init.d script in Debian, using dependency booting. #debian #init.d #lsb-script #startup-script
View README-create-debian-startup-script.md
You can’t perform that action at this time.