Skip to content

Instantly share code, notes, and snippets.

View jasonblewis's full-sized avatar

Jason Lewis jasonblewis

View GitHub Profile
use strict;
use warnings;
use Test::More tests => 7;
use Test::WWW::Mechanize::PSGI;
use_ok 'Reports';
my %routes = ('/' => undef,
use strict;
use warnings;
use Test::More tests => 7;
use Test::WWW::Mechanize::PSGI;
use_ok 'Reports';
my %routes = ('/',
#!/usr/bin/env perl
use utf8;
use strict;
use warnings;
use DBI;
use Data::Dumper;
use Text::CSV;
use File::Slurper 'read_text';
use RTF::TEXT::Converter;
use 5.22.0;
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
http://p.hagelb.org/actnotes.pl.html
with basequery as (
select customer_name,
product_code,
sum(sales_qty) as sales_qty,
convert(varchar(2),datediff(month, invoice_date, DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0))) as [age]
from sh_select_trans_view
where customer_name is not null
and invoice_date >= DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE())-13, 0) -- rolling 13 month
cpanm (App::cpanminus) 1.7001 on perl 5.020001 built for x86_64-linux-thread-multi
Work directory is /home/jason/.cpanm/work/1430700662.29697
You have make /usr/bin/make
You have LWP 6.13
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@jasonblewis
jasonblewis / gist:7f216d8f62152298b911
Created May 4, 2015 01:15
Dancer2 failed to install
cpanm (App::cpanminus) 1.7001 on perl 5.020001 built for x86_64-linux-thread-multi
Work directory is /home/jason/.cpanm/work/1430700355.28863
You have make /usr/bin/make
You have LWP 6.13
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@jasonblewis
jasonblewis / gist:b10ccbe2a4471925c9fd
Created October 11, 2014 06:45
suppress page number output for \part in tableofcontents
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tocloft}
\title{42}
\author{Jane Doe}
\date{June 2011}
\begin{document}
### Keybase proof
I hereby claim:
* I am jasonblewis on github.
* I am jasonblewis (https://keybase.io/jasonblewis) on keybase.
* I have a public key whose fingerprint is B10B 2E72 BB30 FE47 ABC2 F1B9 FA57 1EC7 505E 764E
To claim this, I am signing this object:

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)