Cling

Cling Cling is a Micro Framework for Command Line Applications.

I Started working on Cling because i frequently find myself writing small CLI apps in PHP, and keep redoing code that should really be in a “Framework”.

Inspired a little by the Slim Framework.

Development and Releases are on Github

Features

  • Routing of Command Line Arguments
  • Short and Long Arguments
  • Automagic --help creation
  • Configuration

Requirements

  • PHP 5.3

“Hello World” Application

<?php
require 'Cling/Cling.php';

$app = new Cling();
$app->command('hello-world:', function($name) {
    echo "Hello $name\n";
})->help("Hello World Example Command.");

$app->run();

Bliss

Bliss A web-based RSS/ATOM aggregator

Because reading my private, mostly NSFW RSS Feeds makes me a happy puppy.

fka rssReader. see link for my first release.

Development and Releases are on Github

Check out the Demo Installation.

DESCRIPTION:

Bliss is a simple application which can be used to gather a set of RSS/RDF feeds, and compile them into one single Page ordered by Date.

I build it because i liked PlanetGnome alot, but didn’t like the Python Spycyroll.

Recently it got a slight update (as in complete rewrite) to something a bit more up-to-date.

BUT WHY?

  • I have feeds that i don’t want Google Reader to know about. (The NSFW, and authenticated kind)
  • tt-rss needs MySQL, i’d like to get rid of that dependency for my VPS
  • I don’t want a Desktop Reader.
  • And, as always: Because i can, that’s why!

REQUIREMENTS:

INSTALLATION:

  • Untar the archive into your webservers directory.
  • Open the config.ini in you favorite editor and follow the instructions in that file.
  • You need to set data_dir and cache_dir and, of course, your sources.
  • Then run php index.php --update from the commandline
  • After you’ve run the update you can open the page in your browser.

ADDING FEEDS:

There is 3 ways to do add feeds to Bliss:

  • Add them to config.ini
  • Create an OPML File, and add that to config.ini
  • Add them via the Options Menu pulldown

Bliss uses SimplePie for feed retrieval. SimplePie has Feed autodetection, so you shouldn’t have to worry about adding the RSS Feed as URL. Usually just adding a Page that has a Feed is sufficient.

LICENSE:

Released under the MIT License

Topical

Topical Topical is a Simple PHP Application to Plan your day-to-day activity. It is not a long term Todo List Management Application, never will be.

This was primarily a Project to get acquainted with jQuery and how to build a web application that only uses Ajax requests to update the Content.

The app tries to handle Time Management as outlined in the Time Management for System Administrators Book.

Development and Releases are on Github

Quick Install

% git clone https://github.com/CBeerta/Topical.git
% cd Topical
% git submodule init
% git submodule update

Requirements

  • PHP >= 5.3
  • PHP PDO SQLite
  • PHP Posix Extensions
  • PHP Socket Functions (For the Embedded Server)

Running the Embedded Server

The easiest way to have a quick look at the Application is to use the included Webserver:

% php app.php

Then connect to http://localhost:3001/ and you should be good to go. (Do NOT put this thing on the Internet)

Installation on a Webserver

Simply put the Application Directory in a Directory on your webserver, and point your browser to it.

Configuration

There are a few Options you can tweak in the config.ini.

A good idea is to move the planner.db Database File outside the document root.

Keyboard Navigation

  • a, n: Add Task
  • left, right: Navigate through Time
  • Pos1: Go back to Today

WebTail - A Tail for Files located on a Webserver

This tool allows you tail a or multiple file(s) located on a Webserver. It Uses HTTP HEAD and Partial requests to save bandwidth.

Your webserver will have to support HEAD and Partial Requests properly, modern Webservers are usually not a problem.

Usage: webtail.php [OPTION]... [FILE]...

Valid options are:
                -i            interval for updates
                --version               output version information and exit
                -q, --quiet, --silent   never output headers giving file names
                -c                   output the last N bytes

Example Output:

# php -q webtail.php -c 500 -i 1 http://eurybe.local/logfiles/access.log http://eurybe.local/logfiles/error.log

==> http://eurybe.local/logfiles/access.log <==
"-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - test [23/Dec/2010:11:51:33 +0100] "HEAD /logfiles/access.log HTTP/1.1" 200 - "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - test [23/Dec/2010:11:51:33 +0100] "GET /logfiles/access.log HTTP/1.1" 206 592 "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - test [23/Dec/2010:11:51:33 +0100] "HEAD /logfiles/error.log HTTP/1.1" 200 - "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - - [23/Dec/2010:11:52:15 +0100] "HEAD /logfiles/access.log HTTP/1.1" 200 - "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - - [23/Dec/2010:11:52:15 +0100] "HEAD /logfiles/error.log HTTP/1.1" 200 - "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - - [23/Dec/2010:11:52:15 +0100] "HEAD /logfiles/access.log HTTP/1.1" 200 - "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"

==> http://eurybe.local/logfiles/error.log <==
/eurybe.local:9080/characters/index
[Thu Dec 23 11:29:48 2010] [error] [client 192.168.1.47] ale curl query http://api.eve-online.com/eve/CharacterInfo.xml.aspx, referer: http://eurybe.local:9080/characters/index
[Thu Dec 23 11:29:48 2010] [error] [client 192.168.1.47] , referer: http://eurybe.local:9080/characters/index
[Thu Dec 23 11:51:57 2010] [notice] Graceful restart requested, doing restart
[Thu Dec 23 11:51:57 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations

==> http://eurybe.local/logfiles/access.log <==
192.168.1.47 - - [23/Dec/2010:11:52:15 +0100] "GET /logfiles/access.log HTTP/1.1" 206 934 "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - - [23/Dec/2010:11:52:15 +0100] "HEAD /logfiles/error.log HTTP/1.1" 200 - "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - - [23/Dec/2010:11:52:15 +0100] "GET /logfiles/error.log HTTP/1.1" 206 500 "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"
192.168.1.47 - - [23/Dec/2010:11:52:16 +0100] "HEAD /logfiles/access.log HTTP/1.1" 200 - "-" "$Id: webtail.php 847 2010-12-23 10:40:55Z claus $"

Download the Latest release Here.

GPSViz

GPSViz is a simple Web Application used to present GPS Files recorded by various Devices.

Requirements:

  • Any Webserver (Tested on Apache, but anything that does PHP should do)
  • PHP 5.2+
  • gpsbabel binary, and php needs to be able to use exec()

Installation:

  • Untar Archive or Checkout SVN Repository to a Webservers directory of your choice
  • Tune applications/config/appconfig.php

Running Demo
Github Repository
Download

Feel free to leave a comment with Bugs you encounter, or any features you'd like to see.

EvE Tool

Eve Tool is a PHP Application that gives you information about your EvE Online Characters through the API CCP Provides. All Available in PHP Source, released under the GPL for you to host on your own Server.

Features:

  • Character Overview of Skills, Attributes
  • Transaction List of your latest Ingame Transactions
  • Wallet Journal with a Daily overview of your income.
  • Assets. Look into Containers, check what Ships you have where including fitting, Overview of your Blueprints and a view on your global Mineral Stock.
  • Check what industry jobs are currently running, have finished or when they will finish.
  • View all your Buy and Sell Orders.
  • Check which Agents are available to you, with Locations, and if you have the Standings to use them.
  • Extensive T1 Production helper. You choose the product, the Site tells you what you still need in minerals.

Screenshots
Github Repository
Latest Snapshot
Installation instructions

EvETimer

A little Python/GTK applet that can Monitor EvE Character Training, released under the GPL. If you feel like taking over this project contact me. I’ve Stopped using Linux on the Desktop a while ago, thus have no use for it anymore.

Applet

Requirements:

  • PyGTK 2.6.0 or newer
  • GTK 2.6.0 or newer
  • Python 2.4 or newer

Installation:

run ‘python setup.py install’ as root

Github Repository
La(te)st Release (v0.9.2)

mkgallery.pl

One of my first, and only Perl Projects, way back from 20012002. Found it in one of my Backup locations, and committed all versions i still had to my Subversion repository.

Desscription from one of the Pages that still references to it:

The mkgallery.pl is a Perl based script that allows you to create an index of image files in a directory and to display them on a HTML page. The script scans the directory for images and creates thumbnails automatically. In addition, there is an option to specify the number of images that you would like to display on a page and also you can resize the height and width of the images.

Usage:

mkgallery.pl V0.9.2 - Generate Image Gallerys from current, or
specified directory.

© Claus Beerta claus@beerta.de

Usage: mkgallery.pl [OPTIONS]… [DIRECTORY]…

Where Options is one of: -h, –help Show this helptext -r, –recursive Generate gallerys recursivly -q, –quiet Disable output -i, –image FILE Image to use for directorys -m, –maximage NUM Maximum number of images on one page

Changelog:

- Added img tags option, slows down overall processing, but speeds up browsing (-s)
- Quiet Mode, good for crons
- 2001-05-14 Minor bugfixes, help updated
- 2001-06-09 Added a option to specify a directory image (-i)
- 2001-08-21 Added the verbose option, ok its stupid, since it somehow conflicts
             with the quiet option, but who cares …
             Also fixed some minor stuff (comparing numbers with stringcompares .. stupid me)
- 2001-08-22 Cleanups, and fixed yet another bug™
- 2001-09-06 Added an option that allows you to specify how many images are shown on one
             page, as suggested from Eric
- 2002-08-19 Removed the quiet mode, and added scaling of images to different sizes
- 2002-08-20 Also removed the setsize option

I haven’t used it in a long time, so no idea if it still works. Released under the GPL License, so feel free have a go at the code :-) (And don’t blame me if it eats your files)

SVN Download (v0.9.2)