Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
#!/bin/sh | |
ProgName=$(basename $0) | |
sub_help(){ | |
echo "Usage: $ProgName <subcommand> [options]\n" | |
echo "Subcommands:" | |
echo " bar Do bar" | |
echo " baz Run baz" | |
echo "" |
/* | |
Serve is a very simple static file server in go | |
Usage: | |
-p="8100": port to serve on | |
-d=".": the directory of static files to host | |
Navigating to http://localhost:8100 will display the index.html or directory | |
listing file. | |
*/ | |
package main |
Install Package Control for easy package management.
Ctrl+`
echo "$STRING" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z |
diff --git a/src/errors/errors.go b/src/errors/errors.go | |
index b8a4692..ba1e239 100644 | |
--- a/src/errors/errors.go | |
+++ b/src/errors/errors.go | |
@@ -10,6 +10,10 @@ func New(text string) error { | |
return &errorString{text} | |
} | |
+type Error string | |
+ |
#NoEnv | |
#SingleInstance force | |
SendMode Input | |
DetectHiddenWindows, on | |
SetWinDelay, 0 | |
#`:: | |
terminal := WinExist("ahk_exe WindowsTerminal.exe") | |
if (terminal) | |
{ |
#!/usr/bin/env bash | |
god(){ | |
mkdir -p /tmp/god | |
(cd /tmp/god && go mod init god &> /dev/null) | |
for repo in $@; do | |
(cd /tmp/god && GOPROXY=${GOPROXY:-https://goproxy.cn,direct} go get $repo) | |
done | |
} | |
god $@ |
Also works across git branches if you keep the intermediate build images around, e.g. those <none>
images in the docker images
output.
FROM golang:1.12 AS builder
# enable Go modules support
ENV GO111MODULE=on
WORKDIR $GOPATH/src/github.com/myrepo/myapp