Skip to content

Instantly share code, notes, and snippets.

View WoozyMasta's full-sized avatar
👽
gotcha

Maxim Levchenko WoozyMasta

👽
gotcha
View GitHub Profile
@WoozyMasta
WoozyMasta / MissionServer.c
Created December 25, 2025 07:09
EnforceScript: String Concatenation vs string.Format
modded class MissionServer : MissionBase
{
override void OnInit()
{
super.OnInit();
GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(RunStringsTest, 15 * 1000, false);
}
void RunStringsTest()
{
@WoozyMasta
WoozyMasta / SUPPORT.md
Last active November 10, 2025 12:03
Support links and methods

Support me

If you like my projects and want to support further development, you can donate — every bit helps keep the work going.

Donation options

  • Boosty (cards, PayPal, etc.): https://boosty.to/woozymasta
  • BTC: bc1qgrj95gdhmauh5hx47etuk5lwfk7xgc8z9psw62
  • ETH: 0xD6038db1Dd49D576cE480BdDB9fD0FbCfAa534F3
  • USDT (TRC20): TNGWLqM4Rw6F6QyfmnD3q8vLfKWEc87gZp
@WoozyMasta
WoozyMasta / makefile_completion.sh
Created August 28, 2025 10:34
makefile bash completion
# makefile completion
function __makefile_completion() {
[ ! -f "${1:?}" ] && return
grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' "$1" | sed 's/[^a-zA-Z0-9_.-]*$//' | grep -iv '.phony'
while read -r x; do
__makefile_completion "$(envsubst <<< "$x")"
done < <(grep -E '^include' "$1" | sed -e 's/include //' -e 's/(/{/' -e 's/)/}/')
}
complete -W "\$(__makefile_completion ?akefile)" make
@WoozyMasta
WoozyMasta / nexus-npm-cache-revalidate.sh
Created September 9, 2021 08:32
Script for rebuild indexes and invalidate cache in Sonatype nexus 3 NPM proxy repositories
#!/usr/bin/env bash
#
# Script for rebuild indexes and invalidate cache in NPM proxy repositories.
# Configuration can load from hide file with same name as script
# Example: this-srcipt.sh load config from ./.this-srcipt
#
# Copyright 2020 WoozyMasta <woozy.masta@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@WoozyMasta
WoozyMasta / gitalb_badges_drop.sh
Created May 28, 2025 10:23
Recursive delete all badges in GitLab projects
#!/usr/bin/env bash
set -euo pipefail
# Recursive delete all badges in GitLab projects
: "${GITLAB_HOST:?}"
: "${GITLAB_TOKEN:?}"
: "${GITLAB_GROUP_ID:?}"
gitlab() {
@WoozyMasta
WoozyMasta / gitlab-api-paginated.sh
Last active April 10, 2025 11:15
Paginated API Requests on bash with curl & jq (GitLab API Example)
#!/usr/bin/env bash
# GitLab API Pagination
# Fetches paginated data from GitLab API using curl and jq
#
# Usage:
# - export SOURCE_GITLAB_URL, SOURCE_GITLAB_TOKEN for first GitLab instance
# - export TARGET_GITLAB_URL, TARGET_GITLAB_TOKEN for second GitLab instance
# - use api::src <path> [args] or api::dst <path> [args] to work with GitLab API
#
@WoozyMasta
WoozyMasta / create-container-registry-proxies.sh
Last active February 18, 2025 23:55
Create multiplie container registry cache proxies using docker distribution in registry mirror mode
#!/bin/bash
set -eu
# Listen address for all docker.io/registry instances
listen_address=0.0.0.0
# Listen port for the first container
# all subsequent ports for containers will be incremented by one
listen_port_first=5000
insecure=true
@WoozyMasta
WoozyMasta / gitlab_repo_mirror.sh
Last active January 17, 2025 04:05
Mirrors repositories with groups while maintaining nesting between two GitLab instances
#!/usr/bin/env bash
set -euo pipefail
# Mirrors repositories with groups while maintaining nesting
# between two GitLab instances
#
# Limited to 100 groups/repositories per request,
# if you need more, you need to update this script!
# As an example of pagination implementation
# https://gist.github.com/WoozyMasta/03c4c532669f43dca0de11087f24d077
@WoozyMasta
WoozyMasta / gitalb_features.sh
Created January 15, 2025 00:04
Recursive change GitLab projects feature visibility settings
#!/usr/bin/env bash
set -euo pipefail
# Recursive change GitLab projects feature visibility settings
: "${GITLAB_HOST:?}"
: "${GITLAB_TOKEN:?}"
: "${GITLAB_GROUP_ID:?}"
gitlab() {
@WoozyMasta
WoozyMasta / get-telegram-sticers.sh
Last active October 18, 2024 07:25
Download telegram stickers and convert to PNG/GIF with optimizations
#!/usr/bin/env bash
# Download telegram stickers and convert to PNG/GIF
#
# Dependecies:
# - jq, curl
# - https://www.ffmpeg.org/
# - https://pngquant.org/
# - http://www.lcdf.org/gifsicle/
# - https://github.com/ed-asriyan/lottie-converter