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
for i in $(ls -1); { echo $i; (cd $i; for ff in * ; { aa=$((aa+1)) ; mv "$ff" ${i}-${aa}.jpg } ) } |
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
# How to add your FVE (PhotoVoltaicPlant) to the sunnymap.net with: | |
# * HomeAssistant | |
# * REST API | |
# * GoodWe integration | |
# | |
# First: register your FVE and get API key via: https://sunnymap.net/token_request | |
# Second: edit the files: configuration.yaml, automations.yaml | |
# Third: in Developers Tools (/developer-tools/yaml): | |
# - check the configuration | |
# - restart configuration |
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 random | |
import string | |
import bcrypt | |
import hashlib | |
# Function to generate random string | |
def get_random_string(chars, length): | |
return ''.join(random.choice(chars) for _ in range(length)) |
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
esphome: | |
name: esphome-eink-01 | |
on_boot: | |
priority: 700 | |
then: | |
- delay: 3sec | |
- component.update: my_display | |
- delay: 200ms | |
- component.update: my_display | |
- delay: 200ms |
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
tmux, vim, rg (ripGrep/Silver Searcher/grep) | |
Honeypot Glutton (for samples) see https://github.com/mushorg/glutton | |
Shell aliases (tm,lt,mkcd) see https://github.com/cubapp/dotfiles | |
UPX (source!) see https://github.com/upx | |
CyberChef see https://github.com/gchq/CyberChef | |
binary refinery see https://github.com/binref/refinery | |
tlsh, vbindiff see https://github.com/trendmicro/tlsh | |
see https://github.com/madsen/vbindiff | |
hexedit |
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
# in Automator go for New - Quick Action | |
# Run Shell Script, Workflow receives current: "files or folders" in "Finder.app" | |
# shell Pass Input: As Arguments | |
# then the automation will be present in Finder right click Quick Actions | |
for f in "$@" | |
do | |
hash=$(shasum -a 256 "$f" | awk '{print $1}' | fold -w32) | |
button=$(osascript -e "display dialog \"File: $f\n\nSHA256:\n$hash\n\n\" with title \"SHA256 Hash\" buttons {\"Copy to clipboard\", \"OK\"} default button 2") | |
if [[ $button == *"Copy"* ]]; then |
OlderNewer