Skip to content

Instantly share code, notes, and snippets.

View arnos-stuff's full-sized avatar
🎯
Focusing

Arno V arnos-stuff

🎯
Focusing
  • Some big IT & Data Consulting Corp @ La Défense (FR)
  • Paris
  • 16:29 (UTC +02:00)
  • X @varn0v
View GitHub Profile
@arnos-stuff
arnos-stuff / metrics-gdp.json
Created October 24, 2023 22:47
JSON format lists of metrics to compare to GDP - in terms of their world bank indicator ID
[
{
"name" : "GDP per capita",
"id" : "NY.GDP.PCAP.KD",
"relationship" : "linear"
},
{
"name" : "GNI per capita",
"id" : "NY.GNP.PCAP.KD",
"relationship" : "linear"
@arnos-stuff
arnos-stuff / gdp_metrics.py
Created October 24, 2023 22:46
python script to get world bank data indicators that might correlate with gdp into a single dataframe
import pandas as pd
import plotly.express as px
import wbdata as wb
import json
from typing import Dict, List
from pathlib import Path
# import metrics from JSON
metricsPath = Path("./metrics-gdp.json")
metrics = json.load(metricsPath.open())
@arnos-stuff
arnos-stuff / update-links.sh
Created September 13, 2023 05:19
Link updater bash script
@arnos-stuff
arnos-stuff / update-links.sh
Last active September 13, 2023 05:04
bash script to update suri links
@arnos-stuff
arnos-stuff / update-links.json
Created September 13, 2023 04:45
bash script to update suri links
@arnos-stuff
arnos-stuff / links.json
Last active September 13, 2023 05:01
suri json links file
@arnos-stuff
arnos-stuff / install-k8s.sh
Created September 13, 2023 04:27
K8s isntall script for ubuntu / debian
#!/bin/bash
sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
echo 'alias k=kubectl' >> ~/.zshenv
echo 'compdef __start_kubectl k' >> ~/.zshrc
@arnos-stuff
arnos-stuff / install-vm.sh
Created September 13, 2023 04:27
VM isntall script for ubuntu / debian
#!/bin/bash
BREW_ROOT=/home/linuxbrew/.linuxbrew/bin
sudo apt install -y git zsh zsh-static micro
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
mkdir git
git clone https://github.com/arnos-stuff/shell git/shell
cp git/shell/prompts/half-pure.toml .config/starship.toml
@arnos-stuff
arnos-stuff / animals.bash
Created September 13, 2023 04:26
A bash script for generating animal-based ids using letters and numbers
#!/bin/bash
# get env
letter="$ANIMAL_LETTER"
index="$ANIMAL_INDEX"
# validate else error
if [ -z "$letter" ]; then
@arnos-stuff
arnos-stuff / animals-index-bash.json
Created September 13, 2023 04:24
Files for auto generating animal names - json format
[
{
"index": 0,
"animal": "aardvark",
"letter": "a",
"number": 1,
"bash": "[[ \"$letter\" == \"a\" ]] && [[ \"$index\" == \"1\" ]] && animal=aardvark",
"subindex": 1
},
{