Get ptouch-print
git clone https://git.familie-radermacher.ch/linux/ptouch-print.git
cd ptouch-print
Check its README
cat README
Get ptouch-print
git clone https://git.familie-radermacher.ch/linux/ptouch-print.git
cd ptouch-print
Check its README
cat README
# Credit https://lewisinthelandofmachines.tumblr.com/post/662138111279644672/ubuntu-2004-on-2013-trashcan-mac-pro-61 | |
# Improves I/O throughput and latency on an old trashcan Mac Pro under Debian 12 | |
# | |
# /etc/hdparm.conf | |
/dev/sda { | |
write_cache = off | |
} |
/* | |
* Star Micronics | |
* | |
* CUPS Filter | |
* | |
* [ Linux ] | |
* compile cmd: gcc -Wl,-rpath,/usr/lib -Wall -fPIC -O2 -o rastertostar rastertostar.c -lcupsimage -lcups | |
* compile requires cups-devel-1.1.19-13.i386.rpm (version not neccessarily important?) | |
* find cups-devel location here: http://rpmfind.net/linux/rpm2html/search.php?query=cups-devel&submit=Search+...&system=&arch= | |
* |
# If you migrate your repos from Bitbucket to Gitlab | |
# Here are some nginx rewrites to redirect common routes to their Gitlab equivalent | |
# | |
# Probably in a `location / {}`: | |
# File URLs, e.g. https://bitbucket.example.com/projects/XYZ/repos/xyz-repo/browse/app/Http/Controllers/HomeController.php | |
rewrite ^/projects/([^\/]*)/repos/([^\/]*)/browse/(.*) https://gitlab.example.com/$1/$2/blob/master/$3; | |
# Commit URLs, e.g. https://bitbucket.example.com/projects/XYZ/repos/xyz-repo/commits/afd8adac26d8f77e40aad19e2e8584aae1abcca2 | |
rewrite ^/projects/([^\/]*)/repos/([^\/]*)/commits/([a-f0-9]+) https://gitlab.example.com/$1/$2/commit/$3; |
The MySQL 5.7.22 to 8.0.11 upgrade contains some serious non-backwards-compatible changes (among them authentication - from mysql_native_password to caching_sha2_password by default) and, in my case, could not migrate or upgrade some tables due to a "error in fixing SE data" error discussed at https://bugs.mysql.com/bug.php?id=87229.
I tried dropping unneeded databases that contained those problematic tables and got to the point where mysqld
was happy to run, but all my databases seemed to disappear despite being present on disk, mysql_upgrade
failed to run with "Error occurred: Cannot setup server variables." and mysqld 5.7 now segfaulted on startup presumably due to changes in the database files.
I restored /usr/local/var/mysql
from backup and installed MySQL 5.7 again.
# Read domain names from a CSV file, output another containing results of some WHOIS database lookups. | |
# | |
# requires whois, whois-parser gems | |
require 'rubygems' | |
require 'optparse' | |
require 'whois' | |
require 'whois-parser' | |
require 'csv' |
require 'csv' | |
# usage: ruby faxstats.rb /path/to/xferfaxlog | |
# | |
# A quick and nasty script to parse a HylaFAX xferfaxlog file and print | |
# a human-readable report of the number of faxes received, grouped by | |
# destination number, totalled by day. Specify the date range of interest | |
# in the script by setting from_date and to_date. | |
tsv = File.read(ARGV[0]) |
<?php | |
// Copy the following snippet into your active theme's functions.php file | |
// After updating the placeholder phone, email and company name values. | |
function replace_system_tag($text) { | |
$replace = array( | |
'|PHONE|' => '(02) 9555 5555', | |
'|STAFFEMAIL|' => sprintf('<a href="mailto:%1$s">%1$s</a>', 'test@example.com'), | |
'|LEVEL|' => 'ACME Pty Ltd', |
// First, install the emeraldwalk.RunOnSave extension. | |
"emeraldwalk.runonsave": { | |
"commands": [ | |
{ | |
"match": "\\.dot$", | |
"cmd": "dot -Tpng -o \"${file}\".png \"${file}\"" | |
} | |
] | |
} |
I hereby claim:
To claim this, I am signing this object: