This file contains 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
"""Oura sleep integration.""" |
This file contains 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 selectEggs(addEgg) { | |
let blue = 23; | |
let purple = 33; | |
let red = 43; | |
if (addEgg == 'blue') blue++; | |
else if (addEgg == 'purple') purple++; | |
else if (addEgg == 'red') red++; | |
else { | |
console.log('Must select a colour: blue, purple, red'); |
This file contains 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
/** | |
* @fileoverview Utility to delete old threads from a search. | |
* This is an Apps Script code. | |
* | |
* Example of usage: | |
* Go to scripts.google.com and click 'New script'. | |
* Enable V8, as the code is written with ES6 features. | |
* Change QUERY_SEARCH to a gMail search/filter that matches | |
* the emails you want to delete. For example: | |
* 'label:coding older_than:1m' |
This file contains 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
"""Creates an Asana Tasks sensors.""" |
This file contains 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
/** | |
* Fetches utility consumption details from the Utilities email and sends it to Hassio MQTT. | |
* | |
* Apps Script on drive.google.com | |
*/ | |
/* Configuration. */ | |
/** @const {string} URL for MQTT Server API. */ | |
var MQTT_URL = 'https://your-ha-domain:port/api/services/mqtt/publish'; |
This file contains 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
/** | |
* @fileoverview Utility to delete old threads from a search. | |
* This is an Apps Script code. | |
* | |
* Example of usage: | |
* Go to scripts.google.com and click 'New script'. | |
* Enable V8, as the code is written with ES6 features. | |
* Change QUERY_SEARCH values to the gMail search filters | |
* that matches the emails you want to delete. | |
* For example: 'label:coding older_than:1m' |
This file contains 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
// Can be run without npm installation on https://npm.runkit.com/qrcode | |
const qrcode = require('qrcode'); | |
qrcode.toDataURL('WIFI:S:<SSID>;T:<WPA|WEP|>;P:<password>;;', {width: 500}, (err, url) => { | |
console.table(url); | |
}); |
This file contains 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
for filename in *; do | |
modified_date=$(date -r ${filename} "+snapshot-%Y%m%d") | |
extension="${filename#*.}" | |
mv ${filename} ${modified_date}.${extension} | |
done |
This file contains 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 | |
################################################################################ | |
# VERSION 1 | |
################################################################################ | |
# UniFi Controller SSL Certificate Import Script for Unix/Linux Systems | |
# by Steve Jenkins <http://www.stevejenkins.com/> | |
# Part of https://github.com/stevejenkins/ubnt-linux-utils/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.