Skip to content

Instantly share code, notes, and snippets.

View maxrodrigo's full-sized avatar
🪐
(loop(print "code hack automate"))

Max Rodrigo maxrodrigo

🪐
(loop(print "code hack automate"))
View GitHub Profile
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
tar zvcf ~/modified_and_new_files.tar.gz ` git status --short | sed 's/^ *[^ ]* \(.*\)/\1/g' `
@maxrodrigo
maxrodrigo / docker-cleanup.sh
Created November 9, 2018 15:38
Docker cleanup script
#!/bin/bash
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
@maxrodrigo
maxrodrigo / iso-3166-1-database.json
Created April 5, 2019 11:25
ISO 3166-1 - Codes for the representation of names of countries and their subdivisions.
{
"3166-1": [
{
"alpha_2": "AW",
"alpha_3": "ABW",
"name": "Aruba",
"numeric": "533"
},
{
"alpha_2": "AF",

rsync -avhW --no-compress --progress /src/ /dst/

  • -a is for archive, which preserves ownership, permissions etc.
  • -v is for verbose, so I can see what's happening (optional)
  • -h is for human-readable, so the transfer rate and file sizes are easier to read (optional)
  • -W is for copying whole files only, without delta-xfer algorithm which should reduce CPU load
  • --progress so I can see the progress of large files (optional)
@maxrodrigo
maxrodrigo / reintall-macos-lion.md
Created March 3, 2020 17:16
Reinstall MacOS Lion 10.6 Without AppleID

Boot your laptop in Recovery Mode (cmd+R)

  1. Open the Terminal and find the Apple_Boot Recovery HD.
# diskutil list
/dev/disk0
 #:                       TYPE NAME               SIZE       IDENTIFIER
 0:      GUID_partition_scheme                   *250.1 GB   disk0
 1:                        EFI                    209.7 MB   disk0s1
 2:                  Apple_HFS Macintosh HD       249.2 GB   disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
@maxrodrigo
maxrodrigo / empty-commit.sh
Created April 30, 2020 06:46
Run Github Actions
git commit --allow-empty -m "Trigger rebuild"
git push
C:/$recycle.bin/s-1-5-18/desktop.ini
C:/MININT/SMSOSD/OSDLOGS/VARIABLES.DAT
C:/apache/log/access.log
C:/apache/log/access_log
C:/apache/log/error.log
C:/apache/log/error_log
C:/apache/logs/access.log
C:/apache/logs/access_log
C:/apache/logs/error.log
C:/apache/logs/error_log
/NetServer\bin\stable\apache\php.ini
/PHP\php.ini
/Program Files\Apache Group\Apache2\conf\httpd.conf
/Program Files\Apache Group\Apache\conf\httpd.conf
/Program Files\Apache Group\Apache\logs\access.log
/Program Files\Apache Group\Apache\logs\error.log
/Program Files\xampp\apache\conf\httpd.conf
/Volumes/Macintosh_HD1/opt/apache/conf/httpd.conf
/Volumes/Macintosh_HD1/opt/apache2/conf/httpd.conf
/Volumes/Macintosh_HD1/opt/httpd/conf/httpd.conf
[Incremental:RockYou-LanMan]
File = $JOHN/rockyou-lanman.chr
MinLen = 0
MaxLen = 7
CharCount = 69
[Incremental:rockyou]
File = $JOHN/rockyou.chr
MinLen = 0
MaxLen = 8