Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fortes
fortes / mount-disks.sh
Last active January 27, 2023 16:03
Mounting a pool of encrypted disks with rclone and mergerfs. See http://fortes.com/2018/rclone-and-mergerfs for details.
#!/usr/bin/env bash
set -euf -o pipefail
# Removable drive names go here, separated by spaces
DRIVE_NAMES=(drive1 drive2 drive3)
# Removable and cloud drives are mounted in this local directory
DRIVE_MOUNT_ROOT="/media"
# Name of folder for root of encrypted storage on drives
ENCRYPTED_DIR_NAME="encrypted"
@fortes
fortes / keybase.md
Created September 28, 2017 16:10
keybase.md

Keybase proof

I hereby claim:

  • I am fortes on github.
  • I am fortes (https://keybase.io/fortes) on keybase.
  • I have a public key ASCGns_HhwNFIvxGrS9yJojS_67qYGFJlp9Cx-rIOGGuGwo

To claim this, I am signing this object:

@fortes
fortes / .gitignore
Last active June 20, 2017 16:24
metalsmith-jstransformer watch bug repro
build
node_modules
@fortes
fortes / Cakefile
Created April 12, 2013 21:59
Make sure packages are installed in your Cakefile
fs = require 'fs'
try
# Make sure required modules have been installed
pkg = JSON.parse fs.readFileSync('package.json').toString()
for dependency of pkg['dependencies']
require dependency
catch error
console.error error.message
console.error 'Run `npm install` to install depdencies'
@fortes
fortes / Sass-exponents.sass
Created August 21, 2011 16:48 — forked from scottkellum/Sass-exponents.sass
Sassy exponents
// Sass exponent support
@function exponent($base, $exponent)
// reset value
$value: $base
// positive intergers get multiplied
@if $exponent > 1
@for $i from 2 through $exponent
$value: $value * $base
// negitive intergers get divided. A number divided by itself is 1
@if $exponent < 1
@fortes
fortes / index.html
Created February 24, 2011 06:08
HTML file for the cover
<!doctype html>
<html class="no-js no-treesaver">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,minimum-scale=1,maximum-scale=1" />
<title>Hoodgrown</title>
<link rel="stylesheet" href="style.css">
<link rel="resources" href="resources.html">
<link rel="contents" href="toc.html" />
<link rel="apple-touch-icon" href="http://www.hoodgrownonline.com/ts/Apple-Touch-Icon.png" />