Like Menlo but it has a dotted zero a slightly nicer kerning and spacing. Menlo refined if you like.
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 ruby | |
## | |
# Runs rubocop on just the modified and new files in a repoistory. Handy for | |
# checking your compliance before you commit. It only runs against files that | |
# end in .rb. Maybe it should do more than that? | |
# | |
# Easy to run. In a dirty working directory: | |
# | |
# breathalyzer |
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
######## | |
# My ~/.rubocop.yml file | |
# | |
# Rubocop: https://github.com/bbatsov/rubocop#installation | |
MethodLength: | |
Enabled: false | |
LineLength: | |
Max: 160 |
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
○ → codesign -dvvv /Applications/Google\ Chrome.app | |
Executable=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome | |
Identifier=com.google.Chrome | |
Format=bundle with Mach-O thin (i386) | |
CodeDirectory v=20100 size=186 flags=0x0(none) hashes=3+3 location=embedded | |
Hash type=sha1 size=20 | |
CDHash=a8d3a44cc2a7957e8d9cd9c6f6eb9124a7e4a9fd | |
Signature size=8507 | |
Authority=Developer ID Application: Google Inc. | |
Authority=Developer ID Certification Authority |
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
module AuthHelper | |
def http_login | |
user = 'username' | |
pw = 'password' | |
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user,pw) | |
end | |
end | |
module AuthRequestHelper | |
# |
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
❯ brew list --versions | |
adns 1.5.1 | |
aom 1.0.0 | |
autoconf 2.69 | |
awscli 1.16.200 | |
bash-completion 1.3_3 | |
bat 0.11.0_1 | |
cairo 1.16.0_2 | |
exiftool 11.57 | |
ffmpeg HEAD-2d900d8_1 |
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/sh | |
# Usage: | |
# | |
# cd ~/src/some-bitbucket-repo | |
# ~/bin/bitbucket2github.sh | |
# | |
# The script assumes the name of the directory is the name | |
# of the repository that you want to use on github.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
#!/usr/bin/env ruby | |
# ***USE*** | |
# Drop this file into the folder where you have Fractal-Bot storing your | |
# backups. Name it whatever you like. Run it from time to time and it'll | |
# sort your backups into sub-folders based on file prefixes. | |
# | |
# If you're on a Mac you can use this code as a Folder Automation action and | |
# it should work just fine and run every time a new file is created in your | |
# backup folder. |
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 | |
# Returns the count of Fargate content in each ECS cluster in your account+region. | |
aws ecs list-clusters 2>/dev/null | jq -c '.clusterArns[]' | while read cluster; do | |
cluster="${cluster%\"}" | |
cluster="${cluster#\"}" | |
cname=$(basename $cluster) | |
echo "Checking: $cname" | |
aws ecs list-services --cluster $cname --launch-type FARGATE 2>/dev/null | jq '.serviceArns | length' |
These are mostly my rough notes on the process I followed to migrate my NightScout site from Heroku to Render.
They have not been rigorously tested or attempted more than the one time I migrated.
I'm using NightScout with a Dexcom setup. I have no idea if these instructions will work for any other CGM setup.