Skip to content

Instantly share code, notes, and snippets.

View jerowe's full-sized avatar

Jillian Rowe jerowe

View GitHub Profile
@jerowe
jerowe / gist:11393370
Last active June 20, 2016 23:18
Perl Catalyst Develop with Tmux

Tmux and Catalyst

Install Tmux

sudo apt-get install tmux or sudo yjm install tmux

Tmux has some weird bugs on centos. Need to install some libraries from source.

https://gist.github.com/ekiara/11023782

@jerowe
jerowe / gist:11398842
Last active August 29, 2015 14:00
Git Hook for nicely formatted Redmine Commits

Get nicely formatted commits. Drop the script into projectdir/.git/hooks/git-commit-msg.pl.

git commit -m "commiting some issues refs #1420 @0"

Gets you

[jillian@localhost]$ git commit -m "commiting some issues refs #1420 @0"
======================================================================================================================
@jerowe
jerowe / gist:353cf0d40bd93ed91671
Last active January 3, 2019 13:01
Perl Catalyst with Ngninx and SSL

Nginx config

make a directory /etc/nginx/include.d

in /etc/nginx/conf.d/default.conf

#
# The default server
@jerowe
jerowe / gist:c6a55952512d1b5b92dc
Last active November 10, 2016 07:46
Perl Catalyst with Apache Development and Production and SSL

Apache Config

# Virtual Host config for myhost.com

NameVirtualHost *:80

<VirtualHost *:80>

        ServerName myhost.com
@jerowe
jerowe / gist:f71fae928cef9a8b6c2c
Last active January 8, 2016 10:58
Catalyst with Perlbrew Setup

Overview

Perlbrew is a way of managing perl versions and application specific libraries.

In general it doesn't require root, unless you want it installed in a location only writable by root. ;)

Its actually not such a great idea to have this in a home directory if you want it shared by multiple users, such as nginx/apache, so it may be a better idea to have your $PERLBREW_ROOT as /opt/perlbrew or something similar

CPAN documentation

@jerowe
jerowe / gist:ea4ca3fd75db54a64225
Last active August 29, 2015 14:01
Get Git::Hooks working with Perlbrew

Introduction

Git::Hooks requires Git.pm, which is not available on CPAN but does come with most system perl installations.

echo $PERL5LIB

If you have just one location you are golden. If you have many, separated by a ':', pick one and replace the following $PERL5LIB with that location.

When in doubt take a look at the output of

@jerowe
jerowe / gist:8d4960300b3e9a90c8f5
Last active September 6, 2015 07:50
Install vim7.4 from source with ruby and python
#!/bin/bash
#
# Install vim7.4 with fresh python2, python3, and ruby support
#
export INSTALLDIR=/opt/devtools
export BUILDDIR=/opt/devtools/build
mkdir -p $INSTALLDIR
mkdir -p $BUILDDIR
@jerowe
jerowe / Perlbrew Modulefile
Last active August 29, 2015 14:16
Perlbrew Library Module - Environment Modules
#%Module1.0#######################################################################
## Perlbrew perl-5.16.3@ modulefile
## Creates the correct environmental variables for the command:
## perlbrew lib create perl-5.16.3
proc ModulesHelp { } {
puts stderr "\tAdds the perlbrew perl-5.16.3"
}
@jerowe
jerowe / development.md
Last active November 19, 2015 06:09
My Development Environment

Package Installs

bash -c 'su -c "curl https://satya164.github.io/fedy/fedy-installer -o fedy-installer
chmod +x fedy-installer
./fedy-installer"'
sudo dnf -y -v groupinstall "C Development Tools and Libraries"
@jerowe
jerowe / rnaseq.yml
Last active February 23, 2016 05:04
RNA Seq pipeline
---
use:
- Slurp
- Data::Dumper
global:
- indir: data/processed/rename
- outdir: data/processed
- PROJECT: /scratch/jdr400/projects/RNASeq
- PROCESSED: data/processed
- ROOT: data/processed