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
# Definuju skupinu. Tu nepoužívám přímo, ale přes FirefoxOptions. Mohu použít více různých FirefoxOptions, pak se mi to automaticky spojí do jedné skupiny, jako bych vše nacpal do jednoho FirefoxOptions. | |
class FirefoxOptionsGroup(MandatoryGroup, NamedTuple('FirefoxOptionsGroup', [('rw', bool)])): | |
def create_sequence(self, target: Target, name: NameCollection, specs: List[Spec], index: int) -> List[Tuple[NameCollection, Group, Task]]: | |
if not isinstance(target, QubeTarget): | |
raise Exception("Bad target: "+str(target)) | |
if index == 0: | |
dicts = list(map(lambda f: f.options, specs)) | |
options_len_sum = sum(map(len, dicts)) |
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
api_encryption_key: "don't expect me to publish it" | |
ota_key: "are you serious?" | |
wifi: | |
id: wifi_id | |
networks: | |
- ssid: "some wireless fiction network" | |
password: assword | |
- ssid: "some other wireless network" |
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 python:3 | |
RUN pip install PySwitchbot quart | |
RUN mkdir -p /opt/psbs | |
COPY server.py /opt/psbs | |
WORKDIR /opt/psbs | |
ENTRYPOINT hypercorn -b 0.0.0.0:8080 --log-level INFO --access-logfile - --error-logfile - server: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
target/addon.zip: docspell-addon.yaml addon.sh sample.vcf | |
# prepare | |
mkdir -p target | |
rm -rf target/unpacked | |
mkdir target/unpacked | |
# addon.sh + sample.vcf | |
cp addon.sh sample.vcf target/unpacked | |
chmod +x target/unpacked/addon.sh | |
# docspell-addon.yaml | |
cat docspell-addon.yaml | sed 's#$$VERSION#0.$(shell date +%s)#' > target/unpacked/docspell-addon.yaml |
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
import com.v6ak.HeteroMap | |
import com.v6ak.hagen.actions.* | |
import com.v6ak.hagen.automation.{AutomationBase, Change} | |
import com.v6ak.hagen.dashboards.* | |
import com.v6ak.hagen.expressions.* | |
import com.v6ak.hagen.extensions.highlights.{Highlightable, Highlightables, SimplePositiveCondition} | |
import com.v6ak.hagen.output.* | |
import com.v6ak.hagen.{BinarySensorDef, SensorDef} | |
import scala.concurrent.duration.* |
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
target/addon.zip: docspell-addon.yaml addon.sh | |
# prepare | |
mkdir -p target | |
rm -rf target/unpacked | |
mkdir target/unpacked | |
# addon.sh | |
cp addon.sh target/unpacked | |
chmod +x target/unpacked/addon.sh | |
# docspell-addon.yaml | |
cat docspell-addon.yaml | sed 's#$$VERSION#0.$(shell date +%s)#' > target/unpacked/docspell-addon.yaml |
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
fastOptJS / scalaJSLinkerConfig ~= { | |
_.withModuleKind(ModuleKind.ESModule) | |
.withModuleSplitStyle(ModuleSplitStyle.SmallModulesFor(List("com.v6ak.zbdb"))) | |
}, | |
fullOptJS / scalaJSLinkerConfig ~= { | |
_.withModuleKind(ModuleKind.CommonJSModule) | |
.withModuleSplitStyle(ModuleSplitStyle.FewestModules) | |
}, |
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 | |
# safety settings | |
set -u | |
set -e | |
set -o pipefail | |
function run { | |
version="$1" | |
if [ "$version" == "" ]; then | |
version_spec="" |
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 | |
# safety settings | |
set -u | |
set -e | |
set -o pipefail | |
function run { | |
version="$1" | |
if [ "$version" == "" ]; then | |
version_spec="" |
NewerOlder