mongo >= 6: init-mongo.js + MONGO_INITDB_DATABASE in .env-mongo
mongo < 6: init-mongo.sh + no MONGO_INITDB_DATABASE in .env-mongo
.env:
MONGO_USER=user
MONGO_PASSWORD=userpasswd| """Aubess / tuya TS0001 Wall Switches.""" | |
| # I bought some Aubess (Tuya TS0001 _TZ3000_46t1rvdu) devices on Ali | |
| # The signature is recognized as a Tuya TS0001 device with power metering support, but it doesn report any values. | |
| # This custom quirk makes it a simple switch device with the option to configure the power on behavior | |
| from zigpy.profiles import zgp, zha | |
| from zigpy.zcl.clusters.general import ( | |
| Basic, | |
| GreenPowerProxy, |
| """tuya TS000F Wall Switches.""" | |
| # This quirk scales both the current and summation readout, and it changes the device from a light into a switch | |
| # Note: this quirk is similar to the offical TS000x quirks, except that this device has quite a different signature. | |
| # That includes a unknown cluster ID 0x1888 that I filtered out. | |
| from zigpy.profiles import zgp, zha | |
| from zigpy.zcl.clusters.general import ( | |
| Basic, | |
| GreenPowerProxy, | |
| Groups, |
| pipeline { | |
| agent { label "docker" } | |
| stages { | |
| stage("test sidecar") { | |
| steps{ | |
| script { | |
| withDockerNetwork { n -> | |
| // we could use Image.withRun() instead of Image.run(), | |
| // and get rid of try/catch/finally blocks | |
| // It's prefferable way, but it doesn't remove volumes after containers |
My Synology DS218+ runs with a single SSD disk that has an operating temperature range of 0–70 °C, which is common for SSDs. Synology, however, has a default shutdown temperature of 61 °C, probably due to HDDs and some lazy programming.
I'm a very light user of NAS – all I want is a network attached storage and silence. My DS218+ has one 2 TB SSD disk in it and I've changed the system fan for a quieter / slower one.
Everything runs fine but about once in a month, I get this notification:
[Synology DS218+]Synology shut down due to disk overheating. >
| btrfs fi show -d | |
| (/dev/mapper/vg1000-lv) | |
| syno_poweroff_task -d | |
| (or: umount /volume1) | |
| (or2: umount /volume1 -f -k) | |
| Check to see if all us unmounted: | |
| df -h |
docker exec -it gitlab gitlab-backup restore BACKUP=1614390925_2021_02_27_13.9.1-ee
docker exec -it gitlab gitlab-backup create
docker exec -it gitlab gitlab-ctl backup-etc
docker exec -it gitlab update-permissions
docker exec -it gitlab gitlab-ctl reconfigure
docker exec -it gitlab gitlab-rake db:migrate| package lan.dk.podcastserver.utils.multipart; | |
| import lan.dk.podcastserver.utils.MimeTypeUtils; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import javax.servlet.ServletOutputStream; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletResponse; |