View template.t
use 5.024;
use Test::Most;
package C {
use Moo::Role;
has dir => ( is => 'ro', required => 1 );
has file => ( is => 'ro', default => sub { sprintf '%s/%s.pm.ep' => $_[0]->dir, ref($_[0]) =~ s/::/\//gr } );
};
package A {
View gist:0ec315a50774ac612c70aea5ba87d13c
Your build configuration:
CC = gcc
CPPFLAGS = -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CFLAGS = -g -O2 -Wall -Wextra -Wdeclaration-after-statement -g -gdwarf-2 -fno-omit-frame-pointer
CXX = g++
CXXFLAGS = -g -O2 -Wall -Wextra -g -gdwarf-2 -fno-omit-frame-pointer
LDFLAGS =
prefix: /usr/local
version: 4.9.4
View install-watchman.sh
#!/bin/sh -ex
apt-get install -y autoconf automake libssl-dev libtool pkg-config python-dev
cd /tmp
git clone https://github.com/facebook/watchman.git
cd watchman
./autogen.sh
./configure
make
make install
View example.sh
perl -MTest::Most=no_plan -E 'sub foo { +{ @ARGV } }' -wE 'cmp_deeply(foo(), { foo => re("^[0-9]+") }, "data as expected")' foo 100
View install-slack-fedora.sh
#!/bin/sh -ex
#
# download the rpm from here: https://slack.com/downloads/linux
dnf install -y libappindicator && rpm -i slack-3.0.5-0.1.fc21.x86_64.rpm
View README.md

Directory structure

.
├── hiera
│   └── common.yaml
├── hiera.yaml
├── manifests
│   └── default.pp
├── README.md
View install-r.sh
#!/bin/sh -ex
codename=`lsb_release -c | tr -d '[:space:]' | cut -d ':' -f 2`
sources='/etc/apt/sources.list'
[ `grep -c CRAN ${sources}` -eq 0 ] && \
echo "deb https://http://mirrors.ebi.ac.uk/CRAN/bin/linux/ubuntu ${codename}/" >> ${sources}
sudo apt-get update
sudo apt-get install -y r-base
View log4perl.t
use 5.026;
use Test::More;
use Test::Log::Log4perl;
package Foo::Bar::Quux {
use Moose;
use Log::Log4perl;
Log::Log4perl::init(
\ join(
"\n",
View delete-remote-branches.sh
#!/bin/sh -ex
cd ${local_checkout_dir}
git fetch
for branch in `git branch -r | grep -v 'master' | cut -d/ -f2-`; do git push -d origin ${branch}; done
View install-postgresql-9.4.sh
#!/bin/sh -ex
# install postgres 9.4
# add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt `lsb_release -sc`-pgdg main"
add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt zesty-pgdg main"
wget --quiet -O - https://postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt-get update
apt-get install -y postgresql-9.4
# listen from all addresses