Skip to main content
josch's user avatar
josch's user avatar
josch's user avatar
josch
  • Member for 10 years, 9 months
  • Last seen more than a week ago
awarded
Loading…
comment
What does the (!) mean after uptime on htop
@Christoph one of my machines is at 1028 days but still only a single exclamation mark... sadge... 😢
comment
Convert in command line an sfd file (fontforge) to ttf, otf, woff, svg
The produced ttf misses metadata from the input sfd like copyright, weight, version. Those are filled when doing the conversion in the GUI. How do I keep these fields when converting via the command line?
comment
What is the portable (POSIX) way to achieve process substitution?
Note that this only works in situations where the input is finite. Oftentimes I find myself desiring a portable replacement for process substitution especially in cases where a process generates content on demand or dynamically, meaning you cannot even create a temporary file. One such scenario is sort --random-source. In these cases, this approach will not work but instead enter an infinite loop.
comment
Checking if an input number is an integer
Thank you, that was a very educative read! I've adjusted my answer accordingly and will go through my own shell scripts fixing these instances.
revised
Checking if an input number is an integer
added 492 characters in body
Loading…
answered
Loading…
comment
Checking if an input number is an integer
"Do not use [0-9] which often matches a lot more" -- in which shell? Why? Where did you see this behavior in the wild?
awarded
comment
Find out disks, which do not have any partitions/LVs mounted
It should be noted that despite its name and despite it not being mentioned anywhere in its manual page, lsblk will also list lvm2 volumes, luks partitions and so on.
comment
comment
List partition type GUID's for all disks from command line?
Since the original question mentioned that this is for a script, the -P option to lsblk might be of interest which prints the desired values in a way that can be eval-ed in a shell script.
awarded
comment
How do I make my laptop sleep when it reaches some low battery threshold?
@MartinMassera one has to manually press the power button
awarded
awarded
Loading…
comment
Ghostscript + QPDF and PDF/A-1b validation: how to add EOL separator before endstreams
Still no luck. Did it really work for you? Even with gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE -dSAFER -sColorConversionStrategy=UseDeviceIndependentColor -dCompressFonts=true -dEmbedAllFonts=true -dPDFA -dPDFACompatibilityPolicy=1 -dDetectDuplicateImages=true -dFastWebView=true -sOutputFile=out.pdf in.pdf the result will not have icc profile data embedded and is thus not pdf/a-1b compliant. What did help was to add /usr/share/ghostscript/9.27/lib/PDFA_def.ps (on Debian) as an additional input. That file adds srgb.icc from /usr/share/color/icc/ghostscript/ to the result.