Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env perl
use strict; use utf8; use warnings; use autodie ':all';
use File::Temp qw'tempfile tempdir';
use Getopt::Std 'getopts';
use Cwd 'cwd';
use File::Spec::Functions qw'catfile rel2abs';
my %o = (qw'l 0:4321 -d', cwd);
getopts 'l:d:u:p:h', \%o;
@vividsnow
vividsnow / soundcloud-term
Last active August 18, 2022 20:15
terminal app to soundcloud personal stream (play, pause, forward, like, unlike, open in browser..). uses mpv
#!/usr/bin/env perl
use utf8; use strict; use warnings;
use Getopt::Std 'getopt';
use HTTP::Tiny; use JSON::PP;
use IO::Uncompress::Gunzip 'gunzip';
use Socket qw'AF_UNIX SOCK_STREAM PF_UNSPEC';
use List::Util qw'min max';
use Encode::Locale;
use POSIX qw'setsid sigaction SIGHUP SA_SIGINFO';
use POSIX::SigAction;