+++ /dev/null
-# This is an example configuration.
-# please see: http://napali.ch/vimplate
-
-# you can use $Config::opt instead command options:
-# -user=<user> -dir=<dir>
-#warn @ARGV;
-use POSIX;
-use File::Basename;
-
-sub filename {
- my $f = $ENV{VIMFILE};
- $f = join(' ',@ARGV) if @ARGV and !$f;
- #return join(' ',@ARGV) if @ARGV and !$f;
- return $f unless $f;
-
- my $root;
-
- $f =~ s,^$root,\~izideal, if $root = $ENV{IZI_ROOT_DIR};
- $f =~ s,^$root/?,, if $root = $ENV{NB_ROOT};
-
- $f =~ s,^$root/,, if $root = $ENV{HOME};
-
- return $f;
-}
-
-$file = filename() || '?';
-
-$Config::var = {
-#yourArray => [ 'Perl', 'C', 'C++' ],
- time => sub{ time },
- programname => 'nico',
- today => POSIX::strftime("%d.%m.%y", localtime),
- year => POSIX::strftime("%Y", localtime),
- filename => $file,
- basename => basename($file),
-};
-
-$Config::opt = {
- #dir => ($ENV{VIMHOME} || $ENV{HOME}).'/.vim/templates',
- dir => $ENV{HOME}.'/.vim/templates',
- user => 'nico',
-};
-
-$Config::opt{dir} = $ENV{VIMHOME} . '/templates' if $ENV{VIMHOME};
-
-
-# we need $Config::user with the option -user=<name>
-$Config::user = {
- nico => {
- me => 'NB',
- firstname => 'Nicolas',
- lastname => 'Boisselier',
- mail => 'nicolas.boisselier@gmail.com',
- },
-};
-
-for (keys %$Config::user) {
- my %h = %{$Config::user->{$_}};
-
- $h{name} = $h{firstname}.' '.$h{lastname};
- $h{author} = $h{name}.' <'.$h{mail}.'>';
-
- $h{me_now} = $h{me}.' '.$Config::var->{today};
-
- $h{copyright} = "(C) ".$Config::var->{year}." ".$h{name};
-
- $h{copyright_laius} = "Copyright $h{copyright}
-
-This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
-
-See <http://www.gnu.org/licenses/>.";
-
- $Config::user->{$_} = \%h;
-};
-1;
+++ /dev/null
-#!/bin/bash
-f=$1
-
-if [ -z "$f" ]; then
- echo -e "Usage: $0 FILE\nCheck syntaxe of a document";
- exit -1;
-fi
-
-ext=`echo $f|sed 's/^.*\.\(.*\)$/\1/'`
-php="php5 --define error_reporting=22519 --define display_errors=1 --define log_errors=1 --define html_errors=1" # E_ALL & ~E_NOTICE & ~E_DEPRECATED
-#php="php5 --define error_reporting=8192 --define display_errors=1" # E_ALL & ~E_NOTICE & E_DEPRECATED
-#php="php5 ";
-case "$ext" in
- pp) exec puppet parser validate $f;;
- pm|pl) exec perl -w -c $f;;
- htm|html|xhtm) exec xmllint --noout --html $f;;
- xml|sgml) exec xmllint --noout $f;;
- php|inc)
- exec $php -f $f
- ;;
-esac
-case "$f" in
- *named.conf) exec /usr/sbin/named-checkconf $f;;
- *httpd2*)
- httpd=`which httpd2 2>/dev/null`;
- [ -z $httpd ] && httpd=`which apache2 2>/dev/null`;
- exec $httpd -d `dirname $f` -t -f `basename $f`;
- ;;
- *httpd[\.-]*)
- httpd=`which httpd 2>/dev/null`;
- [ -z $httpd ] && httpd=`which apache 2>/dev/null`;
- [ -z $httpd ] && httpd=`which httpd2 2>/dev/null`;
- exec $httpd -d `dirname $f` -t -f `basename $f`;
- ;;
-esac
-
-head=`head -c 100 $f`
-case "$head" in
- \#!*/perl*)exec perl -w -c $f;;
-esac;
-
-file=`file $f`
-case "$file" in
- *XML*document*) exec xmllint --noout $f;;
- *SGML*document*) exec xmllint --noout $f;;
- *HTML*document*) exec xmllint --noout --html $f;;
- *perl*executable*)exec perl -w -c $f;;
- *perl*modules*) exec perl -w -c $f;;
- *[pP][hH][pP]*script*) exec $php -f $f;;
- *[Bb]ourne*shell*script*) exec sh -x $f;;
- *bash*executable*) exec sh -x $f;;
-esac;
-
-echo "Nothing to do with this file: $file: $ext!"
-exit 1
+++ /dev/null
-#!/bin/bash
-# NB 12.03.04 nicolasboisselier@free.fr
-
-if [ -z "$@" ]; then
- echo -e "Usage: $0 FILES\nVerifie l'orthographe d'un document."
- exit -1;
-fi
-
-while [ "$1" ]; do
- file=`file $1`
- cmd=""
- case "$file" in
- *XML*document*) cmd="aspell -c --dont-backup --mode=sgml";;
- *HTML*document*) cmd="aspell -c --dont-backup --mode=sgml";;
- *SGML*document*) cmd="aspell -c --dont-backup --mode=sgml";;
- *ASCII*mail*) cmd="aspell -c --dont-backup --mode=email";;
- *text*) cmd="aspell -c --dont-backup";;
- esac;
-
- if [ "$cmd" ]; then
- $cmd $1
- else
- echo "Rien à faire avec ce type de fichier: $file: $ext!"
- fi
- shift
-done
-
-exit
+++ /dev/null
-#!/usr/bin/perl
-##############################################################################
-#
-# NB 09.10.03
-#
-# script pour macro mutt: choisie un template dans ~/.signature pour changer
-# l'envoyeur d'un mail
-#
-##############################################################################
-use strict qw (subs vars refs);
-
-my $file = shift @ARGV;
-my $dir = $ENV{HOME} . "/.signatures";
-
-opendir(D,$dir) || die "$dir: $!";
-
-my @sig = sort grep(!/^\./,readdir(D));
-close D;
-
-my $i = -1;
-print "Choissisez une signature:\n",map { $i++; "[$i] $_\n" } @sig;
-
-$i = "Z";
-$i = <>;
-exit if !defined($i) or $i eq "" or $i !~ /^\d+$/ or $i>=scalar(@sig);
-
-my $f = "$dir/$sig[$i]";
-
-# on charge la signature
-open(F,$f) || die "$f: $!";
-my $sig = join('',<F>);
-close F;
-
-# on extrait l'email de la signature
-$sig =~ s/^From\s*:\s*(.*?)\s*[\r\n]//;
-my $me = $1 || "";
-my $from = $me; $from =~ s/^.*<(.*?)>.*$/$1/;
-$sig = "-- \n$sig" unless $sig =~ /^--\s*\n/;
-
-# NB 22.10.06
-#my @allmail;
-#for (@sig) {
-# $_ = "$dir/$_";
-# open(F,$_) or die "$_: $!";
-# $_ = <F>;
-# s/\s+$//;
-# if (/^From\s*:\s*(.*?)\s*$/) {
-# $_ = $1 and push(@allmail,$_);
-# s/^.*<(.*?)>.*$/$1/ and push(@allmail,$_);
-# s/['"]/$1/g and push(@allmail,$_);
-# }
-# close F;
-#}
-#die @allmail;
-
-# lecture du mail
-my (@mail,$mail);
-#my $lsig = 0;
-open(F,$file) || die "$file: $!";
-$i = 0;
-
-while ($mail = <F>) {
-
- unless ($i) {
-
- # on est dans l'entete
- if ($mail =~ /^\s$/) {
- # fin de l'entete
- $i = 1;
- next;
- }
-
- $mail =~ /^Cc\s*:/ and $mail =~ s/[^,:]*$from[^,:]*//g;
- if ($mail =~ /^From\s*:/) { $i=2; next; }
-
- }
-
- # NB 04.11.03 on supprime toutes les signatures dans l'email
- if (1 and $mail =~ /^[> ]*--+\s*$/) {
- $mail = <F> while ($mail !~ /^[> ]*\s*$/);
- next;
- }
-
- #$lsig = $. if $mail =~ /^--\s*$/; # signature trouve
- # NB 14.10.06 destinataire vide ????
- $mail =~ /^(From|Cc|Bcc|To)\s*:/
- and $mail =~ s/"" <>,?//g
- and $mail =~ /^\s*$/ and next;
- $mail = &sup_me($me,$mail);
-
- push(@mail,$mail);
-}
-close F;
-
-# on supprime la derniere ligne si vide
-pop(@mail) if $mail[$#mail||0] =~ /^\s*$/;
-
-# noise
-@mail = grep { !/^(From|To|Cc): (['"]([^'"<>]+)?['"] )<>\s*$/ } @mail;
-
-open(F,">$file") || die "$file: $!";
-$_ = join('',@mail);
-
-s/(To: .*?)\nCc: +(contact|admin)\@izideal.com/$1\nCc: izideal/;
-
-print F "From: $me\n",$_,"\n$sig";
-
-close F;
-
-sub sup_me {
-#------------------------------------------------------------------------------
-# NB 16.06.05
-#------------------------------------------------------------------------------
-my ($me,$mail,$simple) = @_;
-#warn $me;
- #$mail =~ s/[^:,;]*$me\s*[:,;]?//gi; return $mail;
- $mail =~ s/, *$me//gi;
- $mail =~ s/$me *,//gi;
- $mail =~ s/ *$me *//gi;
-# $mail =~ s/ *$me//gi;
-# $mail =~ s/$me *//gi;
-return $mail if $simple;
- $me =~ s/"/'/g;
- $mail = &sup_me($me,$mail,1);
- $me =~ s/["']//g;
- $mail = &sup_me($me,$mail,1);
-#return $mail;
- $me =~ s/^.*<([^>]+)>.*$/$1/g;
-# print "$me\n";
- $mail = &sup_me($me,$mail,1);
-return $mail
-}
-
-exit;
" See: http://learnvimscriptthehardway.stevelosh.com/chapters/27.html
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-let $VIMPLATE_DIR = $VIMHOME . '/templates'
-
-let $VIMPLATERC = $VIMHOME . '/.vimplaterc'
-
-" We change HOME beacuse vimplate look for HOME/.vimplaterc
-let $VIMPLATE = 'env HOME=' . $VIMHOME . ' vimplate' . ' -config '.$VIMPLATERC . ' -dir '.$VIMPLATE_DIR
au VimLeave * if filereadable($VIMHOME."/.netrwhist")|call delete($VIMHOME."/.netrwhist")|endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let File = { 'type' : '' }
-func! FileVimplate()
- let $VIMFILE = FileGet('path')
-
- setloc paste
- setloc nomore
- setloc textwidth=0
-
- let ftype = FileGet('type')
- if $VIMFILE =~ 'init\.d'
- let ftype = 'daemon'
- endif
-
- let fname = ftype.'.tt'
-
- let ffind = findfile(fname,$VIMPLATE_DIR)
- if ffind == ''
- " if ffind != $VIMPLATE_DIR . '/' . fname
- echo "FileVimplate(): Can't find ". $VIMPLATE_DIR . '/' . fname.' <> "' . ffind . '" !'
- return
- endif
-
- let cmd = $VIMPLATE . ' -template '.ftype
-
- let bashenv = $BASH_ENV
- let $BASH_ENV = ""
- execute "r!" . cmd
- let $BASH_ENV = bashenv
-
-endfunc
let $FileInit = ''
func! FileInit(...)
map <C-n> :bn<C-M>
map <C-b> :bp<C-M>
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-"
-" Shortcuts
-"
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" F1 - Last Cmd
-map <F1> :!<C-UP><C-M>
-
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" F2 - Script, formated text verification
-map <F2> :call FileCheck()<CR>
-
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" F3 - Choose email signature
-map <F3> :update <CR>:!~/.vim/choosesig.pl % <CR>:e<CR>
-
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" F4 - Check spell
-map <F4> :update <CR>:!~/.vim/checkspell.sh %<CR>:e<CR>
-
-"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" F5 - Comment
-map <F5> o<C-R>=FileGet('c').' '.FileGet('me_now').': foo '.FileGet('cEnd')<CR><Esc>?foo<CR>cw
-" NB 19.09.16
-
-" NB 18.04.13
-" vmap <F5> :s/^/\=VimShortcurtsAuto('comment_line_toggle').' '/<CR>
-" vmap <F5> :call NERDComment(1, "invert")<CR>
-vmap <F5> :call FileCommentToggle()<CR>
-
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" F6 - Prog Function Create
-map <F6> o<C-R>=VimShortcurtsAuto('function_new')<CR><Esc>?foo<CR>cw
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" F7 - Prog Create
-map <F7> :call FileVimplate()<CR>
-" map <F7> O<C-R>=FileVimplate()<CR>
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-" - Prog Create
-" map <F8> :call VimShortcurtsInteractive()<CR>
-" vmap <F8> :call VimShortcurtsInteractive()<CR>
+++ /dev/null
-#!/usr/bin/env bash
-#################################################################################
-#
-# [% user.me_now %] - [% user.copyright %]
-# [% var.filename %]
-#
-#################################################################################
-
-#set -o errexit
-#set -o nounset
-#set -o pipefail
-#set -o xtrace
-# disable shell expansion so * is passed to each command
-#set -f
-#declare -r NAME="${0##*/}"
-
-#set -e
-declare -r NAME="$(basename "${0}")"
-declare -r DIR_NAME="$(cd "$(dirname "${0}")"; echo $(pwd))"
-declare -r FILE_NAME="${DIR_NAME}/${NAME}"
-
-################################################################################
-#
-# Default value options
-#
-#################################################################################
-VERBOSE=0
-DEBUG=0
-
-################################################################################
-#
-# Functions
-#
-#################################################################################
-usage() {
-echo "
-=head1 NAME
-
-${NAME}
-
-=head1 SYNOPSIS
-
-Example shell script with embedded POD documentation
-
- -v, --verbose Print verbose mode
- -d, --debug Print debug messages
- -h, --help Print this help (alternatives: --man, --help2man)
-
-=head1 DESCRIPTION
-
-Long description
-
-=head1 SEE ALSO
-
-http://blog.nbdom.net/
-
-=head1 LICENSE
-
-[% user.copyright_laius %]
-
-=head1 AUTHOR
-
-[% user.author %]
-"
-}
-
-#################################################################################
-#
-# Args
-#
-#################################################################################
-#shopt -s extglob
-#${1?"Usage: $0 ARGUMENT"}
-while [ $# -gt 0 ]; do
-
- case "$1" in
-
- -*help|-h) usage | pod2text --width 250; exit 0 ;;
- --man) usage | pod2man | man -l -; exit 0 ;;
- --help2man) usage | pod2man; exit 0 ;;
-
- --verbose|-v) VERBOSE=$(($VERBOSE+1)) ;;
-
- --debug|-d) DEBUG=$(($DEBUG+1)) ;;
-
- *) echo "Unknow option: $1 at $0!"; exit -1; ;;
-
- esac
- shift
-
-done
-
-#################################################################################
-#
-# Main
-#
-#################################################################################
-#exec > "/var/log/$(basename $0)).log"
-#exec 1> >(logger -s -t $(basename $0)) 2>&1
-echo Hi
-
+++ /dev/null
-# use subshell for function definition
-f() {
- set -e pipefail
- echo a
- false
- echo Should NOT get HERE
- return 0
-}
-
-f
-echo OK
+++ /dev/null
-@charset "UTF-8";
-/*
-# [% user.me_now %] - [% user.copyright %]
-# [% var.filename %]
-*/
+++ /dev/null
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides: ${NAME}
-# Required-Start: $local_fs $remote_fs
-# Required-Stop: $remote_fs
-# Default-Start: 2 3 5
-# Default-Stop: 0 1 6
-# Author: [% user.author %]
-# Short-Description: [% var.filename %]
-# Description: [% user.me_now %] - [% user.copyright %]
-### END INIT INFO
-
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
-
-DAEMON=/usr/sbin/YOUR
-ARGS=""
-
-NAME=`basename $DAEMON`
-PIDFILE="/var/run/$NAME.pid"
-
-test -x $DAEMON || exit 0
-
-. /lib/lsb/init-functions
-
-START="yes"
-# Source defaults file; edit that file to configure this script.
-if test -e /etc/default/$NAME ; then
- . /etc/default/$NAME
-fi
-
-if [ "$START" != "yes" ]; then
- echo "$NAME not configured to start, please edit /etc/default/$NAME to enable (START=yes)"
-fi
-
-case "$1" in
- start)
- log_daemon_msg "Starting" "${NAME}"
- start-stop-daemon --start --background --quiet \
- --pidfile $PIDFILE --make-pidfile \
- --exec $DAEMON -- $ARGS
- log_end_msg $?
- ;;
- stop)
- log_daemon_msg "Stopping" "${NAME}"
- start-stop-daemon --stop --quiet --retry=USR2/30/KILL/5 --pidfile $PIDFILE --name $NAME
- log_end_msg $?
- ;;
- force-reload|restart)
- $0 stop
- $0 start
- ;;
- status)
- status_of_proc -p $PIDFILE $DAEMON ${NAME} && exit 0 || exit $?
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|force-reload|status}"
- exit 1
- ;;
-esac
-
-exit 0
-
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-
- <title>[% var.filename %] - [% user.me_now %]</title>
-
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link href="" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src=""></script>
-
- <meta name="Copyright" content="[% user.copyright %]"/>
- <meta name="Author" content="[% user.name %]" />
-
-</head>
-
-<body>
-
- <h1>[% var.filename %] - [% user.me_now %]</h1>
-</body>
-
-</html>
+++ /dev/null
-#!/usr/bin/env perl
-use strict;
-use warnings;
-#################################################################################
-#
-# VERSION
-#
-#################################################################################
-my $VERSION = '0.0.1';
-# [% user.me_now %]
-# - create script: [% var.basename %]
-
-#################################################################################
-#
-# GLOBALS
-#
-#################################################################################
-my ($NAME) = $0 =~ m,([^/]+)$,;
-
-#################################################################################
-#
-# ARGS
-#
-#################################################################################
-my $VERBOSE = $main::VERBOSE = 1;
-my $DEBUG = $main::DEBUG = 0;
-
-my %Opt = (
-);
-get_options(\%Opt);
-help() unless @ARGV;
-$main::_DATA_ = undef;
-
-#################################################################################
-#
-# BEGIN
-#
-#################################################################################
-use Data::Dumper;
-
-#################################################################################
-#
-# END
-#
-#################################################################################
-exit 0;
-
-#################################################################################
-#
-# Functions
-#
-#################################################################################
-sub help {
-#------------------------------------------------------------------------------
-# Print help and exit
-#------------------------------------------------------------------------------
-
- require 'Pod/Usage.pm' unless $INC{'Pod/Usage.pm'};
-
- # Substitutions
- sub pod_env {
- my $v = '';
- eval '$v = ref(\\'.$_[0].') eq "ARRAY" ? join(" ",'.$_[0].') : '.$_[0].'; return defined $v ? $v : qq|UNDEF|;';
- return $v;
- }
-
- $main::_DATA_ =~ s/([@\$][A-Z_a-z\{\}]+)/pod_env($1)/eg;
-
- my $in;
- open($in,'<',\$main::_DATA_);
-
- open(STDOUT,"|perl -pe 's/\.$$//g'".(($ENV{PAGER}||'') eq 'less' ? "|less -FRi" : ""));
- my $opts = {
- -input => $in,
- -ouput => \*STDOUT,
- -exitval => 'noexit',
- -sections => [qw(SYNOPSIS DESCRIPTION OPTIONS)],
- -verbose => ($Opt{'help'} ? 99 : 3),
- };
-
- Pod::Usage::pod2usage($opts);
- close $in;
- close STDOUT;
-
- exit 0;
-}
-
-#------------------------------------------------------------------------------
-# Print version and exit
-#------------------------------------------------------------------------------
-sub version { print "$NAME: version [$VERSION]\n"; exit 0; }
-
-#------------------------------------------------------------------------------
-# Get options from pod
-#------------------------------------------------------------------------------
-sub get_options {
-
- use Getopt::Long qw(:config no_ignore_case no_auto_abbrev);
-
- my @Opt;
-
- sub pod_opt {
- local $_;
- my $o = shift;
- $o =~ s/(=.|[\+\-\!]$)//;
- $o = join(", ",map{"-$_"} split(/[\|,:;]/,$o));
- return "$o";
- }
-
- while (<DATA>) {
- s/option\[([^\]]+)\]/push(@Opt,$1) and pod_opt($1)/eg;
- $main::_DATA_ .= $_;
- }
-
- GetOptions($_[0],@Opt) || exit -1;
-
- help() if $_[0]{'help'} or $_[0]{'man'};
- version() if $_[0]{'version'};
-
- $main::VERBOSE = $VERBOSE = $_[0]{'verbose'} if defined $_[0]{'verbose'};
- $main::DEBUG = $DEBUG = $_[0]{'debug'} if defined $_[0]{'debug'};
-
-}
-
-__DATA__
-
-=head1 NAME
-
-$NAME - Script to do ...
-
-=head1 SYNOPSIS
-
-Quick usage!
-
-=over
-
-=item $NAME --verbose
-
-=item $NAME --help
-
-=back
-
-=head1 DESCRIPTION
-
-Description!
-
-=head1 OPTIONS
-
- -option[verbose|v+] Verbose mode: increase the verbosity level.
- -option[debug+] Debug mode: increase the verbosity level.
- -option[version|V] Print version (default: $VERSION)
- -option[help|h|?] Print a brief help message and exits.
- -option[man] Print the manual page and exits.
-
-=cut
-
-=head1 EXAMPLES
-
-...
-
-=head1 REQUIRES
-
-Getopt::Std, Pod::Usage
-
-=head1 COPYRIGHT AND LICENSE
-
-[% user.copyright_laius %]
-
-=head1 SEE ALSO
-
-perl(1), http://perldoc.perl.org/perlpodstyle.html
-
-=head1 AUTHOR
-
-[% user.author %]
-
-=cut
+++ /dev/null
-#!/usr/bin/env php
-<?php
-/**
-* @copyright [% user.copyright %]
-* @author [% user.author %]
-*
-* [% var.filename %]
-*/
-
-echo '<?xml version="1.0" encoding="utf-8"?>';
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-<head>
-
- <title></title>
-
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link href="" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src=""></script>
-
-</head>
-
-<body>
-
-</body>
-
-</html>
+++ /dev/null
- /**
- * @copyright [% user.copyright %]
- * @author [% user.author %]
- * Does what the name says
- *
- * @param datatype1|datatype2 \$paramname description
- * @return datatype1|datatype2 description
- */
- function foo() {
- }
-
+++ /dev/null
-# = Class: example_class
-#
-# Full description of class example_class here.
-#
-# == Parameters
-#
-# Document parameters here.
-#
-# [*ntp_servers*]
-# Explanation of what this parameter affects and what it defaults to.
-# e.g. "Specify one or more upstream ntp servers as an array."
-#
-# == Variables
-#
-# Here you should define a list of variables that this module would require.
-#
-# [*enc_ntp_servers*]
-# Explanation of how this variable affects the funtion of this class and if it
-# has a default. e.g. "The parameter enc_ntp_servers must be set by the
-# External Node Classifier as a comma separated list of hostnames." (Note,
-# global variables should not be used in preference to class parameters as of
-# Puppet 2.6.)
-#
-# == Examples
-#
-# class { 'example_class':
-# ntp_servers > [ 'pool.ntp.org', 'ntp.local.company.com' ]
-# }
-#
-# == Authors
-#
-# [% user.author %]
-#
-# == Copyright
-#
-# [% user.copyright %]
-#
-class example_class {
- $class_infos = sem('class_infos')
- $head_comment = sem('head_comment')
-
-}
-
-# = Define: example_resource
-#
-# Full description of defined resource type example_resource here.
-#
-# == Parameters
-#
-# Document parameters here
-#
-# [*namevar*]
-# If there is a parameter that defaults to the value of the title string
-# when not explicitly set, you must always say so. This parameter can be
-# referred to as a "namevar," since it's functionally equivalent to the
-# namevar of a core resource type.
-#
-# [*basedir*]
-# Description of this variable. For example, "This parameter sets the
-# base directory for this resource type. It should not contain a trailing
-# slash."
-#
-# == Examples
-#
-# Provide some examples on how to use this type:
-#
-# example_class::example_resource { 'namevar':
-# basedir > '/tmp/src',
-# }
-#
-# == Authors
-#
-# [% user.author %]
-#
-# == Copyright
-#
-# [% user.copyright %]
-#
-define example_class::example_resource($basedir) {
-
-}
+++ /dev/null
-bash.tt
\ No newline at end of file
+++ /dev/null
---
--- @copyright [% user.copyright %] # [% user.me_now %]
--- [% var.filename %]
---
-SELECT
-
-1
-
-WHERE
- 1=1
-
-;
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
- <meta name="Copyright" content="Copyright (C) %date% %authorname%"/>
- <meta name="Author" content="%authorname%" />
- <meta name="Generator" content="vim (Vi IMproved editor; http://www.vim.org/)" />
- </head>
- <body>
- </body>
-</html>