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 | |
files=("package-lock.json" ".nvmrc") | |
for file in "${files[@]}"; do | |
# The HEAD@{1} is a special notation for the commit that HEAD used to be | |
# at prior to the original reset commit (1 change ago) | |
# See more: https://git-scm.com/docs/git-reflog | |
if [[ $(git diff HEAD@{1}..HEAD@{0} -- "${file}" | wc -l) -gt 0 ]]; then | |
echo |
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
const express = require('express') | |
const mime = require('mime') | |
const fs = require('fs') | |
const server = express() | |
server.get(/\.(js|css)$/, (req, res, next) => { | |
if (req.header('Accept-Encoding').includes('br')) { | |
if (fs.existsSync(`${config.path}${req.url}.br`)) { | |
const type = mime.lookup(req.path) |
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
# | |
# Generated automatically by ubios-udapi-server | |
# | |
iface = ppp0 | |
provider spdyn.de { | |
hostname = "your-hostname" | |
username = "your-email" # the same as your web login | |
password = "your-password" # the same as your web login, no update-token | |
checkip-server = "checkip.spdyn.de" | |
checkip-path = "/" |
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
alias: Awtrix Uhr | |
description: "" | |
trigger: | |
- platform: time_pattern | |
minutes: /1 | |
condition: [] | |
action: | |
- if: | |
- condition: numeric_state | |
entity_id: sensor.tesla_battery |
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
||video-ak.cdn.spotify.com.splitter-eip.akadns.net^ |