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 bash | |
# Usage: ./no_automount My\ Disk | |
NAME=$1 | |
if [ -z "$NAME" ] ; then | |
echo "Usage: no_automount {Disk Name}" | |
exit 1 | |
fi | |
FSTAB=/etc/fstab |
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
-- | |
-- For each album, add a hierarchical keyword of the format | |
-- "PhotosExport>folder1>folder2>album" to each photo. | |
-- | |
-- Copyright 2019 Rob Allen. | |
-- License: MIT - https://akrabat.com/license/mit/ | |
-- | |
-- Variables to control how many albums to process per run | |
-- change appropriately per run if you need to do in batches |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Base box: https://github.com/akrabat/packer-templates | |
Vagrant.configure("2") do |config| | |
config.vm.box = "19ft/windows2016" | |
config.vm.guest = :windows | |
config.vm.boot_timeout = 600 |
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 bash | |
set -o nounset | |
# Recursively call `php -l` over the specified directories/files | |
if [ -z "$1" ] ; then | |
printf 'Usage: %s <directory-or-file> ...\n' "$(basename "$0")" | |
exit 1 | |
fi |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/focal64" | |
# Shared ports | |
# config.vm.network "forwarded_port", host:8888, guest: 80 | |
# config.vm.network "forwarded_port", host:3307, guest: 3306 | |
# Mount shared folder using NFS | |
# config.vm.synced_folder ".", "/vagrant", |
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
# To run: | |
# | |
# docker build -t rst2pdfdev . | |
# docker run --rm -v $(pwd)/rst2pdf:/rst2pdf -it rst2pdfdev bash | |
# | |
# Now, in the bash prompt: | |
# | |
# pip3 install --upgrade setuptools | |
# pip3 install pytest | |
# pip3 install -c requirements.txt -e .[tests,sphinx,images,svgsupport,aafiguresupport,mathsupport,rawhtmlsupport] |
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
<?php | |
// All file paths relative to root | |
chdir(dirname(__DIR__)); | |
require "vendor/autoload.php"; | |
$settings = ['foo' => 'FOO', 'bar' => 'BAR']; | |
$app = new \Slim\App($settings); | |
// Set some things into the container |
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
--[[ | |
Does "str" start with "start"? | |
]] | |
local function starts_with(str, start) | |
return str:sub(1, #start) == start | |
end | |
--[[ | |
Get the item with a getName() of 'name' from the table 'collection' |
NewerOlder