Skip to content

Instantly share code, notes, and snippets.

View ikolar's full-sized avatar

Igor Kolar ikolar

  • Ljubljana, Slovenia, Europe
View GitHub Profile
We couldn’t find that file to show.
@ikolar
ikolar / gist:166469
Created August 12, 2009 12:12
mk_kaltura_includes_table.sh
#! /bin/bash
#
# Create a simple html table with html include codes ("<object ...>") for all batch-uploaded kaltura.com videos.
# Assist ppl in migrating a large number of videos to kaltura.
#
# Copyright 2009 Igor Kolar <igor.kolar@gmail.com>
# Licensed under the EUPL, Version 1.1 or – as soon they
# will be approved by the European Commission -
# subsequent versions of the EUPL (the "Licence");
# You may not use this work except in compliance with the
# Copyright 2009 Igor Kolar <igor.kolar@gmail.com>
#
# Licensed under the EUPL, Version 1.1 or – as soon they
# will be approved by the European Commission - subsequent
# versions of the EUPL (the "Licence");
# You may not use this work except in compliance with the
# Licence.
# You may obtain a copy of the Licence at:
# http://ec.europa.eu/idabc/eupl5
#
#! /usr/bin/env perl -W
use strict;
use HTTP::Response;
use HTTP::Request;
use HTTP::Cookies;
=pod
construct a cookie jar from a "Cookie: .." string you retrieve from LiveHttpHeaders or elsewhere
this should have been available out of the box :/
# find the 20 newest files under /tmp
find /tmp -printf "%A+ %p\n" | sort -nr | head -20
# you can, of course, add the usual conditions (-name, -iname, -path, ..) to the expression.
find /var/log -name "mongrel*.log" -printf "%A+ %p\n" | sort -nr | head -20