View migrate.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in $(ls .); do | |
for ll in $(otool -L $file | grep -oE "/usr/local/[^ ]*"); do | |
echo "copying $ll to ." | |
sudo cp $ll . | |
#echo "" | |
done | |
done | |
for file in $(ls .); do | |
for ll in $(otool -L $file | grep -oE "/usr/local/[^ ]*"); do |
View cli.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# launch cli and connect to scheduler | |
docker run \ | |
--network host \ | |
--rm -it \ | |
-v /Users/timvw:/Users/timvw \ | |
apache/arrow-ballista-cli:0.10.0 --host 127.0.0.1 --port 50050 | |
create external table test stored as parquet location '/Users/timvw/Desktop/test.parquet'; | |
select * from test limit 10; |
View script.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```bash | |
cat LSQL-messages-2022-11-23-06-44-47.json | jq -r '.[].value | [.day, .count] | @tsv' | |
``` |
View port-user.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -nP -i4TCP:$1 |
View Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "rust-playground" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
aws-config = "0.11.0" | |
aws-sdk-s3 = "0.11.0" |
View deployment-controller-token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl -n kube-system get secret -o json | \ | |
jq -r '.items[] | select(.metadata.name | startswith("deployment-controller-token")) | .data.token' | \ | |
base64 --decode | \ | |
pbcopy |
View ratelimited-cats.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package be.icteam.sample | |
import cats.effect._ | |
import cats.implicits._ | |
import cats.effect.concurrent.Semaphore | |
import java.util.concurrent.Executors | |
import scala.concurrent.ExecutionContext | |
View master2main.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m master main && \ | |
git fetch origin && \ | |
git branch -u origin/main main && \ | |
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main |
View terraform.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Terraform" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
terraform: |
View partitions.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
partitions_between() { | |
local from=$1 | |
local to=$2 | |
local offset_in_seconds=$3 | |
local fmt=$4 | |
current=$from |
NewerOlder