Skip to content

Instantly share code, notes, and snippets.

@maty974
maty974 / csv-to-icloud-keychain.applescript
Created October 3, 2018 17:40
Password csv to import to iCloud keychain
-- select the csv to import to iCloud keychain
set theFile to (choose file with prompt "Select the CSV file")
-- read csv file
set f to read theFile
-- split lines into records
set recs to paragraphs of f
-- open safari passwords screen, check it is unlocked, do not allow to proceed until it is unlocked or user clicks cancel.
@maty974
maty974 / tmux-migrate-options.py
Created April 25, 2020 11:33 — forked from tbutts/tmux-migrate-options.py
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#