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
@startuml | |
' uncomment the line below if you're using computer with a retina display | |
' skinparam dpi 300 | |
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
' we use bold for primary key | |
' green color for unique | |
' and underscore for not_null | |
!define primary_key(x) <b>x</b> | |
!define unique(x) <color:green>x</color> | |
!define not_null(x) <u>x</u> |
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
@echo OFF | |
REM | |
REM WRAPPER FOR WINDOWS INCLUDING THE PYTHON PATH FROM KICAD ITSELF | |
REM | |
REM GIT: [email protected]:df5b6a1462d3052a42dbaa0e35a5b952.git | |
REM URL: https://gist.github.com/df5b6a1462d3052a42dbaa0e35a5b952 | |
REM | |
PATH="c:\Program Files\KiCad\bin";%PATH% | |
echo %~dp0 |
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 /cygdrive/c/Program Files/FreeCAD 0.21/bin/python | |
#!/usr/bin/env /cygdrive/c/Program Files/FreeCAD 0.20/bin/python | |
#!/usr/bin/env python3 | |
#!/usr/bin/env /cygdrive/c/Program Files/FreeCAD 0.20/bin/FreeCAD | |
#!/usr/bin/env /cygdrive/c/Program Files/FreeCAD 0.20/bin/FreeCADCmd | |
#!/usr/bin/freecad | |
#!/usr/bin/python | |
# (Options above for reminder, easy exchange of lines to adapt to local platform). | |
# /!\ Launch this script using the python provided/used by FreeCAD | |
# (Select/add the appropriate line above) |
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 class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation | Welcome</title> | |
<!-- <link rel="stylesheet" href="css/foundation.css" /> --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.7.3/css/foundation.min.css" integrity="sha512-2meDMHyoDRV8O0gr5Diq32ch+6QqI9Af9Km4eFwgxZg356CbUI4S30C3zuUetkNAN4Bn+17y9OgxoQ3HnQ648w==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | |
</head> | |
<body> |
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
blueprint: | |
name: Motion-activated light scene with optional ambient scene with sun elevation sensor | |
description: Turn on a light scene when motion is detected and the sun is below given threshold. Four different scenes can be defined depending on time of day. | |
domain: automation | |
source_url: https://gist.github.com/Martinnygaard/7645dcee2ca03d18c7a9523aa592605b | |
input: | |
motion_entity: | |
name: Motion Sensor | |
description: Choose which motion sensor to use. If multiple motion sensors should trigger this automation, then group them in a template sensor or regular group. | |
selector: |
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 ISAKMP (handling of security associations) | |
iptables -A INPUT -p udp --dport 500 --j ACCEPT | |
# for NAT-T (handling of IPsec between natted devices) | |
iptables -A INPUT -p udp --dport 4500 --j ACCEPT | |
# for ESP payload (the encrypted data packets) | |
iptables -A INPUT -p esp -j ACCEPT | |
# for the routing of packets on the server | |
iptables -t nat -A POSTROUTING -j SNAT --to-source %IP% -o eth0 | |
# internet access | |
iptables -t nat -A POSTROUTING -s 10.0.42.0/24 -o eth0 -m policy --dir out --pol ipsec -j ACCEPT |
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
--- | |
blueprint: | |
name: Renew Let's Encrypt Certificate | |
description: Renew Certificate when due date is below given value | |
domain: automation | |
input: | |
cert_expiry_sensor: | |
name: Certificate Expiry Sensor | |
description: "Sensor from the Certificate Expiry Integration (https://www.home-assistant.io/integrations/cert_expiry)" | |
selector: |
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
-- see if the file exists | |
function file_exists(file) | |
local f = io.open(file, "rb") | |
if f then f:close() end | |
return f ~= nil | |
end | |
function escape_shell(s) | |
-- From https://github.com/ncopa/lua-shell/blob/master/shell.lua | |
if s:match("[^A-Za-z0-9_/:=-]") then |
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
@ECHO OFF | |
setlocal enabledelayedexpansion | |
set "STM32CUBEIDE=" | |
for /d /r "C:\ST" %%d in ("STM32CubeIDE_*") do ( | |
if not defined STM32CUBEIDE ( | |
set "STM32CUBEIDE=%%~fd" | |
) else ( | |
for /f "tokens=2 delims=_." %%a in ("%%~nd") do ( | |
for /f "tokens=2 delims=_." %%b in ("!STM32CUBEIDE:_= !") do ( |
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
blueprint: | |
name: Bathroom Humidity Exhaust Fan | |
description: | | |
# 🚿 Bathroom Humidity Exhaust Fan | |
**Version: 2.6** | |
Step into the future of freshness - customize it your way and experience the convenience of automated humidity control! 🌿🚿 | |
OlderNewer