Skip to content

Instantly share code, notes, and snippets.

View coffeegoddd's full-sized avatar

Dustin Brown coffeegoddd

  • DoltHub
  • Los Angeles, CA
View GitHub Profile
@coffeegoddd
coffeegoddd / ubuntu_bootstrap.sh
Created September 9, 2022 18:20
Install DoltLab dependencies on ubuntu 22.04
#!/bin/bash
set -e
set -o pipefail
version=""
if [ "$#" -ne 1 ]; then
echo ""
echo ""
echo "Usage: ./ubuntu-bootstrap.sh <DoltLab version>"
@coffeegoddd
coffeegoddd / main.go
Last active August 11, 2022 17:22
DoltLab `smtp_connection_helper`
package main
import (
"crypto/tls"
"errors"
"flag"
"fmt"
"github.com/emersion/go-sasl"
"github.com/emersion/go-smtp"
"io"
@coffeegoddd
coffeegoddd / main.go
Last active May 2, 2022 18:00
DoltLab `send_doltlab_deployed_event`
package main
import (
"context"
"crypto/tls"
"flag"
"fmt"
"github.com/denisbrodbeck/machineid"
eventsapi "github.com/dolthub/dolt/go/gen/proto/dolt/services/eventsapi/v1alpha1"
"github.com/dolthub/dolt/go/libraries/doltcore/env"
@coffeegoddd
coffeegoddd / main.go
Last active April 29, 2022 02:59
DoltLab `gentokenenckey`
package main
import (
crand "crypto/rand"
"encoding/base32"
"fmt"
"io"
)
func main() {
@coffeegoddd
coffeegoddd / centos-bootstrap.sh
Last active February 14, 2023 23:36
Easily install DoltLab's dependencies on CentOS 7
#!/bin/bash
set -e
set -o pipefail
with_sudo=""
version=""
if [ "$#" -eq 2 ]; then
if [ "$1" == "with-sudo" ]; then
@coffeegoddd
coffeegoddd / bootstrap.sh
Last active February 14, 2023 23:36
Easily install DoltLab dependencies on Ubuntu 18.04/20.04
#!/bin/bash
set -e
set -o pipefail
with_sudo=""
version=""
if [ "$#" -eq 2 ]; then
if [ "$1" == "with-sudo" ]; then