Skip to content

Instantly share code, notes, and snippets.

View haakonstorm's full-sized avatar

haakon storm heen haakonstorm

View GitHub Profile
@wcameronbowen
wcameronbowen / add_zerotier.sh
Last active October 5, 2020 02:22 — forked from solarmicrobe/add_zerotier.sh
Add zerotier to FreeNAS
#! /usr/bin/env sh
NETWORKS="8056c2e21c000001" # Space seperated list of networks to join, default here is the public network Earth
VERSION=1.4.6
wget http://pkg.freebsd.org/freebsd:12:x86:64/latest/All/zerotier-${VERSION}.txz -O /tmp/zerotier-${VERSION}.txz
pkg add -f /tmp/zerotier-${VERSION}.txz
echo 'zerotier_enable="YES"' >> /etc/rc.conf
service zerotier start
@pkoppstein
pkoppstein / schema.jq
Last active March 12, 2024 11:34
schema.jq
module {
"name": "schema",
"description": "JSON Schema Inference",
"version": "0.0.3.1",
"homepage": "https://gist.github.com/pkoppstein/a5abb4ebef3b0f72a6ed",
"license": "MIT",
"author": "pkoppstein at gmail dot com"
};
# NEWS:
@vitorgalvao
vitorgalvao / Get Title and URL.applescript
Last active April 3, 2024 02:25
AppleScript and JavaScript for Automation to get frontmost tab’s url and title of various browsers.
-- AppleScript --
-- This example is meant as a simple starting point to show how to get the information in the simplest available way.
-- Keep in mind that when asking for a `return` after another, only the first one will be output.
-- This method is as good as its JXA counterpart.
-- Webkit variants include "Safari", "Webkit", "Orion".
-- Specific editions are valid, including "Safari Technology Preview".
-- "Safari" Example:
tell application "Safari" to return name of front document