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
| metadata: | |
| name: mute kitchen week/weekend | |
| description: Mutes the kitchen speaker for 121s during the day, 140s on weekday evenings, 120s on weekend evenings, and 120s overnight. | |
| automations: | |
| # --- 1. DAYTIME PROFILE (121 Seconds) --- | |
| # Runs daily between 6:00 AM and 7:00 PM | |
| - starters: | |
| - type: assistant.event.OkGoogle | |
| eventData: query |
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
| metadata: | |
| name: mute kitchen | |
| description: Mutes the kitchen speaker for 121s during the day, 140s in the evening, and 120s overnight. | |
| automations: | |
| # --- 1. DAYTIME PROFILE (120 Seconds) --- | |
| # Runs between 6:00 AM and 7:00 PM | |
| - starters: | |
| - type: assistant.event.OkGoogle | |
| eventData: query |
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
| metadata: | |
| name: mute all speakers for 180sec | |
| description: Mute and unmute all speakers after 3 minutes | |
| automations: | |
| starters: | |
| - type: assistant.event.OkGoogle | |
| eventData: query | |
| is: mute 180 |
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
| # Go to home.google.com and create a new automation using the script editor | |
| metadata: | |
| name: mute kitchen # Choose a short name that summarizes important starters and actions | |
| description: Mutes the kitchen speaker for 180 seconds. | |
| automations: | |
| starters: | |
| - type: assistant.event.OkGoogle | |
| eventData: query | |
| is: mute kitchen # <--- This is the voice command to trigger the automation |
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
| lame --ti image.jpeg 'song.mp3' |
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
| ffmpeg -i "song.flac" -i ./image.jpg -map 0:a -map 1 -codec copy -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" -disposition:v attached_pic "new_song_name.flac" |
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
| sudo journalctl --vacuum-time=30d |
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
| dd bs=4M if=path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync |
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 | |
| # Configure systemd-boot | |
| arch-chroot /mnt bootctl --path=/boot install | |
| arch-chroot /mnt bootctl update | |
| # pacman hook | |
| mkdir -p /mnt/etc/pacman.d/hooks | |
| cat > /mnt/etc/pacman.d/hooks/100-systemd-boot.hook << EOF | |
| [Trigger] |
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
| :w !sudo tee % |
NewerOlder