Sunday, May 31, 2026

Friday, May 29, 2026

Set Email and Username Github

git config --global user.email "test@mail.com"
git config --global user.name "username"

Tuesday, May 26, 2026

WinZip can't open folders containing any of the following characters: \ / : * ?

---Mac Terminal Command----

find /Users/Doc/xxxx/xxx/xx \

-depth \

-name '*[:\/\*\?"<>|]*' \

-exec bash -c '

for f; do

    dir=$(dirname "$f")

    base=$(basename "$f")

    new=$(echo "$base" | sed "s/[\\\\/:*?\"<>|]/_/g")

    

    if [ "$base" != "$new" ]; then

        mv "$f" "$dir/$new"

        echo "Renamed: $f -> $dir/$new"

    fi

done

' bash {} +

Sunday, February 22, 2026

Proper Full Backup MYSQL Database

mysqldump -u myuser -p --single-transaction --routines --triggers --events database_name > full_backup.sql

Thursday, January 22, 2026

Update Ubuntu Swapfile

---- create swapfile2---- 

sudo fallocate -l 4G /swapfile2

sudo chmod 600 /swapfile2

sudo mkswap /swapfile2

sudo swapon /swapfile2


--remove old----

sudo swapoff /swapfile

sudo rm -f /swapfile

Wednesday, January 21, 2026

Import backup file into MYSQL

For example, if your file is in your current folder and your username is root:

 mysql -u root -p dbname < backup_file.sql