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
console.log(Array.from(document.querySelectorAll('tr')).map(tr => Array.from(tr.getElementsByTagName('td')).map(td => td.innerText).join('\t')).join('\n')) |
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
IO.puts "Reading activity monitor data from clipboard:" | |
{activity_monitor_data, 0} = System.cmd("pbpaste", []) | |
memory_grouped_by_name = | |
activity_monitor_data | |
|> String.split("\n") | |
|> Enum.filter(fn line -> | |
match? [_name, _size | _], String.split(line, "\t") | |
end) | |
|> Enum.map(fn line -> |
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
var pattern = /\b(SEARCHTERM)\b/ | |
Array | |
.from(document.getElementsByClassName("manhattan--container--1lP57Ag")) | |
.forEach(con => | |
con | |
.querySelector("h1") | |
.innerHTML | |
.match(pattern) | |
|| con.remove() | |
) |
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
find . -type f | while read file; do echo "$(date -r "$file" "+%s %Y-%m-%d %H:%M:%S")" " $file"; done > filechangedates | |
cat filechangedates | sort -n |
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
sudo fs_usage -f filesys | grep my-directory |
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
nvim test/hello.exs -c 'execute "normal! gg/use ExUnit.Case\<CR>A, async: true\<Esc>:wq\<CR>"' -u NONE --headless |
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
-- See the most up to date version here where it says "Download the mrc-converter-suite zip archive" https://discussions.agilebits.com/discussion/30286/mrcs-convert-to-1password-utility/p1 | |
-- | |
-- Exports Safari's saved passwords to a CSV file formatted for use with the convert_to_1p4's csv converter | |
-- | |
-- Version 1.4 | |
-- mike (at) cappella (dot) us | |
-- | |
use AppleScript version "2.5" -- runs on 10.11 (El Capitan) and later | |
use scripting additions |
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
/.*facebook.com\/$/ | |
/.*reddit.com\/$/ | |
/.*youtube.com\/$/ |
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
# Requires spotdl and youtube-dl to installed with python3 | |
# Should be a list of search query text for spotify (e.g. `Song Name Artist Name`) | |
SONG_LIST_FILE = '/Users/Dylan/Desktop/songs.txt'.freeze | |
OUTPUT_FOLDER = '/Users/Dylan/Desktop/songs'.freeze | |
File.foreach(SONG_LIST_FILE) do |line| | |
command = [ | |
'spotdl', | |
'--song', |
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
find * | xargs rename -n 's/part-of-filename-to-replace/replacement/' # -n for dry run |
NewerOlder