Skip to content

Instantly share code, notes, and snippets.

@joanbono
joanbono / macdown_brute.sh
Last active January 7, 2024 11:12
mac-torrent-download DMG brute-forcer
#!/bin/bash
# Title: Macdown.sh
# Description: Bruteforce DMG files downloaded from mac-torrent-download.net
# Author: Joan Bono (@joan_bono)
# Version: 1.1.0
# Last Modified: jbono @ 20211129
RED='\033[0;31m'
GREEN='\033[0;32m'
NOCOLOR='\033[0m'
@bahmutov
bahmutov / Docker shell commands.sh
Last active February 9, 2024 07:55
A personal cheat sheet for running local Node project in a Docker container
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
function get_mx($email)
{
// Get domain name from email
$domain = substr(strrchr($email, "@"), 1);
// get MX records for domain
getmxrr($domain, $mxhosts);
// Match records with three options
preg_match('/google|hotmail|yahoo/i', implode(' ', $mxhosts), $matches);