melanie / bulk-nslookup.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/bash |
2 | |
3 | if [ $# -ne 1 ]; then |
4 | echo "Usage: $0 <file>" |
5 | exit 1 |
6 | fi |
7 | |
8 | input_file="$1" |
9 | |
10 | if [ ! -f "$input_file" ]; then |
melanie / tailscale-mullvad-exit-node-ips.txt
0 likes
0 forks
1 files
Last active
1 | 100.85.175.95 |
2 | 100.103.142.113 |
3 | 100.89.86.10 |
4 | 100.118.245.125 |
5 | 100.125.155.75 |
6 | 100.64.195.159 |
7 | 100.127.183.1 |
8 | 100.66.247.50 |
9 | 100.104.61.115 |
10 | 100.104.136.32 |
melanie / fetch-for-osascript.js
0 likes
0 forks
1 files
Last active
1 | /* |
2 | Try it from the command line on Mac: |
3 | `osascript -l JavaScript fetch-for-osascript.js` |
4 | */ |
5 | function fetch(url) { |
6 | const queryURL = $.NSURL.URLWithString(url); |
7 | const requestData = $.NSData.dataWithContentsOfURL(queryURL); |
8 | const requestString = $.NSString.alloc.initWithDataEncoding( |
9 | requestData, |
10 | $.NSUTF8StringEncoding, |
melanie / fetch-for-alfred.js
0 likes
0 forks
1 files
Last active
1 | function fetch(url, useJson = true) { |
2 | const queryURL = $.NSURL.URLWithString(url); |
3 | const requestData = $.NSData.dataWithContentsOfURL(queryURL); |
4 | const requestString = $.NSString.alloc.initWithDataEncoding( |
5 | requestData, |
6 | $.NSUTF8StringEncoding, |
7 | ).js; |
8 | if (useJson) { |
9 | return JSON.parse(requestString); |
10 | } else { |
melanie / audio-cast.php
0 likes
0 forks
1 files
Last active
1 | <?php |
2 | |
3 | $YOUR_NAME = 'Melanie'; |
4 | $WEBSITE_PATH = 'http://ds423/audio-cast'; |
5 | |
6 | $audioDirectory = '.'; |
7 | |
8 | $audioFiles = glob($audioDirectory . '/*.{mp3,m4a}', GLOB_BRACE); |
9 | usort($audioFiles, function ($a, $b) { |
10 | return filemtime($b) - filemtime($a); |
melanie / no-masters.md
0 likes
0 forks
1 files
Last active
Make Git always use main
as default branch
Git 2.28.0
git config --global init.defaultBranch main
Pre-Git 2.28.0
melanie / verify-commits.md
0 likes
0 forks
1 files
Last active
How to Verify Your Commits
Anyone can be anyone when it comes to commits. For example, here is a commit where ""Linus Torvalds"" deletes Linux. I put this document together for myself a while back, but I thought I would share it with other people who want a straightforward guide to setting up commit signing with GPG.
Instructions
- Install gpg
brew install gnupg2
(orsudo apt-get install gnupg2
, etc) - Generate the key with
gpg --full-generate-key
(the default type is probably fine) - Make sure it is at least
4096
bits - Make sure you use your Github no-reply email or an email provided to your Github account.
melanie / sf-jury-duty-widget.js
0 likes
0 forks
1 files
Last active
1 | // Variables used by Scriptable. |
2 | // These must be at the very top of the file. Do not edit. |
3 | // icon-color: deep-blue; icon-glyph: theater-masks; |
4 | |
5 | // Your reporting group number: |
6 | const GROUP_NUMBER = 69 |
7 | |
8 | const PAGE = |
9 | 'https://www.sfsuperiorcourt.org/divisions/jury-services/jury-reporting' |
10 | const REPORTING = 'REPORTING' |
Newer
Older