Date: 2016-10-04 Version: 1.2
Author: [email protected]
This is my short documentation on how to install RancherOS on FreeNAS.
Versions used:
- RancherOS v.0.6.1
- FreeNAS 9.10-stable
#!/usr/sbin/dtrace -s | |
#pragma D option quiet | |
#pragma D option defaultargs | |
#pragma D option switchrate=10hz | |
#pragma D option dynvarsize=4m | |
#pragma D option cleanrate=30hz | |
dtrace:::BEGIN | |
{ |
-- A global variable for the Hyper Mode | |
k = hs.hotkey.modal.new({}, "F17") | |
-- Trigger existing hyper key shortcuts | |
k:bind({}, 'm', nil, function() hs.eventtap.keyStroke({"cmd","alt","shift","ctrl"}, 'm') end) | |
-- OR build your own | |
launch = function(appname) |
Date: 2016-10-04 Version: 1.2
Author: [email protected]
This is my short documentation on how to install RancherOS on FreeNAS.
Versions used:
- RancherOS v.0.6.1
"use strict"; | |
// Registering cleanup callback before requiring flightplan. | |
process.on("SIGINT", interruptedCleanup); | |
const util = require("util"), | |
moment = require("moment"), | |
_ = require("lodash"), | |
plan = require("flightplan"), | |
request = require("request-promise"); |
To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn
plus some key.
Important: In the instructions below, "Press X+Y+Z
" means press and hold key X
, press and hold key Y
, press and hold key Z
in that order, and then release all three.
As an example, to bind Fn+PgUp
to the play/pause media function:
#!/bin/bash -e | |
BOARD=e300 | |
if [ ! $(dpkg-query --show wireguard) ]; then | |
tag=$(curl "https://api.github.com/repos/Lochnair/vyatta-wireguard/releases" | jq -r '.[0].tag_name') | |
deb_url="https://github.com/Lochnair/vyatta-wireguard/releases/download/$tag/wireguard-$BOARD-$tag-1.deb" | |
curl -L -o "/tmp/wireguard-$BOARD-$tag.deb" "$deb_url" | |
dpkg -i "/tmp/wireguard-$BOARD-$tag.deb" | |
rm "/tmp/wireguard-$BOARD-$tag.deb" | |
source /opt/vyatta/etc/functions/script-template | |
configure |
git log --author="Linus Torvalds" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }' | |
version: "3.3" | |
services: | |
traefik: | |
image: traefik:v2.2.0 | |
container_name: traefik | |
restart: unless-stopped | |
command: | |
- --log.level=DEBUG | |
- --api |