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
// ==UserScript== | |
// @name Cronometer carb and calorie webhooker | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Send net carbs and calories to a webhook. | |
// @author Steven | |
// @match https://cronometer.com/ | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== |
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
#!/bin/bash | |
# | |
# Fist check if do not disturb is on. | |
# Then check if screen is off, meaning you're not using the computer at that time. | |
# If do not disturb is on and you're not using the machine, mute the volume. | |
if [[ $(/usr/bin/defaults -currentHost read ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb) -eq 1 | |
&& `echo $(/usr/sbin/ioreg -n IODisplayWrangler | grep -i IOPowerManagement | perl -pe 's/^.*DevicePowerState\"=([0-9]+).*$/\1/')/4 | bc` -eq 0 ]]; | |
then | |
osascript -e "set Volume 0" |
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() { | |
'use strict'; | |
angular | |
.module('core') | |
.directive('valdrAccessibility', valdrAccessibility); | |
/* @ngInject */ | |
function valdrAccessibility($timeout) { | |
var directive = { |