I hereby claim:
- I am chrisgoffinet on github.
- I am chrisgoffinet (https://keybase.io/chrisgoffinet) on keybase.
- I have a public key ASD0FhRalKeV3jRqPYgKJ9D97L1hRo7uSE-g_enheeR3TQo
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { | |
var count = 100 |
package main | |
import ( | |
"context" | |
"fmt" | |
"time" | |
"golang.org/x/time/rate" | |
) |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"time" | |
) | |
func main() { |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
set -euo pipefail | |
CMD="$1" | |
login() | |
{ | |
if [ -z "${DOCKER_USER:-}" ] || [ -z "${DOCKER_PASS:-}" ]; then | |
echo "Please set DOCKER_USER and DOCKER_PASS environment variables." |
// example of counting semaphore to control fixed no. of goroutines | |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { |
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"os" | |
"time" | |
"github.com/aws/aws-sdk-go-v2/aws" |
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net" | |
"net/http" | |
"time" | |
) |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
export EDITOR="code --wait" | |
function parse_git_branch { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} |
fcc() { | |
DB=~/Library/Containers/org.p0deje.Maccy/Data/Library/Application\ Support/Maccy/Storage.sqlite | |
SQL="select distinct ZVALUE | |
from ZHISTORYITEMCONTENT | |
where ZTYPE IN ('public.text','public.utf8-plain-text') | |
order by Z_PK desc" | |
if ! [ -r "$DB" ]; then | |
MSG='Maccy database not found. "brew cask install maccy" to install Maccy.' | |
echo "$MSG" |