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 | |
BASE_DIR="$HOME/git/cad" | |
# Check if a repository name was provided | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <repository-name>" | |
exit 1 | |
fi |
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
"""Config flow to configure the Meteo-Swiss integration.""" | |
import logging | |
import re | |
from typing import Any | |
import voluptuous as vol | |
from hamsclientfork import StationType, meteoSwissClient | |
from homeassistant import config_entries | |
from homeassistant.helpers import issue_registry as ir | |
from homeassistant.helpers.issue_registry import IssueSeverity |
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 | |
echo "Now Updating all Docker Containers" | |
export TZ=UTC # force all timestamps to be in UTC (+00:00 / Z) | |
printf -v start_date_epoch '%(%s)T' | |
printf -v start_date_iso8601 '%(%Y-%m-%dT%H:%M:%S+00:00)T' "$start_date_epoch" | |
# List of all folders that contain a docker compose | |
declare -a StringArray=("auth-stack" "bitwarden" "languagetool" "media-stack" "monitoring" "" "mosquitto" "portainer" "dnsmasq" "socks5" "nginx-proxy-manager" "filebrowser") | |
# Iterate the string array using for loop |
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
.nowPlayingPage { | |
position: relative; | |
} | |
@media only screen and (min-width: 1080px) { | |
.nowPlayingPageImageContainer { | |
width: 57%; | |
} | |
.nowPlayingInfoControls { | |
justify-content: start !important; |
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 | |
echo "Now Updating all Docker Containers" | |
export TZ=UTC # force all timestamps to be in UTC (+00:00 / Z) | |
printf -v start_date_epoch '%(%s)T' | |
printf -v start_date_iso8601 '%(%Y-%m-%dT%H:%M:%S+00:00)T' "$start_date_epoch" | |
# Declare an array of string with type | |
declare -a StringArray=("auth-stack" "bitwarden" "filerun" "languagetool" "media-stack" "monitoring" ) | |
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
Computer Information: | |
Manufacturer: Micro-Star International Co., Ltd. | |
Model: X370 KRAIT GAMING (MS-7A33) | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 7 1700 Eight-Core Processor | |
CPU Family: 0x17 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> | |
<script src="https://cdn.maptiler.com/mapbox-gl-js/v1.5.1/mapbox-gl.js"></script> | |
<link href="https://cdn.maptiler.com/mapbox-gl-js/v1.5.1/mapbox-gl.css" rel="stylesheet" /> | |
<style> | |
#map | |
{ | |
position: absolute; |
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
ldap: | |
## The LDAP implementation, this affects elements like the attribute utilised for resetting a password. | |
## Acceptable options are as follows: | |
## - 'activedirectory' - For Microsoft Active Directory. | |
## - 'custom' - For custom specifications of attributes and filters. | |
## This currently defaults to 'custom' to maintain existing behaviour. | |
## | |
## Depending on the option here certain other values in this section have a default value, notably all of the | |
## attribute mappings have a default value that this config overrides, you can read more about these default values | |
## at https://www.authelia.com/docs/configuration/authentication/ldap.html#defaults |
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 getMapUrl(tile, zoom) { | |
var bound = Math.pow(2, zoom); | |
var x = tile.x; | |
var y = tile.y; | |
// Don't repeat across y-axis (vertically). | |
if (y < 0 || y >= bound) { | |
return null; | |
} |
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 on_fullscreen_change(name, value) | |
--[[ | |
xrandr | grep "HDMI-A-0 connected primary 1920x1080+0+0" && echo "true" || echo "false" | |
xrandr | grep "HDMI-A-0 connected primary 3840x2160+0+0" && echo "true" || echo "false" | |
--]] | |
if value == true then | |
local xrandr_response = os.capture('/usr/bin/xrandr | grep "HDMI-A-0 connected primary 1920x1080+0+0"') | |
if xrandr_response == "HDMI-A-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 1600mm x 900mm" then | |
os.capture('xrandr --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --off --output HDMI-A-0 --primary --mode 3840x2160 --pos 0x0 --rotate normal') | |
end |
NewerOlder