Skip to content

Instantly share code, notes, and snippets.

View thebeline's full-sized avatar

Michael Mulligan thebeline

  • Brunswick, Maine, United States
View GitHub Profile
@thebeline
thebeline / list_apps.sh
Last active February 26, 2026 17:29
List XDG desktop applications with source classification and package metadata
# list_apps.sh — List installed GUI applications from XDG desktop entries.
#
# Scans all directories in XDG_DATA_HOME and XDG_DATA_DIRS for .desktop files,
# parses them, and prints each visible application with its name, installation
# source, and package metadata in a three-column table:
#
# Name [source, flags] /path/to/file.desktop
#
# Source classification (second column) reflects where the app came from:
# apt — system-wide apt install under /usr
<?php
$iterations = 1000000;
$test_cases = array(
array(
'name' => 'class_implements, sensitive, uncached',
'function' => function($className, $type) {
$parents = class_parents($className, true) + class_implements($className, true);
return (isset($parents[$type]));
begin
require 'ruport'
rescue LoadError => err
warn "Couldn't load ruport gem: #{err}"
end
namespace :import do
desc 'Import tickets from CSV File'
task :csv => :environment do