%w{foo bar baz}
#=> ["foo", "bar", "baz"]
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 | |
function retry { | |
local n=0 | |
local max="$1"; shift | |
local cmd="$*" | |
until $cmd; do | |
if [ "$((++n))" -lt "$max" ]; then | |
echo "Retrying in $((n*2)) seconds..." |
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
[defaults] | |
forks = 20 | |
inventory = ./hosts.yml | |
# Allow displaying and gathering custom stats | |
show_custom_stats = True | |
callback_whitelist = profile_tasks | |
# Speed up fact gathering | |
# Don't gather facts on each role (can be overwritten in playbooks) |
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
scriptencoding utf-8 | |
""" Basics | |
let g:mapleader=' ' | |
""" Tabs #tabs | |
" - Two spaces wide | |
set tabstop=2 | |
set softtabstop=2 | |
" - Expand them all |
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
class Fyre | |
def initialize(klass) | |
@klass = klass | |
end | |
def call(method, *args) | |
method = method.to_sym | |
if method == :help | |
help | |
else |
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
#cloud-config | |
users: | |
- name: mh | |
groups: ['sshlogin'] | |
shell: /bin/bash | |
sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
ssh_authorized_keys: | |
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILRFlkyW0MXxYjA1HUzJ18nlTLtXOHKV0rVJD/46v7Sb tera2023 | |
# This will not work if there's no internet connectivity | |
#ssh_import_id: |
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
# Step 0: Convert the Certificate to PEM format | |
$ openssl x509 -inform der -in certificate.cer -out certificate.pem | |
# Step 0.5: Make sure there is only 1 Certificate in the File | |
$ grep 'BEGIN.* CERTIFICATE' certificate.pem | wc -l # should output `1` | |
# Step 1: Verify it's the correct Certificate | |
$ openssl x509 -noout -fingerprint -in certificate.pem | |
# Step 2: Copy the File to /etc/ssl/certs |
Aperture Sweetspots in regard to Sharpness.
Lens | foc. len | Sweetspot |
---|---|---|
Canon EF 50mm f/1.4 USM | 50mm | 5.6 |
Canon EF 24-105mm f/4L IS USM | 24mm | 4.0 |
Canon EF 24-105mm f/4L IS USM | 105mm | 8.0 |
Canon EF 70-200mm f/2.8L IS II USM | 70mm | 4.0 |
Canon EF 70-200mm f/2.8L IS II USM | 200mm | 2.8/8.0 |
NewerOlder