Some examples: Find files in current directory that have a size of 400 bytes or more: sfind -min 400 Find files in /etc that have a size of 50 kilobytes (1 kilobyte = 1024 bytes) or more: sfind -dir /etc -min 50k Find files in /var with size between 100 and 500 megabytes, suppress warnings, […]
Artikel in Kategorie "Programmierung"
Transforming Sets of Strings to their Common Prefix Notation
2. Februar 2024 in Programmierung.
Update Aug 20 2022: There is an update to this article that fixes a known issue. There is also a Git repository containing a reference implementation. Any two strings s1, s2 have a common prefix cp, which is the string of characters that s1 and s2 have in common up from the start. If s1, […]
WordPress-Plugin to Embed Gitlab Project Information
1. Januar 2022 in Programmierung, Technik.
For my personal use, i wrote a small WordPress plugin that allows me to embed a link to a Gitlab repository, a list of commits and a link to the releases of that project in a WP post. Example (linebreaks added to shortcode for readability): [gitlab-show-project url=“https://tk-sls.de/gitlab“ project_id=43 max=3 author=“none“ releases=“latest“] Output:
Create or Append a debian/changelog Entry
31. Oktober 2021 in Administration, GNU/Linux, Programmierung, Technik.
Since i always have to look this up, everytime i need it, i write it down once, as „note to self“! NAME=“John Smith“ EMAIL=j.smith@example.org \ dch –create \ –package my-package \ –newversion 0.1 \ „Initial release“ And that’s it! 🙂
Protokoll meines Vortrags „Bourne Shell“ bei UUGRN e.V.
20. August 2023 in GNU/Linux, Programmierung, Technik.
Ich hatte am 5.2.2021 die Ehre, einen Vortrag zum Thema „Bourne Shell“ auf der Veranstaltung FIXME der UNIX-User-Group Rhein Neckar, UUGRN e.V. halten zu dürfen. Hier ein Link zu den schriftlichen Aufzeichnungen dazu: https://wiki.uugrn.org/Bourne_Shell Abseits des Vortrags, den ich auch mit Live-Demos usw. durchgeführt habe, hat die Mitschrift nur begrenzten Nutzen, aber die Linkliste am […]
Python3 GTK3 TextView Drag-and-Drop Example
31. Dezember 2020 in GNU/Linux, Programmierung.
Just a small finger exercise …
Bourne to Bourne Again Shell Forward Compatibility
20. August 2023 in GNU/Linux, Programmierung.
Introduction In this article i try to find out, if Bourne Shell scripts are runnable in Bourne Again Shell without modification. If not, i advice on how to modify the code so that it runs on both Shells. An interpreter for some variant of Bourne Shell is available as an executable /bin/sh on most Linux […]
Comparing Distinguished LDAP Names
6. August 2020 in Administration, GNU/Linux, Programmierung.
In a Bourne Shell script, a distinguished name (DN) for performing an LDAP-query is held in a variable: dn=“cn=Malmø,ou=County Capitals,dc=Sweden,dc=Europe“ For the purpose of demonstration, this example DN contains a non-ASCII character. Let’s write a Bourne Shell function that escapes such special characters as requested by RFC 4514 using perl’s Net::LDAP::Util: canonical_dn() { perl -s […]