Skip to content

Instantly share code, notes, and snippets.

View iamludal's full-sized avatar
🚀

Ludal iamludal

🚀
View GitHub Profile
@iamludal
iamludal / delete_github_workflow_runs.sh
Created December 24, 2023 16:15
Delete all GitHub workflow runs for a given workflow
#!/bin/bash
workflow=$1
limit=$2
if [[ -z "$workflow" ]]
then
echo "Usage: $0 <workflow> [<limit>]"
exit 1
fi
@iamludal
iamludal / .bashrc
Created January 29, 2021 15:16
Display the status code of the last executed command. Add this snippet to your .bashrc or .zshrc file.
col_success="$(tput setaf 10)"
col_failure="$(tput setaf 9)"
col_normal="$(tput sgr0)"
col_fade="$(tput setaf 15)"
function _prompt_() {
local code="$?"
if [ "$code" -ne 0 ];
then