This file contains hidden or 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 time | |
import board | |
import busio | |
import adafruit_ds18x20 | |
from adafruit_onewire.bus import OneWireBus | |
import microcontroller | |
ds18b20_pin = board.D2 | |
ow_bus = OneWireBus(ds18b20_pin) | |
devices = ow_bus.scan() |
This file contains hidden or 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
services: | |
traefik: | |
image: "traefik:v2.4" | |
restart: unless-stopped | |
container_name: "traefik" | |
networks: | |
default: | |
ipv4_address: 172.20.0.97 | |
ipv6_address: fc00:dead:beef::97 |
This file contains hidden or 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
service: media_player.play_media | |
target: | |
entity_id: | |
- media_player.sonos_arc | |
- media_player.symfonisk_bookshelf | |
- media_player.symfonisk_picture_frame | |
- media_player.dilna | |
data: | |
media_content_type: music | |
media_content_id: "media-source://media_source/local/bird.wav" |
This file contains hidden or 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
Starej stroj | |
====================================================================== | |
/dev/sda: | |
Timing cached reads: 7700 MB in 1.98 seconds = 3892.51 MB/sec | |
Timing buffered disk reads: 136 MB in 3.10 seconds = 43.82 MB/sec | |
root@app:/home/sh# sudo hdparm -tT /dev/sdb | |
/dev/sdb: | |
Timing cached reads: 11158 MB in 1.99 seconds = 5621.13 MB/sec | |
Timing buffered disk reads: 194 MB in 3.01 seconds = 64.54 MB/sec |
This file contains hidden or 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
root@app:/home/sh# openssl speed -evp aes-128-cbc | |
Doing aes-128-cbc for 3s on 16 size blocks: 177115900 aes-128-cbc's in 3.00s | |
Doing aes-128-cbc for 3s on 64 size blocks: 48725915 aes-128-cbc's in 3.00s | |
Doing aes-128-cbc for 3s on 256 size blocks: 12633111 aes-128-cbc's in 3.00s | |
Doing aes-128-cbc for 3s on 1024 size blocks: 3128447 aes-128-cbc's in 3.00s | |
Doing aes-128-cbc for 3s on 8192 size blocks: 393555 aes-128-cbc's in 2.99s | |
OpenSSL 1.0.2g 1 Mar 2016 | |
built on: reproducible build, date unspecified | |
options:bn(64,64) rc4(16x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx) | |
compiler: cc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_A |
This file contains hidden or 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
[{"Code": "AF", "Name": "Africa"},{"Code": "NA", "Name": "North America"},{"Code": "OC", "Name": "Oceania"},{"Code": "AN", "Name": "Antarctica"},{"Code": "AS", "Name": "Asia"},{"Code": "EU", "Name": "Europe"},{"Code": "SA", "Name": "South America"}] |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"time" | |
) | |
import "github.com/goburrow/modbus" |
This file contains hidden or 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
[ | |
{ | |
"Code":"AF", | |
"Name":"Africa" | |
}, | |
{ | |
"Code":"AN", | |
"Name":"Antarctica" | |
}, | |
{ |
This file contains hidden or 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
[ | |
{ | |
"country-name": "Afghanistan", | |
"iso2": "AF", | |
"iso3": "AFG", | |
"top-level-domain": "af", | |
"fips": "AF", | |
"iso-numeric": "004", | |
"geonameid": "1149361", | |
"e164": "93", |
This file contains hidden or 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 | |
cp -Rp /data/mailserver/log/dmarc/analogic.cz /tmp/dmarc-analogic.cz | |
cp -Rp /data/mailserver/log/dmarc/ranky.cz /tmp/dmarc-poste.io | |
cd /tmp/dmarc-analogic.cz | |
rename 's/humplik\.cz/analogic.cz/g' * | |
find . -type f -name '*' -exec bash -c 't=$(stat -c %y "$0"); sed -i -e "s/humplik\.cz/analogic.cz/g" "$0"; touch -d "$t" "$0"' {} \; | |
rm -Rf /data/mailserver-demo/log/dmarc/analogic.cz | |
mv /tmp/dmarc-analogic.cz /data/mailserver-demo/log/dmarc/analogic.cz |
NewerOlder