Skip to content

Instantly share code, notes, and snippets.

View Pablo-Leon's full-sized avatar

Pablo León Pablo-Leon

View GitHub Profile
#!/usr/bin/perl -w
=head1 Copyright ...
=head1 NOMBRE
starter.pl -
=head1 SINOPSIS
#
# Makefile -- ...
#
SOURCE_FILES=
X_FILES=
PERL_EXE=/usr/bin/perl
.PHONY: all clean bkp chk
# ~/crn/%{user}.crn
#
# minute (0-59),
# hour (0-23),
# day of the month (1-31),
# month of the year (1-12),
# day of the week (0-6 with 0=Sunday).
#
# 0,15,30,45 8-17 * * 1-5 $HOME/oper/bin/%{prog} > $HOME/crn/log/%{prog}.log 2>&1
#!/bin/sh
java -Dsbt.main.class=sbt.ConsoleMain \
-Dsbt.boot.directory=~/.sbt/boot \
-jar ~/sbt/0.13/libexec/sbt-launch.jar @$HOME/.conscript/sbt.boot.properties "$@"
#!/bin/sh
# -Dsbt.log.noformat=true \
# -Dlogback.configurationFile=~/lib/logback.xml \
java -Dsbt.main.class=sbt.ScriptMain \
-Dsbt.boot.directory=~/.sbt/boot \
-Dlogback.configurationFile=$HOME/lib/logback.xml \
-jar ~/bin/sbt-launch.jar @$HOME/.conscript/sbt.boot.properties "$@"
<configuration debug="false">
<timestamp key="byDay" datePattern="yyMMdd'-'HHmm"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>WARN</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<encoder>
#!/bin/sh
exec scalas $0 $@
!#
/***
// scalaVersion := "2.11.8"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.2"
libraryDependencies += "com.github.scopt" %% "scopt" % "3.4.0"
#!/bin/sh
unset LEVEL
_x4563="$@" # don't have a clue why "$@" does not work on next line
if expr "$_x4563" : '--trace *$\|--trace \|.* --trace$\|.* --trace '>/dev/null ; then LEVEL='DEBUG'; fi
prog=`basename $0`
exec scala \
-save \
-classpath "$HOME/lib/scopt_2.11-3.4.0.jar:$HOME/lib/slf4j-api-1.7.21.jar:$HOME/lib/logback-classic-1.1.7.jar:$HOME/lib/logback-core-1.1.7.jar" \
-Dprogname=${prog} \
-Dlogback.configurationFile=$HOME/lib/logback.xml \
@Pablo-Leon
Pablo-Leon / neu.sh
Last active May 16, 2016 13:36
Base shell
#!/bin/sh
sProg=`basename $0`
sTimestamp=`date '+%y%m%d-%H%M'`
sLogfile="log/${sProg}.${sTimestamp}.log"
if [ ! -d log ]; then mkdir log; fi
{
echo "======================"