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 | |
| dockerid="" | |
| # disable ping | |
| sudo iptables -A FW_INPUT_DROP -i $(frcc | jq -r '.routing.global.default.viaIntf') -p icmp -j FW_DROP | |
| # start docker | |
| cd /homebridge | |
| sudo systemctl enable docker | |
| sudo docker start $dockerid |
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 2.7 | |
| # https://gist.github.com/mbierman/dd45821b53d5d22147cef217f0c0fe95 | |
| # Variables | |
| update="false" | |
| reboot="false" | |
| hostname=$(hostname) | |
| docker="/.dockerenv" |
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 sh | |
| cat config.json | sed \ | |
| -e 's|"username.*|"username":"*****",|g' \ | |
| -e 's|"pin.*|"pin": "*****"|g' \ | |
| -e 's|"IFTTTkey.*|"IFTTTkey:"*****",|g' \ | |
| -e 's|"IFTTTservice.*|"IFTTTservice: "*****",|g' \ | |
| -e 's|"ip": "192.*|"ip": "*****",|g' \ | |
| -e 's|"mac.*|"mac": "*****",|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
| @import url('https://fonts.googleapis.com/css2?family=Muli:wght@700&display=swap'); | |
| .plane, div.Settings { | |
| color: black; | |
| z-index:100; | |
| } | |
| .Time, .Weather, .Greeting { | |
| color: white; | |
| text-shadow:3px 3px 18px black; |
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
| tell application "System Events" to tell application process "Finder" | |
| set frontmost to true | |
| choose from list {"Michael’s iPhone", "Michael’s iPad"} with title "What devices do you want to backup?" with multiple selections allowed | |
| set devices to result | |
| repeat with device in devices | |
| -- display alert "looking for: " & device | |
| set notificationTitle to "iOS Backup" | |
| set notificationSubTitle to "Looking for" |
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/sh | |
| # token=$(curl -s -X POST "http://pigpen.lan:8581/api/auth/login" -H "accept: */*" -H "Content-Type: application/json" -d '{"username":"admin","password":"^","otp":"string"}' | jq '.access_token' | | |
| token=$(curl -s -X POST "http://pigpen.lan:8581/api/auth/login" -H "accept: */*" -H "Content-Type: application/json" -d '{"username":"admin","password":"","otp":"string"}' | grep -e 'access_token' | |
| basedir=/homebridge/plugins/plugins_ | |
| today=$basedir$(date "+%m.%d.%Y").txt |
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 | |
| BASEDIR=$(dirname "$0") | |
| APIKEY="$(cat $BASEDIR/neuriodata.txt | grep API | cut -f2 -d "=" )" | |
| POWER=$(curl -s -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic $APIKEY=" -H 'Pragma: no-cache' http://neurio.lan/current-sample | jq '.channels[1].p_W') | |
| echo -e "Your home is currently using: $POWER w \n\n" |
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 | |
| echo -e $(date) - "Start" >> /tmp/local.brew.out | |
| echo "updating brew..." | |
| brew update | |
| echo "outdated brew..." | |
| brew outdated | |
| echo "upgrading brew..." | |
| brew upgrade --cask | |
| echo "cleaning up brew..." |
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 | |
| ############################################################### | |
| ## ChangeIP.com bash update script | |
| ############################################################### | |
| ## Written 3/18/09 by Tom Rinker, released to the Public Domain | |
| ## Re-write 09/15/2017 by Michael Bierman | |
| ## I replaced wget with curl so it can work on all macs. | |
| ## This works with no-ip.com | |
| ############################################################### |
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
| function myArchive(){ | |
| Logger.log("Archieving..."); | |
| // moves a row from a sheet to another when a magic value is entered in a column | |
| // adjust the following variables to fit your needs | |
| // see https://productforums.google.com/d/topic/docs/ehoCZjFPBao/discussion | |
| var target = 'Data'; |