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
View gist:1ee8129c05b1d4083551c0b29bbeb747
git config --global alias.tree "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --date=relative"
View install-emacs-25.sh
#!/bin/sh -ex
# update the PATH ...
PATH="/usr/local/bin:${PATH}"
# install autoconf ...
cd /tmp
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xvfvz autoconf-2.69.tar.gz
cd autoconf-2.69
View 29-moose-role-runtime-application.t
use 5.020;
use Test::Most;
package Class {
use Moose;
};
package Role {
use Moose::Role;
sub some_other_method { ... }
View gist:03f8378fb907cef1314df0fdc84d83ca
Your build tool has downloaded the stable version of ENSIME but you are using the Developer Emacs install.
Check that you followed all the steps at http://ensime.org/editors/emacs/install including additional steps that are required by your build tool.
For SBT, add the following to your ~/.sbt/0.13/global.sbt
import org.ensime.EnsimeCoursierKeys._
ensimeServerVersion in ThisBuild := "2.0.0-SNAPSHOT"
Currently other build tools do not support 2.0 file format.
View install-emacs-25.1.sh
#!/bin/bash
set -euxo pipefail
# install deps ...
apt-get update
apt-get install -y build-essential && \
apt-get build-dep -y emacs24
# install emacs25 ...
View init.el
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)