This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| services: | |
| unifi: | |
| container_name: unifi | |
| image: jacobalberty/unifi:latest | |
| volumes: | |
| - '/data/unifi/:/unifi' | |
| restart: unless-stopped | |
| networks: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #variables | |
| add=${1:-40} | |
| backuphost=192.168.0.$add | |
| user=michael | |
| basedir=/Users/$user/Documents/Applications/Firewalla/backup | |
| echo "Backing up to $backuphost" | |
| echo -n "Enter your password and press [ENTER]: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # https://gist.github.com/mbierman/6a32df2909202c373a6a39063181dc40 | |
| # v 0.4.1 | |
| BASEDIR=$(dirname $0) | |
| IFTTTKEY="$(cat $BASEDIR/IFTTT.data | grep IFTTTKEY| cut -f2 -d "=" )" | |
| EVENT="FWspeedtest" | |
| log=/data/logs/logspeed.log | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # requires: | |
| # * https://formulae.brew.sh/formula/jq#default | |
| # * https://formulae.brew.sh/formula/exiftool#default | |
| for file in "$@" | |
| do | |
| date=$(exiftool -json "$file" | jq '.[] .CreateDate' | sed -e 's| |_|g' -e 's|:|.|g' -e 's|"||g') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # v 1.2.2 | |
| dir=$(dirname "$0") | |
| IFTTTKEY="$(cat $dir/rebootdata.txt | grep IFTTTKEY | cut -f2 -d "=" )" | |
| IFTTTrigger="$(cat $dir/rebootdata.txt | grep IFTTTTrigger | cut -f2 -d "=" )" | |
| version=$(cat ~/firewalla/net2/config.json | jq '.version') | |
| version=${version:=Not Found} | |
| OS=$(lsb_release -r | cut -f2) | |
| build=$(grep -a "FIREWALLA.UPGRADECHECK.CHECK" /log/firewalla/firelog.log | tail -1 | cut -f12 -d" " | cut -c 1-8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| dir=$(dirname "$0") | |
| IFTTTKEY="$(cat $dir/rebootdata.txt | grep IFTTTKEY | cut -f2 -d "=" )" | |
| IFTTTrigger="$(cat $dir/rebootdata.txt | grep IFTTTTrigger | cut -f2 -d "=" )" | |
| echo $IFTTTrigger | |
| ONLINE=1 | |
| while [ $ONLINE -ne 0 ] | |
| do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Variables | |
| result="" | |
| count=0 | |
| log=/data/logs/lights.log | |
| private=/home/pi/.firewalla/config/post_main.d/pass.txt | |
| dir=$(dirname "$0") | |
| user=$(cat $dir/lights.txt | grep user | cut -f2 -d "=" ) | |
| baseIP=192.168.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # version 3.3.1 | |
| # https://gist.github.com/mbierman/6cf22430ca0c2ddb699ac8780ef281ef | |
| DOCKER=$(which docker) | |
| image=$1 | |
| wait=2 | |
| # Parse -f flag (must come before the image name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !/bin/bash | |
| # 3.0 | |
| # https://gist.github.com/mbierman/9ac6a35622ee5a0c631ed6f6ad74b722 | |
| # Put this script in ~/.firewalla/config/post_main.d in order to resinstall after upgrades | |
| dir=/data | |
| log=/data/logs/fw_reboot.txt | |
| if ! [ -w $log ] ; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Enter your cloudflare credentials | |
| zoneID="" | |
| ID="" | |
| APIToken="" | |
| # the DNS record | |
| name="domain" | |
| # your WAN port eg. eth0 | |
| interface=eth2 |