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
pactl load-module module-alsa-sink device=hw:Device channel_map=rear-left,rear-right,rear-center,subwoofer,front-right,front-left | |
pactl load-module module-remap-sink sink_name=surround remix=yes master=alsa_output.hw_Device channels=6 master_channel_map=front-right,front-left,rear-left,rear-right,lfe,lfe channel_map=front-left,front-right,front-left,front-right,front-left,front-right | |
pactl set-default-sink surround | |
pactl load-module module-loopback latency_msec=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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Mail::Message; | |
use Mail::Message::Convert::HtmlFormatText; | |
my $af = Mail::Message::Convert::HtmlFormatText->new; |
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
use mop; | |
use feature qw(postderef); | |
no warnings qw(experimental::postderef); | |
use Carp qw(confess); | |
use Package::Stash; | |
sub alias { | |
my $meta = shift; |
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/env starlight | |
use AnyEvent::DNS::EtcHosts; | |
use Plack::Builder; | |
use Plack::App::Proxy; | |
builder { | |
enable 'AccessLog'; | |
enable 'Proxy::Connect'; | |
enable 'Proxy::Requests'; |
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/env perl | |
use v5.14; | |
package MyApp { | |
use Moo; | |
use Wx ':everything'; | |
has url => is => 'ro'; |
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
SHELL=/bin/bash | |
* * * * * . $HOME/.profile && { cd $HOME && run-parts --report $HOME/cron.minutely; } |
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 | |
die () { | |
msg="$1\n" | |
shift | |
printf "$msg" "$@" 1>&2 | |
exit 1 | |
} | |
use=` |
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 | |
die () { | |
msg="$1\n" | |
shift | |
printf "$msg" "$@" 1>&2 | |
exit 1 | |
} | |
use=` |
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/env perl | |
use v5.10; | |
use strict; | |
use warnings; | |
use Mojolicious::Lite; | |
# Explicit use as a helper for PAR |
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
ENABLED="true" | |
OPTIONS=" | |
--log-level=warning | |
--log-file=/var/log/mysql-proxy.log | |
--admin-username=proxy | |
--admin-password=proxy | |
--admin-lua-script=/usr/share/mysql-proxy/admin.lua | |
--proxy-backend-addresses=10.0.0.1:3306 | |
--proxy-backend-addresses=10.0.0.2:3306 |