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
Param( | |
$outdir | |
) | |
function Show-Notification { | |
[CmdletBinding()] | |
Param ( | |
[string] $Title, | |
[string] [parameter(ValueFromPipeline)] $Text | |
) |
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
# .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 [email protected] | |
Terminal=false | |
Type=Application | |
Categories=Network;InstantMessaging; |
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
# 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 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 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 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 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 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/share/X11/xkb/symbols/de.orig 2020-03-08 18:18:54.650875969 +0100 | |
+++ /usr/share/X11/xkb/symbols/de 2020-03-08 18:29:08.506129310 +0100 | |
@@ -37,6 +37,9 @@ | |
key <AB10> { [ minus, underscore, endash, emdash ] }; | |
key <LSGT> { [ less, greater, bar, dead_belowmacron ] }; | |
+ // space, nobreakspace, thin non-break space, thin space | |
+ key <SPCE> { [ space, nobreakspace, U202F, thinspace ] }; | |
+ | |
include "kpdl(comma)" |
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
#!/bin/bash | |
# Merges a set of repositories, the “sources”, formerly hosted on “from” | |
# into subdirectories of one repository | |
# meant to be moved to a new repository hosting provider. | |
# | |
# git version: 2.24.0 | |
# Mark Kubacki, 2020-01-08 | |
if (( $# < 1 )); then | |
>&2 printf "Usage: $0 [repo | repo…]\n" |
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
#!/bin/bash | |
# Will update your Golang. | |
# Needs: curl tar jq procps-ng/pgrep | |
set -eupo pipefail | |
if [[ -t 1 ]] && type -p 'tput' &>/dev/null && tput colors >&/dev/null; then | |
V_BOLD_RED=$(tput bold; tput setaf 1) | |
V_BOLD_GREEN=$(tput bold; tput setaf 2) | |
V_VIDOFF=$(tput sgr0) | |
else |
NewerOlder