Skip to content

Instantly share code, notes, and snippets.

View cstockton's full-sized avatar

Chris Stockton cstockton

View GitHub Profile

Given a block with a static_select as declared below:

{
  "type": "section",
  "text": { ... },
  "accessory": {
    "type": "static_select",
    "placeholder": { "type": "plain_text", "text": "Group1 - Foo" },
 "option_groups": [
package er
import (
"fmt"
"io"
"runtime"
"unicode/utf8"
"github.com/cstockton/er/internal/errutil"
"github.com/cstockton/er/internal/strutil"
@cstockton
cstockton / limitgroup.go
Last active November 30, 2018 12:27
Another example of sync.cond.
package xsync
import (
"fmt"
"sync"
"time"
)
type LimitGroup struct {
wg sync.WaitGroup
@cstockton
cstockton / pyenv.sh
Created July 25, 2018 14:49
pyenv setup
# Lang - Python (pyenv)
#
# $ git clone -C /ws/lang https://github.com/pyenv/pyenv
# $ # uncomment deb-src sources for python /etc/apt/sources.list
# $ apt-get update && apt-get build-dep python{2.7,3,3.7}
# $ pyenv install 2.7.15
# $ pyenv install 3.7.0
# $ pyenv versions
# > * system (set by /ws/lang/pyenv/version)
package deletetest
import (
"bytes"
"context"
"io"
"net"
"testing"
"time"
package deletetest
import (
"context"
"encoding/json"
"io"
"net"
"testing"
"time"
package deletetest
import (
"context"
"encoding/json"
"io"
"testing"
"time"
gobgpapi "github.com/osrg/gobgp/api"
package cond
import (
"context"
"strconv"
"sync"
"sync/atomic"
"testing"
)
.../github.com/pltr$ mkdir $GOPATH/src/github.com/pltr
.../github.com/pltr$ cd $GOPATH/src/github.com/pltr
.../github.com/pltr$ git clone git@github.com:pltr/onering.git
Cloning into 'onering'...
remote: Counting objects: 251, done.
remote: Compressing objects: 100% (155/155), done.
remote: Total 251 (delta 158), reused 186 (delta 94), pack-reused 0
Receiving objects: 100% (251/251), 40.88 KiB | 0 bytes/s, done.
Resolving deltas: 100% (158/158), done.
@cstockton
cstockton / steps.md
Last active March 5, 2018 19:27
*ubuntu install steps macbook pro 2016

Install the iso

  • press and hold alt right after powering on
  • select EFI BOOT
  • select try ubuntu gnome
  • control + e
  • delete quiet and splash, nomodeset intremap=nosid
  • hit f10 to boot into live cd

luks