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 | |
#SET THE FOLLOWING | |
HOSTNAME=xxx.com | |
SSH_PORT=27017 | |
WIREGUARD_PORT=27017 | |
#IF IT DOES NOT WORK, AT LEAST ON UBUNTU INSTALL, bind-utils to get the host command |
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
******************************************************************************* | |
* * | |
* Exception Analysis * | |
* * | |
******************************************************************************* | |
*** WARNING: Unable to verify checksum for WwiseLibPCx64P.dll | |
*** WARNING: Unable to verify checksum for libcrypto-1_1-x64.dll | |
*** WARNING: Unable to verify checksum for CoherentUIGT.dll | |
*** WARNING: Unable to verify checksum for WTF.dll |
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
// | |
// Get a date object for the current time | |
var d = new Date(); | |
// Set it to one month ago | |
d.setMonth(d.getMonth() - 1); | |
d.setDate(1) | |
// Zero the time component | |
d.setHours(0, 0, 0, 0); | |
// Get the time value in milliseconds and convert to seconds |
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
// | |
// Get a date object for the current time | |
var d = new Date(); | |
// Set it to one month ago | |
d.setMonth(d.getMonth() - 1); | |
d.setDate(1) | |
// Zero the time component | |
d.setHours(0, 0, 0, 0); | |
// Get the time value in milliseconds and convert to seconds |
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
Xiaomi Miot Auto是以默认15秒轮询的方式运行。 | |
所以不要用Xiaomi Miot Auto实时触发事件,Node-RED中,最好也用轮询来开始你的逻辑。 | |
对于实时触发事件,我建议放在米家做,比home assitant效果好很多 | |
作者给出了详细的解释,非常合理 | |
https://github.com/al-one/hass-xiaomi-miot/issues/100#issuecomment-909031222 |
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
::written by [email protected] 2023 Sep. | |
:: | |
::must run as administrator | |
@chcp 437 >nul 2>&1 | |
:: Add value for UAC shield icon: | |
REG ADD "HKCR\Microsoft.PowerShellScript.1\Shell\runas" /v HasLUAShield /t REG_SZ /d "" /f | |
:: Add value to create context menu item: | |
REG ADD "HKCR\Microsoft.PowerShellScript.1\Shell\runas\command" /ve /t REG_EXPAND_SZ /d "\"%%SYSTEMROOT%%\System32\WindowsPowerShell\v1.0\powershell.exe\" -executionpolicy bypass -nologo -file \"%%1\"" /f |
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
#written by [email protected] 2023 Sep. | |
# | |
# Set-WinUILanguageOverride -Language en-US | |
# pop up msg box for users | |
#$PSScriptRoot | |
# get script path | |
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | |
Write-Host "script dir=$scriptPath" | |
Add-Type -AssemblyName System.Windows.Forms |
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
set hour=%time:~0,2% | |
if "%hour:~0,1%" == " " set hour=0%hour:~1,1% | |
echo hour=%hour% | |
set min=%time:~3,2% | |
if "%min:~0,1%" == " " set min=0%min:~1,1% | |
echo min=%min% | |
set secs=%time:~6,2% | |
if "%secs:~0,1%" == " " set secs=0%secs:~1,1% | |
echo secs=%secs% |
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
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<style type="text/css"> | |
.algolia-autocomplete { | |
width: 80%; | |
max-width: 700px; | |
} |
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
// | |
// main.cpp | |
// fdouble | |
// | |
// Created by wshuai on 2021/12/29. | |
// | |
#include <stdio.h> | |
void * store[3]; |
NewerOlder