Metadata in PDF files can be stored in at least two places:
- the Info Dictionary, a limited set of key/value pairs
- XMP packets, which contain RDF statements expressed as XML
| #! /usr/bin/env ruby | |
| # NOTE: Requires Ruby 2.1 or greater. | |
| # This script can be used to parse and dump the information from | |
| # the 'html/contact_info.htm' file in a Facebook user data ZIP download. | |
| # | |
| # It prints all cell phone call + SMS message + MMS records, plus a summary of each. | |
| # | |
| # It also dumps all of the records into CSV files inside a 'CSV' folder, that is created |
| # Laravel queue worker using systemd | |
| # ---------------------------------- | |
| # | |
| # /lib/systemd/system/queue.service | |
| # | |
| # run this command to enable service: | |
| # systemctl enable queue.service | |
| [Unit] | |
| Description=Laravel queue worker |
| license: mit |
| #!/bin/bash | |
| SLEEP=`echo "$1*3600" | bc` | |
| echo "Alarm triggered in $1 hours" | |
| sleep $SLEEP > /dev/null | |
| echo "Starting playing" | |
| mpc volume 50 > /dev/null | |
| mpc play > /dev/null | |
| mpcfade.sh 50 65 0 | |
| mpcfade.sh 65 75 1 | |
| echo "Turning on TV and switching input to me" |
If you love deploying websites using Github, but for some reason want to use your own server, this script might be exactly what you need.
github.php somewhere on your PHP-enabled web server, and make it
accessible for the outside world. Let's say for now the script lives
on http://example.com/github.php| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/calendar-view |
| Drupal.settings.isTouchDevice = function() { | |
| return "ontouchstart" in window; | |
| } | |
| if ( Drupal.settings.isTouchDevice() ) { | |
| Drupal.behaviors.jQueryMobileSlideShowTouchAdvance = { | |
| attach: function(context, settings) { | |
| self = Drupal.behaviors.jQueryMobileSlideShowTouchAdvance; | |
| jQuery.each(jQuery(".views_slideshow_cycle_main.viewsSlideshowCycle-processed"), function(idx, value) { | |
| value.addEventListener("touchstart", self.handleTouchStart); |
| license: gpl-3.0 |