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/env perl -c | |
package App::http2http; | |
=head1 NAME | |
App::http2http - generic HTTP proxy server with logging | |
=cut |
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
global import require 'prelude-ls' | |
# or "lsc -d" command | |
# 1. Multiple Each Item in a List by 2 | |
list = [1 to 10] |> map (* 2) | |
list.for-each (n) !-> console.log n | |
# 2. Sum a List of Numbers | |
n = sum [1 to 1000] | |
console.log n |
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/perl | |
# expect.pl (c) 2012 Piotr Roszatycki <[email protected]> | |
use strict; | |
use Expect; | |
die "Usage: $0 cmd [-echo] expect1 send1 expect2 send2 ...\n" | |
unless @ARGV; |
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
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" |
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/perl | |
use strict; | |
use IPC::Open2; | |
use IO::Select; | |
use IO::Handle; | |
use constant { | |
BUFLEN => 1024 * 4, |
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
log4perl.logger.plack = DEBUG, LogfilePlack | |
log4perl.appender.LogfilePlack = Log::Dispatch::File::Stamped | |
log4perl.appender.LogfilePlack.stamp_fmt = %Y-%m-%d | |
log4perl.appender.LogfilePlack.filename = log/error.log | |
log4perl.appender.LogfilePlack.layout = PatternLayout | |
log4perl.appender.LogfilePlack.layout.ConversionPattern = %d{ISO8601}: %c: %m{chomp}%n | |
log4perl.logger.access = DEBUG, LogfileAccess | |
log4perl.appender.LogfileAccess = Log::Dispatch::File::Stamped | |
log4perl.appender.LogfileAccess.stamp_fmt = %Y-%m-%d |
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
foreach my $n (1..3) { | |
say $n; | |
} | |
# a tu już $n nie działa |
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/env perl |
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
cpan-import-all.sh http://cpan.metacpan.org/authors/id/D/DE/DEXTER/Symbol-Util-0.0203.tar.gz --sign-tags |
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
#!/bin/bash | |
perlbrew=/usr/bin/perlbrew | |
export PERLBREW_ROOT="$HOME/opt/perlbrew" | |
if [ ! -f "$PERLBREW_ROOT/etc/bashrc" ]; then | |
$perlbrew init | |
fi |