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
| # 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 |
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
| <?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])); |
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
| 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 |