- Install tools
curl -s “https://get.sdkman.io" | bash
sdk install kotlin
sdk install kscript
- Run the script
curl -s “https://get.sdkman.io" | bash
sdk install kotlin
sdk install kscript
| // 2>/dev/null;/usr/bin/env go run $0 $@; exit $? | |
| // Found at https://gist.github.com/posener/73ffd326d88483df6b1cb66e8ed1e0bd | |
| package main | |
| import "fmt" | |
| // You can run the script with one of two ways | |
| // 1. chmod +x test-script.go && ./test-script.go | |
| // 2. go run test-script.go |
| #!/bin/bash | |
| set -e | |
| SOURCE_DIR="the-dir-to-save" | |
| S3_BUCKET="s3://your-s3-bucket/with/path" | |
| TIMENOW="$(date --rfc-3339=seconds | tr ' ' '_' | tr ':' '-' | tr '+' '.')" | |
| FILENAME="$SOURCE_DIR.$TIMENOW.tgz" |
| #!/bin/bash | |
| set -e | |
| INSTALL_DIR="$HOME/local" | |
| # erlang FROM SOURCE - http://erlang.org/doc/installation_guide/INSTALL.html | |
| # You need to have OpenSSL for :crypto, wxWidgets for :wx, etc. | |
| #ERL_VERSION="20.2" | |
| #wget "http://www.erlang.org/download/otp_src_$ERL_VERSION.tar.gz" |
| ; The first line of the input is considered to be the heading! | |
| ; It accepts either one command line argument with the CSV file path | |
| ; or it reads the input from `stdin`. | |
| #lang racket | |
| (require csv-reading) | |
| (define (getInputPort) | |
| (cond | |
| [(> (vector-length (current-command-line-arguments)) 0) |
| #lang racket | |
| (define (qsrt iarr lt) | |
| (cond | |
| [(< 1 (length iarr)) | |
| (let ( | |
| [pivot (first iarr)] | |
| [gt (lambda (l r) (not (or (lt l r) (equal? l r))))]) | |
| (append | |
| (qsrt (filter (lambda (x) (lt x pivot)) iarr) lt) |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os/exec" | |
| ) |