- Create Automator Folder Action.
- Add Folder to watch.
- In Picker, enter
CMD + SHIFT + G
and type/Volumes/
- Click Choose.
- Add Run Script to Automation.
- Use /bin/bash or /bin/zsh.
- Example rsyncs:
#!/usr/bin/env bash
CMD + SHIFT + G
and type /Volumes/
#!/usr/bin/env bash
from collections import Counter | |
import nltk | |
import requests | |
from bs4 import BeautifulSoup | |
# def isApp(word): | |
# """ | |
# Checks to see if given word is a Mac or iOS app. |
NOTE: This is mac only.
~/Library/Application Scripts/com.apple.mail
.saveByRule.scpt
and change theFolder
to where you'd like emails to be saved.saveByRule.scpt
into ~/Library/Application Scripts/com.apple.mail
.#!/usr/bin/env python2.7 | |
import os | |
import PyPDF2 | |
class pdfSplitter(): | |
def __init__(self, original_pdf, out_name, splits): | |
""" | |
Creates new instance of pdfSplitter class |
# Modified version where you can press | |
# - CTRL-O to open with `open` command, | |
# - CTRL-E or Enter key to open with the $EDITOR | |
# - CTRL-S to search inside files | |
# - CTRL-C to copy file path to clipboard | |
# - CTRL-D to cd to directory of file | |
# - CTRL-N to make a new markdown file. | |
fs() { | |
local out file key | |
IFS=$'\n' out=($(fzf -i --preview="pygmentize -g {}" --query="$1" --exit-0 --expect=ctrl-o,ctrl-e,ctrl-s,ctrl-m,ctrl-c,ctrl-d,ctrl-x,ctrl-n --bind '?:toggle-preview')) |
filetype plugin indent on | |
:ab #b /************************************************ | |
:ab #e ************************************************/ | |
set nocompatible | |
set modelines=0 | |
set autowrite | |
set backspace=indent,eol,start | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |
This script is intended to run in Pythonista on iOS. It works equally well on desktop OSs. Installation instructions will be solely for Pythonista.
dailytracker.py
and paste the contents.#!/usr/bin/env python3 | |
import argparse | |
def naive_reverse(input_list: [str]): | |
new_list = [] | |
size = len(input_list) - 1 | |
for i in range(0, len(input_list)): | |
new_list.append(input_list[size - i]) | |
return new_list |
{ | |
"Red": { | |
"id": "Red", | |
"name": "Red Line", | |
"type": 1, | |
"options": { | |
"Ashmont/Braintree": 0, | |
"Alewife": 1 | |
}, | |
"stops": { |
tap "filosottile/musl-cross" | |
tap "heroku/brew" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/core" | |
tap "neovim/neovim" | |
tap "redox-os/gcc_cross_compilers" | |
tap "sbdchd/skim" | |
tap "sergiobenitez/osxct" |