Do this once
sudo dseditgroup -o create brew
Create a brew group
Do this once
sudo dseditgroup -o create brew
Create a brew groupFROM i386/alpine:3.10.2 | |
# Wine 32Bit for running EXE | |
RUN apk add --no-cache wine=3.0.4-r1 freetype=2.10.0-r0 | |
# Configure Wine | |
RUN winecfg | |
# Install wget | |
RUN apk add --no-cache wget=1.20.3-r0 |
function jwt-decode() { | |
sed 's/\./\n/g' <<< $(cut -d. -f1,2 <<< $1) | base64 --decode | jq | |
} | |
JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ | |
jwt-decode $JWT |
alias kc='kubectl' | |
alias kclf='kubectl logs --tail=200 -f' | |
alias kcgs='kubectl get service -o wide' | |
alias kcgd='kubectl get deployment -o wide' | |
alias kcgp='kubectl get pod -o wide' | |
alias kcgn='kubectl get node -o wide' | |
alias kcdp='kubectl describe pod' | |
alias kcds='kubectl describe service' | |
alias kcdd='kubectl describe deployment' | |
alias kcdf='kubectl delete -f' |
Get container last termination message: | |
kubectl get pod gotest-app-morty-5d6f6667c4-8bffb -o go-template="{{range .status.containerStatuses}}{{.lastState.terminated.message}}{{end}}" | |
Get events sorted by date: | |
kubectl get event --sort-by .lastTimestamp | |
Get events sorted, filtered by deployment name: | |
kubectl get event --sort-by .lastTimestamp --field-selector involvedObject.name=go-static-files-rick | |
Get logs filtered by label (suitable for deployments): |
xattr -d com.apple.quarantine "path to app.app" |
Get git commit history for period: | |
git log --oneline --no-merges --after="2019-C10-01" --until="2019-10-31" --author="Anton Efimenko" --format="%s" | |
Unique commit messages: | |
git log --oneline --no-merges --after="2019-C10-01" --until="2019-10-31" --author="Anton Efimenko" --format="%s" | uniq | |
commits count by author: | |
git shortlog -s -n --all --no-merges |
killall -HUP WindowServer |
import UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
let window = UIWindow(frame: UIScreen.main.bounds) |
TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main