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
- sensor: | |
- name: "Marstek Quellsignal" | |
# Generate a hate-driven differential signal for the Marstek Venus E battery storage. | |
# We hate both throwing away energy into the grid and buying energy from the grid, but we hate one more than the other. | |
# By quantifying our bad feelings we can prioritize what to do if it's hard to reach zero. | |
# The trade-off becomes mostly relevant if the power oscillates a lot and we try to tame this oscillation by calmly accepting | |
# that less countersteering is better. Or if we move the target power to a non-zero value, because we anticipate future power jumps. | |
# | |
# The storage interprets the value as the difference between it's current power output (which I don't know) and the power required by the home. | |
# So this is the meaning of several example values from the perspective of the storage: |
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 | |
NumCPU=$(grep -c ^processor /proc/cpuinfo) | |
NumJobs=$(calc -p "ceil(2*$NumCPU+1)") | |
export CONCURRENCY_LEVEL=$NumJobs | |
baseURL="https://www.kernel.org/pub/linux/kernel/v3.x/" | |
latest="$(curl -s $baseURL | sed -n 's|\(.*\)\(linux-\)\(.*\)\(\.tar\.xz<\)\(.*\)|\3|p' | sort --version-sort | tail -n1)" | |
[ ! "$latest" ] && { echo "Are we offline?" >&2; exit 1; } |
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 | |
# Bashisms are embraced here and therefore used quite heavily. | |
# | |
# This script is meant to keep some folks a bit busy, who were never invited | |
# by yourself to share your data. | |
# The idea is that you use cloud storage to store your encrypted (real) files | |
# and additionally generate some randomized junk which should be | |
# indistinguishable from the encrypted data. | |
# We now do this by encrypting the junk as well. | |
# |
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
[Nemo Action] | |
Active=true | |
Name=Optimize PNG files | |
Name[de]=PNG-Dateien optimieren | |
Comment=Reduce size of selected PNG files | |
Comment[de]=Die Dateigröße der gewählten PNG-Dateien reduzieren | |
Exec=optipng %F |
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
[Nemo Action] | |
Active=true | |
Name=Compare with Meld | |
Name[cz]=Srovnání s meld | |
Name[de]=Mit meld vergleichen | |
Name[fr]=Comparer avec meld | |
Name[nl]=Vergelijk met meld | |
Comment=Show differences between files or directories | |
Comment[cz]=Ukázat rozdíly mezi souborama a složky |
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 | |
# | |
# cachefill -- warm up the file cache and buffer of the Linux kernel | |
# | |
# ***** | |
# ONLY IF YOU HAVE A LOT OF MEMORY! | |
# I think, something like at least 8 GB for a regular Desktop | |
# ***** | |
# | |
# |