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 | |
# https://play.qobuz.com/resources/5.6.2-b016/bundle.js | |
# from bundle.js | |
app_id="" # base_url="https://play.qobuz.com" | |
# from bundle.js | |
initialSeed="" # window.utimezone.berlin | |
info="" # Europe/Berlin |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
int main() { | |
size_t sz; | |
void * buf; | |
sz = sysconf(_SC_PAGESIZE); |
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
#include <stdio.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
int main() { | |
int ret; |
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
bindsym XF86AudioPrev exec --no-startup-id "amixer -c STX set \\"Analog Output\\" Speakers; amixer -c STX set Master 255 on" | |
bindsym XF86AudioNext exec --no-startup-id "amixer -c STX set Master 169 on; amixer -c STX set \\"Headphones Impedance\\" \\"300-600 ohms\\"; amixer -c STX set \\"Analog Output\\" Headphones" | |
bindsym XF86AudioPlay exec --no-startup-id pacmd load-module module-jack-sink | |
bindsym XF86AudioStop exec --no-startup-id "pkill jackd; amixer -c STX set Master off; amixer -c STX set \\"Analog Output\\" Speakers" | |
bindsym XF86AudioMute exec --no-startup-id "pkill jackd; amixer -c STX set Master off; amixer -c STX set \\"Analog Output\\" Speakers" | |
bindsym XF86AudioRaiseVolume exec --no-startup-id flock /run/user/1000/.amixer_lock amixer -c STX set Master 1+ | |
bindsym XF86AudioLowerVolume exec --no-startup-id flock /run/user/1000/.amixer_lock amixer -c STX set Master 1- |
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 | |
set -e | |
gpt=$(losetup -f --show /home/$SUDO_USER/$1/gpt.img) | |
sed "s/\/dev\/loop0/${gpt//\//\\\/}/" /home/$SUDO_USER/$1/table | dmsetup create $1 | |
setfacl -m u:tom:rw /dev/mapper/$1 |
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
hv-vpindex,hv-synic,hv-time,hv-stimer,hv-vapic |
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
port=0 | |
dhcp-relay=192.168.1.150,192.168.1.1,bridge1 |
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/sh | |
if [ -z "$XDG_VTNR" ] || [ -z "$XDG_SESSION_ID" ]; then | |
exit 1 | |
fi | |
exec systemd-run --user -u sway-"$XDG_VTNR" -E XDG_SESSION_ID="$XDG_SESSION_ID" -G -t bash -lc sway |
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
class Huh { | |
public int huh; | |
public Huh() { | |
huh = 123; | |
} | |
} | |
public class Meh { | |
// Re-implement "toString()" for String |
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
class Meh { | |
@Override | |
protected void finalize() { | |
try { | |
super.finalize(); | |
} catch (Throwable e) { | |
; | |
} | |
System.out.println("\"" + this + "\" " + "destroyed"); | |
} |
OlderNewer