Skip to content

Instantly share code, notes, and snippets.

Filipe Fortes fortes

Block or report user

Report or block fortes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fortes
fortes / mount-disks.sh
Last active Feb 20, 2018
Mounting a pool of encrypted disks with rclone and mergerfs. See http://fortes.com/2018/rclone-and-mergerfs for details.
View mount-disks.sh
#!/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"
View 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 Jun 20, 2017
metalsmith-jstransformer watch bug repro
View .gitignore
build
node_modules
@fortes
fortes / Cakefile
Created Apr 12, 2013
Make sure packages are installed in your Cakefile
View 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'
View Sass-exponents.sass
// 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 Feb 24, 2011
HTML file for the cover
View index.html
<!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" />
You can’t perform that action at this time.