Skip to content

Instantly share code, notes, and snippets.

View theendofline's full-sized avatar
🏠
Working from home

Arsen Shlianin theendofline

🏠
Working from home
View GitHub Profile
@theendofline
theendofline / cleanup docker registry
Created July 29, 2025 09:26 — forked from moisei/cleanup docker registry
cleanup docker registry. delete all the tags from the list of the repositories
# inspired by the https://gist.github.com/jaytaylor/86d5efaddda926a25fa68c263830dac1
registry="http://${registry_user}:${registry_passwd}@${registry_url}/v2"
for repo in `cat repos-todel`; do
for tag in $(curl -sSL "${registry}/${repo}/tags/list" | jq -r '.tags[]?'); do
tagURL="${registry}/${repo}/manifests/${tag}"
sha256=$(curl -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -sSL -I ${tagURL} | awk '$1 == "Docker-Content-Digest:" { print $2 }' | tr -d $'\r')
deleteURL="${registry}/${repo}/manifests/${sha256}"
echo $deleteURL
# curl -v -sSL -X DELETE $deleteUR
done
#!/usr/bin/env bash
# install-zsh-stack.sh — bootstrap git, zsh, Oh-My-Zsh and five plugins
set -euo pipefail
##############################################################################
# 0. Set theme
##############################################################################
THEME="${THEME:-bira}"
echo "# → Theme to install: $THEME"
@theendofline
theendofline / private_fork.md
Created May 24, 2025 18:00 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@theendofline
theendofline / multiple_ssh_setting.md
Last active December 6, 2024 15:20 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@theendofline
theendofline / terraform-update.sh
Created May 4, 2024 13:18
Created for updating or installing the Terraform for specific purposes when the destination is different than the default one. In this case the destination is /usr/loca/bin/ instead of default /usr/bin/
#!/bin/bash
# Required system tools
SYSTEM_DEPS=(
curl
jq
unzip
wget
)