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/sh /etc/rc.common | |
# chmod +x /etc/init.d/inadyn | |
# /etc/init.d/inadyn enable | |
# /etc/init.d/inadyn start | |
START=50 | |
STOP=50 | |
USE_PROCD=1 |
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
[ | |
{ | |
"name": "sp84.left" | |
}, | |
[ | |
{ | |
"x": 2.5, | |
"a": 6 | |
}, | |
"Esc", |
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
interface BaseCreateWidgetParam { | |
show_level: hmUI.show_level | |
} | |
interface ImageParam extends BaseCreateWidgetParam{ | |
/** | |
* The path of the image. Reference folder-structure structure. | |
*/ | |
src: string | |
/** |
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
# Copyright (c) 2022 Meteozond | |
# The PostProcessingPlugin is released under the terms of the AGPLv3 or higher. | |
import json | |
import traceback | |
from ..Script import Script | |
class TemplateAtLayerChange(Script): |
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
open \ | |
--env ALL_PROXY="socks5://127.0.0.1:9150" \ | |
/Applications/Transmission.app | |
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
[ | |
[ | |
{ | |
"x": 0.5 | |
}, | |
"F7", | |
"F8", | |
"F9", | |
"F10", | |
"F11", |
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
[ | |
{ | |
"name": "sp84.left" | |
}, | |
[ | |
{ | |
"x": 2.25, | |
"a": 6 | |
}, | |
"Esc", |
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
from IPython.core.display import display, HTML | |
from random import randint | |
def sequence_diagram(diagram): | |
d = randint(0,1000) | |
display(HTML(f''' | |
<script src="https://bramp.github.io/js-sequence-diagrams/js/webfont.js"></script> | |
<script src="https://bramp.github.io/js-sequence-diagrams/js/snap.svg-min.js"></script> | |
<script src="https://bramp.github.io/js-sequence-diagrams/js/underscore-min.js"></script> | |
<script src="https://bramp.github.io/js-sequence-diagrams/js/sequence-diagram-min.js"></script> | |
<div id="diagram{d}"></div> |
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
# on | |
curl -X PUT | |
--data '{"characteristics":[{"aid": 6, "iid":10, "value": 1}]}' \ | |
--header "authorization:031-45-154" \ | |
--header "Content-Type:Application/json" \ | |
http://localhost:53102/characteristics | |
# off | |
curl -X PUT | |
--data '{"characteristics":[{"aid": 6, "iid": 10, "value": 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
docker run --detach \ | |
--name motion \ | |
--restart unless-stopped \ | |
--privileged \ | |
-v /dev:/dev \ | |
-v /etc/motion:/usr/local/etc/motion \ | |
-v /var/lib/motion/var/lib/motion \ | |
-p 8001:8001 \ | |
-p 8002:8002 \ | |
motionproject/motion:latest \ |
NewerOlder