Skip to content

Instantly share code, notes, and snippets.

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

gohoyer

🏠
Working from home
View GitHub Profile
@gohoyer
gohoyer / gitlab_api_pagination.sh
Created December 20, 2021 22:01
Bash script to deal with the Gitlab API pagination
#!/bin/bash
# This is a Gitlab Pagination Example on Bash for the forks API endpoint.
#
# Reference for the Gitlab API`s on 10.8.7: https://gitlab.com/gitlab-org/gitlab-foss/-/blob/v10.8.7/doc/api/README.md
script_banner()
{
echo "+----------------------------------------------------------------------------------+"
@gohoyer
gohoyer / detect_log4shell.sh
Last active December 9, 2022 03:56
Script to detect vulnerable log4j on linux systems - CVE-2021-44228 - Log4Shell
#! /bin/bash
#
# Script to detect vulnerable log4j to CVE-2021-44228
#
# Autor: Gustavo Oliveira Hoyer
#
# Last update: 22/12/2021 - 08:19
#
# Minum version required
@gohoyer
gohoyer / progressbar.sh
Last active November 6, 2017 10:54 — forked from stevenrombauts/progressbar.sh
Bash Progress Bar
#!/bin/bash
# Slick Progress Bar
# Created by: Ian Brown (ijbrown@hotmail.com)
# Please share with me your modifications
# Note: From http://stackoverflow.com/questions/11592583/bash-progress-bar
# Functions
PUT(){ echo -en "\033[${1};${2}H";}
DRAW(){ echo -en "\033%";echo -en "\033(0";}
WRITE(){ echo -en "\033(B";}
HIDECURSOR(){ echo -en "\033[?25l";}