Skip to content

Instantly share code, notes, and snippets.

@jjcody
jjcody / randomize-mac-address-os-x.md
Last active October 5, 2022 01:11
Randomize WiFi MAC address on computer startup (OS X)

Randomize your WiFi MAC address on startup (OS X)

Install spoof-mac with the terminal command: $ brew install spoof-mac.

Then follow the instructions at https://github.com/feross/SpoofMAC#startup-installation-instructions to randomize your MAC address on computer startup:

# Download the startup file for launchd
curl https://raw.githubusercontent.com/feross/SpoofMAC/master/misc/local.macspoof.plist > local.macspoof.plist
@jjcody
jjcody / gist:c98e3a5ba3f67d5d54c6
Created June 18, 2014 17:58
Simple example of aes-256-cbc encryption for Ruby/Rails to encrypt URL params (or any text)
# Simple example of aes-256-cbc encryption for Ruby/Rails to encrypt URL params (or any text)
require 'openssl'
require 'base64'
require 'uri'
plaintext = 'id=example_id&user_id=the_user_id&username=voxtrot&user_first_name=john&user_last_name=doe&user_image=http://i1.nyt.com/images/misc/nytlogo379x64.gif'
#