Skip to content

Instantly share code, notes, and snippets.

Avatar

Craig Anderson intrepidws

View GitHub Profile
View Generate-SSH-Key.md

!!! SHOULD USE PASSWORD !!!

Generate an SSH key, using PEM (and not the new default RFC4716): ssh-keygen -m PEM -t rsa -b 4096 -C "craig@intrepidws.com"

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 Oct 16, 2019 — forked from nguyenkims/sync-sequel-pro-favorite.md
Sync sequel pro favorites between macs
View sync-sequel-pro-favorite.md

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

View Create Sequel Pro Favorites Symlink
View Create Homestead.yaml Symlink
View countries.csv
location alcohol
Belarus 0
Moldova 0
Lithuania 0
Romania 0
Ukraine 0
Andorra 0
Hungary 0
Czech Republic 0
Slovakia 0