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
sysbench cpu --cpu-max-prime=20000 --threads=4 --time=0 --events=100000 run |
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
blueprint: | |
name: ZHA - Moes Smart Knob for lights | |
description: 'Control lights with a Moes Smart Knob. | |
You can set functions for a single press. This allows you to assign, e.g., a scene | |
or anything else. | |
Rotating left/right will change the brightness smoothly of the selected light. | |
Not all functionality of the device is available at time of writing, e.g. double | |
press, long press and press and rotate. | |
Original blueprint by seamus65 (https://gist.github.com/seamus65/939a147634942dd885c8704334627f93). |
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
blueprint: | |
name: ZHA - Moes Smart Knob for Media Player | |
description: 'Control Media Player with a Moes Smart Knob. You can set functions for a | |
single press. This allows you to assign, e.g., a scene or anything else. Rotating | |
left/right will change the volume smoothly of the selected media player. Not all | |
functionality of the device is available at time of writing, e.g. double press, | |
long press. | |
Original blueprint by seamus65 (https://gist.github.com/seamus65/939a147634942dd885c8704334627f93). |
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
partition disk. | |
``` | |
diskutil partitionDisk /dev/disk4 2 MBRFormat "MS-DOS FAT32" P1 10G "MS-DOS FAT32" P2 5.9G | |
``` | |
clone disk | |
``` | |
sudo dd if=/dev/disk4 of=usb.img bs=16M status=progres | |
sudo dd if=usb.img of=/dev/disk3 bs=16M status=progress |
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
First of all, you should increase the size of the /swapfile at least to the size of your RAM. | |
link: https://linuxhint.com/change_swap_size_ubuntu/ | |
Install dependencies: | |
`sudo apt install pm-utils hibernate uswsusp` | |
Find your UUID of swap file: | |
`findmnt -no UUID -T /swapfile` | |
get offset |
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
mount the volume | |
/var/run/docker.sock | |
e.g | |
docker run --rm -it \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
wagoodman/dive:latest /bin/bash |
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
diskutil list | |
diskutil eraseDisk FAT32 EMPTY MBRFormat disk2 |
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
For Mac and windows that use docker for desktop, | |
you can use `host.docker.internal` as the hostname to access the host machine's ports |
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
kubectl create job --from=cronjob/<cronjob-name> <job-name> |
NewerOlder