Skip to content

Instantly share code, notes, and snippets.

View gladx's full-sized avatar
🕺
Coding ...

Ali Yousefi gladx

🕺
Coding ...
View GitHub Profile
@gladx
gladx / gitup.sh
Created July 4, 2022 12:48
get git update last changes
#!/bin/bash
# gitup.sh
# gitup.sh HEAD
# gitup.sh HEAD~3
if [ ! -z "$1" ] ; then
echo "Createing ../update.zip "
git diff --name-only "$1" --diff-filter=d
git archive -o ../update.zip HEAD $(git diff --name-only "$1" --diff-filter=d)
@gladx
gladx / phpmyadmin-config.md
Created July 20, 2022 23:00
Install phpmyadmin and set random hash config.inc.php

openssl rand -base64 32 // config.inc.php $cfg['blowfish_secret'] = 'BX0pgCsYvLhoohqKaUgdTzr5T+Na0n/tKvat4i9bGfc=';

// .bashrc alias phpmyadmin="php8.0 -S localhost:8081 -t /home/user/tools/phpmyadmin"

@gladx
gladx / rclone.md
Last active September 20, 2023 00:31
Rclone example commands

Rclone Simple Example Commands

Copy

-P show proggress

rclone copy -P -v --multi-thread-streams=10 remote-230:/root/a ~/Videos/

Config