Skip to content

Instantly share code, notes, and snippets.

View mjovanc's full-sized avatar
🦀

Marcus Cvjeticanin mjovanc

🦀
View GitHub Profile
@mjovanc
mjovanc / stacked_data.csv
Created April 23, 2024 11:39
Stacked Data for D3 bar chart
group Nitrogen normal stress
banana 12 1 13
poacee 6 6 33
sorgho 11 28 12
triticum 19 6 1
sunflower 15 21 25
rice 8 2 17
corn 10 12 9
barley 14 7 4
oats 9 16 6
@mjovanc
mjovanc / remove_docker_images_with_no_repository.sh
Created May 19, 2023 15:30
Removes all Docker Images that has <none> set on repository
#!/bin/bash
# Get a list of all Docker images with "<none>" tag
image_list=$(docker images --format "{{.Repository}}:{{.Tag}} {{.ID}}" | grep "<none>")
# Loop through the images and remove them
while IFS= read -r image; do
image_id=$(echo $image | awk '{print $2}')
echo "Removing image: $image_id"
docker rmi $image_id
SEKReT14u3HDGoQUmxB6YAErTPvKrH3oMfHt3jbqp9CAQrRRaJcRHg6JVjRPVKUViwhrWxfH8AkmCCTzCe2WjwuqZRQY1gdtzn37e2471c3e03367ddd01c4f091b5291d1fd508ed971f3338768d048fa0ddd285f
@mjovanc
mjovanc / xkr_node_explorer.sh
Last active November 9, 2022 18:21
Kryptokrona CLI Node Explorer
#!/bin/bash
NOW=$(date +%s)
DATE=$(date '+%F %T')
# Colors
RED='\033[1;31m'
YELLOW='\033[1;33m'
BLUE="\\033[38;5;27m"
SEA="\\033[38;5;49m"
GREEN='\033[1;32m'
@mjovanc
mjovanc / .bashrc
Created December 22, 2021 09:50
Simple Git commands aliases for .bashrc
# ------------------------------
# Git command aliases/functions
# ------------------------------
alias gs='git status'
alias gsw='git switch -'
alias gfa='git fetch --all'
alias gp='git pull'
alias gsu='git submodule update'
alias ga='git add .'
alias grc='git rev-list --count origin/master..HEAD'