Skip to content

Instantly share code, notes, and snippets.

View intrepidws's full-sized avatar

Craig Anderson intrepidws

View GitHub Profile
homestead: Are you sure you want to destroy the 'homestead' VM? [y/N] y
==> homestead: Destroying VM and associated drives...
==> homestead: Destroying unused networking interface...
==> homestead: Pruning invalid NFS exports. Administrator privileges will be required...
Bringing machine 'homestead' up with 'parallels' provider...
==> homestead: Registering VM image from the base box 'laravel/homestead-arm'...
==> homestead: Creating new virtual machine as a linked clone of the box image...
==> homestead: Unregistering the box VM image...
==> homestead: Setting the default configuration for VM...

!!! SHOULD USE PASSWORD !!!

Generate an SSH key, using PEM (and not the new default RFC4716): ssh-keygen -m PEM -t rsa -b 4096 -C "[email protected]"

For an older key that needs to be converted to PEM, run this: ssh-keygen -p -m PEM -f ~/.ssh/id_rsa

To copy the public key to the clipboard, do: pbcopy < ~/.ssh/id_rsa.pub

@intrepidws
intrepidws / sync-sequel-pro-favorite.md
Created October 16, 2019 20:13 — forked from nguyenkims/sync-sequel-pro-favorite.md
Sync sequel pro favorites between macs

The sequel pro favorites can be shared between Macs using cloud storage service like Dropbox, Google Drive, OneDrive, etc.

The trick is to create a file that will be synced using these cloud services and sequel pro favorites file is just a symlink to this file.

The below script is used for OneDrive but it can also work for Dropbox and other cloud storages.

  1. Copy the current sequel pro favorites file

cp ~/Library/Application\ Support/Sequel\ Pro/Data/Favorites.plist ~/OneDrive/SequelPro.plist

location alcohol
Belarus 0
Moldova 0
Lithuania 0
Romania 0
Ukraine 0
Andorra 0
Hungary 0
Czech Republic 0
Slovakia 0