⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,
| # I'll be doing another one for Linux, but this one will give you | |
| # a pop up notification and sound alert (using the built-in sounds for macOS) | |
| # Requires https://github.com/caarlos0/timer to be installed | |
| # Mac setup for pomo | |
| alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
| -title 'Work Timer is up! Take a Break 😊'\ | |
| -appIcon '~/Pictures/pumpkin.png'\ | |
| -sound Crystal" |
| #!/bin/bash | |
| # This script is based on https://unix.stackexchange.com/revisions/480191/9. | |
| # Recommended SIZE setting for different drives: | |
| # (SATA) SSD: 1024 | |
| # (ANY) HDD: 256 | |
| # (High End NVME) SSD: 4096 | |
| # (Low-Mid End NVME) SSD: 1024 |
| #!/bin/bash | |
| infile="TestClipTwoMin.mp4" | |
| datafile="TestClipTwoMinData.csv" | |
| crfs=("18" "19" "20" "21" "22" "23" "24" "25" "26" "27") | |
| presets=("ultrafast" "superfast" "veryfast" "faster" "fast" "medium" "slow" "slower" "veryslow") | |
| echo 'CRF,Preset,Time (Secs),Size (MB)' >> "$datafile" |
| > cd /Applications/VMware Fusion.app/Contents/Library/VMware OVF Tool | |
| > ./ovftool --acceptAllEulas /Users/marco/Documents/Virtual\ Machines.localized/Windows\ 8.1\ x64.vmwarevm/Windows\ 8.1\ x64.vmx /Users/marco/Desktop/Win81.ova |
| - name: wait_for http | |
| command: "curl --silent {{ url }}" | |
| register: result | |
| until: result.stdout.find("200 OK") != -1 | |
| retries: 60 | |
| delay: 1 | |
| changed_when: false |
Here are straight-forward instructions to setting up a bunch of different software on FreeNAS. If you make a terrible error, just throw up another plugin sandbox and repeat.
| #!/bin/bash | |
| curl -u YOUR_ACCESS_TOKEN: \ | |
| -X POST https://api.pushbullet.com/v2/pushes \ | |
| --header 'Content-Type: application/json' \ | |
| --data-binary "{\"type\":\"note\",\"title\":\"Downloaded\",\"body\":\"$TR_TORRENT_NAME: $TR_TIME_LOCALTIME\"}" | |
| # | |
| # Get YOUR_ACCESS_TOKEN from your account page at https://www.pushbullet.com/account | |
| # |
| #!/usr/bin/env python | |
| """hover.py: Provides dynamic DNS functionality for Hover.com using their unofficial API. | |
| This script is based off one by Dan Krause: https://gist.github.com/dankrause/5585907""" | |
| __author__ = "Andrew Barilla" | |
| __credits__ = ["Andrew Barilla", "Dan Krause"] | |
| __license__ = "GPL" | |
| __version__ = "1.0" | |
| __maintainer__ = "Andrew Barilla" |
I started using FreeNAS in August 2013. It is fantastic piece of software and I have been really impressed by the upgrades just in the few months I've been using it. It looks like they recently went to a plugin system as of version 9 to make installing software easier for end users. I've ran into several issues related to plugins and user + group permissions so I decided to just use the available FreeBSD port system. After fiddling for a few days (now turned into months) I believe I have created something helpful for the community and anyone interested in picking up the port system. The sandbox nature of FreeNAS's jail system is especially helpful for playing around without having any consequence on your core system.
Here are straight-forward instructions to setting up a bunch of different software on FreeNAS. If you make a terrible error, just throw up another plugin sandbox and repeat.