Youtube-dl is a popular commandline utility to download content from YouTube (among many other sites).
Open a termianl and type:
brew install youtube-dl ffmpeg
| #! /bin/bash | |
| for file in *.doc; do | |
| textutil -convert docx "$file" | |
| # Account for the new `x` in `docx` | |
| pandoc -o "${file%doc}pdf" "${file}x" | |
| done |
| require 'nokogiri' | |
| require 'open-uri' | |
| sitemaps = [ | |
| 'https://www.clir.org/page-sitemap1.xml', | |
| 'https://www.clir.org/page-sitemap2.xml' | |
| ] | |
| xml = Nokogiri::XML(URI.open(sitemaps[0])) | |
| # urls = xml.search('url') |
| # frozen_string_literal: true | |
| source "https://rubygems.org" | |
| git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
| gem "mechanize" | |
| gem 'progress_bar' | |
| gem 'terminal-table' |
This is from https://webapps.stackexchange.com/questions/88769/get-share-link-of-multiple-files-in-google-drive-to-put-in-spreadsheet.
In a Google Sheet, click on Tools->Script Editor
Add the following function (be sure to change the to the ID needed):
function myFunction() {
var ss=SpreadsheetApp.getActiveSpreadsheet();
var s=ss.getActiveSheet();
| du -a /home | sort -n -r | head -n 5 |
| require 'dotenv' | |
| require 'any_ascii' | |
| require 'aws-sdk-translate' | |
| Dotenv.load | |
| class String | |
| def is_western? | |
| count('a-zA-Z') > 0 |
| # frozen_string_literal: true | |
| source "https://rubygems.org" | |
| git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
| gem 'colorize' | |
| gem 'geo_names' | |
| gem "geocoder" |
| #! /bin/zsh | |
| # Add commonly used folders to $PATH | |
| export PATH="$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
| for bindir in $HOME/local/bin $HOME/bin; do | |
| if [ -d $bindir ]; then | |
| PATH=$PATH:${bindir} | |
| fi | |
| done |
| #! /usr/bin/env zsh | |
| if [ -z "$1" ] | |
| then | |
| length=18 | |
| else | |
| length=$1 | |
| fi | |
| openssl rand -base64 $length |