This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use 5.010; | |
| my $path = '.'; | |
| my @types=qw( mov mp4 avi mkv m4v xvid divx wmv mpg mpeg ); | |
| my @files = `find $path`; | |
| chomp(@files); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| database: | |
| dsn: DBI:mysql:database=DBNAME;host=DBHOST | |
| userid: DBUSER | |
| passwd: DBPASS | |
| options: | |
| mysql_enable_utf8: 1 | |
| mysql_auto_reconnect: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use 5.010; | |
| use strict; | |
| use List::MoreUtils qw/zip/; | |
| use Math::Base::Convert qw(cnv); | |
| use Data::Dumper; | |
| my $res = 45; | |
| my @nums = qw(9 2 11 13 6 3); | |
| my $max = 4 ** (@nums-1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Initialize new virtual server using LXC and set up networking and HTTP proxy | |
| # | |
| # Written by: Deni Bertovic <deni.bertovic@dobarkod.hr> | |
| # | |
| # Released into Public Domain. You may use, modify and distribute it as you | |
| # see fit. | |
| # | |
| # This script will: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| use Mojolicious::Lite; | |
| use Scalar::Util 'weaken'; | |
| hook( before_dispatch => sub { | |
| use Data::Dump; | |
| my $self = shift; | |
| my $uri = $self->req->headers->header('SCRIPT_NAME'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package pavo; | |
| import java.io.*; | |
| import java.util.*; | |
| import javax.script.*; | |
| public class ERB { | |
| static ScriptEngine jruby = initializeJRuby(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @EBean | |
| public class FSM extends XFSM { | |
| private static final String TAG = "FSM"; | |
| @RootContext | |
| Context context; | |
| Thread consumerThread; | |
| public RuleSet getRuleSet() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use v5.10; | |
| sub ok{ | |
| print $_[0]?"OK":"FAIL"; | |
| print "\n"; | |
| } | |
| sub make_sym{ | |
| state %symbols; | |
| my ($sym) = @_; | |
| $symbols{$sym} = \$sym unless $symbols{$sym}; | |
| return $symbols{$sym}; |