This file contains hidden or 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 bash | |
| worktree() { | |
| local subcommand=$1 | |
| [[ $# -gt 0 ]] && shift | |
| case $subcommand in | |
| a|add) | |
| # Add new worktree (git worktree add) | |
| __worktree_add "$@" |
This file contains hidden or 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
| import Foundation | |
| struct Response: Decodable { | |
| var time: Date | |
| } | |
| let formatter = DateFormatter() | |
| formatter.locale = Locale(identifier: "en_US_POSIX") | |
| formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'" |
This file contains hidden or 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
| jq -r '["latitude", "longitude", "elevation", "name"], (.[] | select(.retweeted == false) | select(.geo != null) | [.geo.coordinates[0], .geo.coordinates[1], 0, .full_text + "\n\n" + .created_at]) | @csv' tweet.js > tweet.csv |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <!--So long and thanks for all the fish--> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>Pocket Export</title> | |
| </head> | |
| <body> | |
| <h1>History</h1> | |
| <ul> |
This file contains hidden or 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
| [ | |
| { | |
| "title" : "Cortex Airport", | |
| "starred" : 1, | |
| "name" : "Cortex", | |
| "lastPlayed" : 1564865481.72277, | |
| "url" : "https:\/\/castro.fm\/episode\/MdiHr4" | |
| }, | |
| { | |
| "title" : "for 2019\/07\/31 at 10:00 EDT", |
This file contains hidden or 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
| SELECT title, name, starred, lastPlayed, 'https://castro.fm/episode/' || e.shortId url | |
| FROM supepisode e, suppodcast p | |
| WHERE e.podcastId = p.id AND (lastplayed > 0 OR starred = 1) AND e.shortId != '' | |
| ORDER BY lastPlayed DESC |
This file contains hidden or 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
| require 'json' | |
| puts <<HERE | |
| <!DOCTYPE html> | |
| <html> | |
| <!--So long and thanks for all the fish--> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>Pocket Export</title> | |
| </head> |
This file contains hidden or 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
| sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
| sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
| #Optional: so vim can be uninstalled again via `dpkg -r vim` | |
| sudo apt-get install checkinstall | |
| sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
| cd ~ |
This file contains hidden or 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
| Please note that these warnings are just used to help the Homebrew maintainers | |
| with debugging if you file an issue. If everything you use Homebrew for is | |
| working fine: please don't worry and just ignore them. Thanks! | |
| Warning: Unbrewed dylibs were found in /usr/local/lib. | |
| If you didn't put them there on purpose they could cause problems when | |
| building Homebrew formulae, and may need to be deleted. | |
| Unexpected dylibs: | |
| /usr/local/lib/libimobiledevice.6.dylib |
NewerOlder