Skip to content

Instantly share code, notes, and snippets.

View EdinUser's full-sized avatar

Edin User EdinUser

  • Plovdiv, Bulgaria
View GitHub Profile
#!/bin/bash
APP_NAME="$1"
if [ -z "$APP_NAME" ]; then
echo "Usage: $0 <app_name>"
exit 1
fi
# Colors
@EdinUser
EdinUser / README.md
Last active December 20, 2024 12:25
Bash script to update Debian-based Linux - APT, SNAP and FLATPAK

Updater

Console bash script to make it easier to update packages (auto updaters only)

Install

Download file, than make it executable: chmod +x upd.sh Copy the file to /usr/bin without extension: sudo cp upd.sh /usr/bin/upd type upd from console and run it :)

Copyright

@bohwaz
bohwaz / php-8.1-strftime.php
Last active March 20, 2025 11:19
strftime() replacement function for PHP 8.1
<?php
namespace PHP81_BC;
/**
* Locale-formatted strftime using \IntlDateFormatter (PHP 8.1 compatible)
* This provides a cross-platform alternative to strftime() for when it will be removed from PHP.
* Note that output can be slightly different between libc sprintf and this function as it is using ICU.
*
* Usage:
* use function \PHP81_BC\strftime;