Skip to content

Instantly share code, notes, and snippets.

[root@echo ~]# cat /etc/puppetlabs/code/environments/production/modules/profile/echo_symkat_net/manifests/init.pp
include ntp
class { 'ntp':
servers => ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org' ],
restrict => [
'default ignore',
'-6 default ignore',
'127.0.0.1',
'-6 ::1',
#!/usr/bin/perl
use warnings;
use strict;
use Data::Dumper;
use Time::HiRes qw/ time/;
sub unwrap_ref {
my ( @list ) = @_;
my @return;
for my $elem ( @list ) {
@symkat
symkat / SQL_Translator_Producer_SQLite.pm
Created May 30, 2011 16:27
SQL::Translator::Producer::SQL Patch - Correct an issue where tables, views and triggers are not added to the global names data structure and may result in collisions of table names of indexes or constraints.
--- /root/perl5/lib/perl5/SQL/Translator/Producer/SQLite.pm.bak 2011-05-23 14:52:20.000000000 -0700
+++ /root/perl5/lib/perl5/SQL/Translator/Producer/SQLite.pm 2011-05-30 09:23:58.000000000 -0700
@@ -133,6 +133,8 @@
my $add_drop_view = $options->{add_drop_view};
my $view_name = $view->name;
+ $global_names{$view_name} = 1;
+
debug("PKG: Looking at view '${view_name}'\n");
#!/usr/bin/perl
use warnings;
use strict;
use Test::More;
use_ok( "SQL::Translator" );
use_ok( "SQL::Translator::Parser::MySQL" );
use_ok( "SQL::Translator::Producer::SQLite" );
# This test reproduces a bug in SQL::Translator::Producer::SQLite.
#
#!/usr/bin/perl
use warnings;
use strict;
# OS X doesn't have seq. Quick implementation with no
# error checking, and only supports the requirements for
# for i in `seq <low> <high> ; do <command> ; done
my ( $first, $last ) = @ARGV;