Skip to content

Instantly share code, notes, and snippets.

View codenuke's full-sized avatar

C0deNuke codenuke

View GitHub Profile
@codenuke
codenuke / iphone-ext-backup.sh
Created September 22, 2021 08:25
move backup foldter to external harddisk
mv ~/Library/Application\ Support/MobileSync/Backup ~/Library/Application\ Support/MobileSync/Backup_old
ln -s /Volumes/External_1TB_HFS/My\ Backups/iOS_Backups ~/Library/Application\ Support/MobileSync/Backup
@codenuke
codenuke / root-password-MariaDB-docker-compose.md
Created March 15, 2022 05:39 — forked from rordi/root-password-MariaDB-docker-compose.md
Change root password in MariaDB Docker container running with docker-compose

Change root password in MariaDB Docker container running with docker-compose

Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:

entrypoint: mysqld_safe --skip-grant-tables --user=mysql

The start up the Docker Compose stack:

$> docker-compose up -d
@codenuke
codenuke / genCert.md
Created March 24, 2022 11:00 — forked from sturadnidge/genCert.md
Generate a self signed certificate in 1 line + a config file

To generate a self-signed cert, do the following:

openssl req -config 12factor.req -new -nodes -x509 -newkey rsa:2048 -sha256 -keyout 12factor.key -out 12factor.cert -days 3650

Where 12factor.req is:

[ req ]
default_bits        = 2048
default_keyfile     = 12factor.key