Skip to content

Instantly share code, notes, and snippets.

View jerowe's full-sized avatar

Jillian Rowe jerowe

View GitHub Profile
@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: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 / 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 / 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 / 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 / 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 / nginx_express_conf.md
Last active January 19, 2016 06:05
Nginx and Express Config with Base Url

#Nginx

    #nginx.conf
    location /foo {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;
 proxy_pass http://127.0.0.1:3000/foo;
@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
---
global:
- indir: data/raw
- outdir: data/Analysis
- reference: /scratch/Reference_Genomes/Public/Vertebrate_other/Anolis_Carolinensis/AnoCar2.0/anoCar2.fa
- bowtie_tmp_dir: "data/Analysis/{$sample}/Bowtie2/tmp"
- file_rule: (Sample.*)$
- by_sample_outdir: 1
- find_by_dir: 1
rules:
---
use:
- Slurp
- Data::Dumper
global:
- indir: data/processed/rename
- outdir: data/processed
- PROCESSED: data/processed
- ROOT: data/processed
- file_rule: (Sample.*)$