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
| package main | |
| import ( | |
| "context" | |
| "io" | |
| "log" | |
| "net/url" | |
| "os" | |
| "strings" |
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
| #!/usr/bin/pulseaudio -nF | |
| # This is: .config/pulse/default.pa | |
| load-module module-alsa-card device_id="1" name="pci-0000_04_00.6" card_name="alsa_card.pci-0000_04_00.6" namereg_fail=false ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1" tsched=no fixed_latency_range=yes fragments=32 fragment_size=128 | |
| set-sink-volume 0 32768 | |
| .include /etc/pulse/default.pa | |
| # Default devices. `pacmd list-sinks` and `… list-sources` lists them. | |
| .nofail |
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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| notify "github.com/TheCreeper/go-notify" | |
| instance "github.com/scaleway/scaleway-sdk-go/api/instance/v1" | |
| "github.com/scaleway/scaleway-sdk-go/scw" | |
| yaml "gopkg.in/yaml.v3" |
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
| [Unit] | |
| Description=Local surveillance using the webcam | |
| Requisite=pulseaudio.service | |
| [Service] | |
| WorkingDirectory=%h/Aufnahmen | |
| # Might want to skip restarting if all you need are the first 2h. | |
| Restart=on-success | |
| TimeoutStopSec=10s | |
| ExecStart=%h/record-cam.sh vaapi |
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
| # Image meant to host Windows in QEMU, hence we install QEMU | |
| # and everything that is needed to get the networking for it working. | |
| FROM ubuntu:latest | |
| RUN apt-get -q update \ | |
| && apt-get -y install \ | |
| kvm qemu-kvm bridge-utils psmisc \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| RUN update-alternatives --install /usr/bin/qemu qemu /usr/bin/qemu-system-x86_64-spice 10 |
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
| # .local/share/applications/Discord.desktop | |
| [Desktop Entry] | |
| Name=Discord Chat | |
| Icon=/opt/Discord/discord.png | |
| StartupWMClass=discord | |
| Comment=Discord Chat | |
| Exec=sudo /usr/bin/systemctl start discord@1000.service | |
| Terminal=false | |
| Type=Application | |
| Categories=Network;InstantMessaging; |
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
| Param( | |
| $outdir | |
| ) | |
| function Show-Notification { | |
| [CmdletBinding()] | |
| Param ( | |
| [string] $Title, | |
| [string] [parameter(ValueFromPipeline)] $Text | |
| ) |
OlderNewer