Shortcut | Description |
---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import spotipy | |
import spotipy.util as util | |
""" | |
top_songs.py | |
See https://lewery.ca/automation/spotify-top-songs/ for detailed | |
instructions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set _document to theFile | |
-- Open a docx document in pages and auto export to PDF | |
tell application "Finder" | |
set _directory to get container of file _document | |
set _documentName to name of _document | |
-- Figure out document name without extension | |
if _documentName ends with ".docx" then ¬ | |
set _documentName to text 1 thru -6 of _documentName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(*using terms from application "Mail" | |
on perform mail action with messages theMessages for rule theRule*) | |
-- Adapted from: http://www.markosx.com/thecocoaquest/automatically-save-attachments-in-mail-app/ | |
-- For usage instructions, see: https://lewery.ca/automation/autosave-email-attachments | |
set MainFolder to "Dropbox" -- After the current users home dir | |
set subFolder to "mail" | |
-- The folder to save the attachments in (must already exist) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Convert all saved Reddit links to Pinboard bookmarks | |
""" | |
import os | |
import argparse | |
import pinboard | |
import praw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import spotipy | |
import spotipy.util as util | |
""" | |
top_songs.py | |
This script requires spotipy: https://github.com/plamere/spotipy | |
Automates creation of a 'Top Songs' playlist on Spotify. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import re | |
import shutil | |
import argparse | |
""" | |
video-filer.py | |
Files TV shows in the format in the format | |
'$show$season$episode$garbage.$ext' to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Find and open in vim (if more than one file vim will open each in it's own buffer | |
find . -iname "$1" -exec vim {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Delete all saved posts / comments on your reddit account with PRAW. | |
See: https://lewery.ca/automation/delete-all-saved-reddit-links | |
Needs Python 3+ and Praw 5.3.0 | |
""" | |
import argparse | |
import praw |
NewerOlder