I hereby claim:
- I am l1x on github.
- I am l1x (https://keybase.io/l1x) on keybase.
- I have a public key ASCW3LuhleISdHbcI77ZHqThTbH0BUfhK58fm9eBuf9zxwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
python -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))' | |
# on windows(PS): | |
# Get-Content example.json | python -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))' > example.yaml | |
# on Unix clones | |
# python -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j)) < example.json > example.yaml |
export PROFILE=foxi-maxi | |
export REGION=eu-west-1 | |
aws --region $REGION --profile $PROFILE athena list-query-executions --max-items 10 \ | |
| jq '.QueryExecutionIds[]' \ | |
| xargs -I {} aws --region $REGION --profile $PROFILE athena get-query-execution --query-execution-id {} \ | |
| jq '.QueryExecution.Statistics' |
import os | |
import pyarrow.parquet as pq | |
# | |
# Warning!!! | |
# Suffers from the same problem as the parquet-tools merge function | |
# | |
#parquet-tools merge: | |
#Merges multiple Parquet files into one. The command doesn't merge row groups, | |
#just places one after the other. When used to merge many small files, the |
# nope | |
for folder in "state/" "logs/": | |
print(folder) | |
# nope #2 | |
for folder in [ "state/" "logs/" ]: | |
print(folder) | |
# yes | |
for folder in "state/", "logs/": | |
print(folder) |
xt1092 |
function gpom { git pull origin master } | |
Set-Alias -Name pull -Value gpom | |
function gpod { git pull origin develop } | |
Set-Alias -Name gpod -Value gpod |
sudo apk add libffi-dev openssl-dev python2-dev musl-dev gcc py2-pip make cmake | |
pip install --user aws | |
use std::collections::HashMap; | |
use std::io; | |
use std::num::ParseFloatError; | |
use std::rc::Rc; | |
// | |
// Types | |
// | |
#[derive(Clone)] |
function fish_prompt | |
set -g __branch \((git branch ^/dev/null | grep \* | sed 's/* //')\) | |
if test "$__branch = master" | |
set -g __git_prompt (set_color cyan)$__branch(set_color normal) | |
else | |
set -g __git_prompt (set_color orange)$__branch(set_color normal) | |
end | |
if test "$PWD" != "$HOME" | |
printf "%s %s > " (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|") $__git_prompt |