Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
New version of pocgi.py fixes encoding issues
-
Improved version of formdata.py consists of one function only, which expects you to pass any form data as dictionary
-
pocgi.py (plain old cgi) aims to be a replacement for Python's cgi library, which was deprecated in 3.11 and will be removed in 3.13 (see PEP 594)
-
formdata.py shows how to do multipart/form-data HTTP POST uploads with Python's urllib only
-
Benchmarked two additional devices for video encoding speed
-
I benchmarked my graphic cards for video encoding speed and kept the results as my personal reference
-
How to use Apache Tomcat and TLS/SSL certificates in PEM or PKCS12 format
-
New version of privatebinc.py, which is a simple Python client for PrivateBin, now allows you to specify a password, which the user has to enter in order to view the text and maybe the attached file.
-
Corollary of yesterday's SQLite ramblings: The following command initialises the database and the counter table, but does not modify them if the event counter has already been used.
-
Updated initramfs for LVM runs fsck (just for ext2, ext3, and ext4) if you add "dofsck" to the kernel command line, and shows how to create an LVM snapshot of your root filesystem if you add "dosnap" to the kernel command line
-
The other day I needed an event counter shared between scripts written in Python and Perl.
-
regexplode.pl shows what happens if you accept arbitrary regular expressions, while regexplode.py shows why you want to use RE2 or pyre2
-
bsdrss prints the state and RSS of a process on DragonFlyBSD, FreeBSD, NetBSD, and OpenBSD
-
spf.pl shows how to use Perl's Mail::SPF module
-
rtgen.py generates blackhole routes suitable for stress testing the Bird Internet Routing Daemon and other network gear, e.g. your BGP routers
-
pgnumeric.c shows how to store values of type numeric in a PostgreSQL database using C datatypes
-
rrdquery.pl version 5 just comes with correct examples
-
double.pl, which finds duplicate files, updated after more than 17 years.
-
nswl@.service shows how to run multiple instances of the NetScaler web server logging client on a recent Linux distribution as it comes as service unit for systemd
-
Kernel-System-LinkObject.pm.diff is a patch for the LinkObject module of OTRS and Znuny.
-
s3.php shows how to use the AWS SDK for PHP with an S3 object storage
-
smtp.py shows how to send quoted-printable encoded emails containing UTF-8 characters in both the subject and the body using Python's smtplib and email.message modules
-
argparser.py shows how to use Python's argparse module
-
mce.py is just a Python CGI script to play around with TinyMCE
-
HTML files and folder symbols
-
How to show git log entries up to a certain date: $ git --no-pager log -1 --until "2023-06-22" $ git --no-pager log -1 --until "last year" You can then use the commit hash from the above outputs for further processing, e.g.: $ git diff --stat <commit hash>
-
Python: import datetime, zoneinfo print(datetime.datetime.now().astimezone(zoneinfo.ZoneInfo("Europe/Lisbon")).isoformat()) Perl: { local $ENV{TZ} = "Europe/Lisbon"; print scalar localtime(); } bash, zsh, sh: TZ="Europe/Lisbon" date (t)csh: setenv…
-
rrdquery.pl version 4 (obviously) comes with version numbering, an example section, and fixes two bugs, where a "IS NULL" predicate wasn't parsed correctly and an aggregate function was always expected
-
dnskey2id.pl shows how to derive the key id for a given DNSSEC dnskey in Perl
-
LogBlitz version 15 reduces the number and size of http cookies, and displays the number and size of the selected logfiles
-
ampctrld version 2 lowers the number of addresses to listen on to a maximum of 16
-
New version of kvmlib comes with 5 new features: The cmd command, which connects you to the monitor of a running QEMU instance, now accepts additional parameters, which are passed to the monitor Previously, the detect-zeroes option for hard drives was set…
-
The CARP (Common Address Redundancy Protocol) of the upcoming FreeBSD 14 has two major changes: By using the peer or peer6 parameter, carp uses unicast instead of multicast.
-
New version of kvmlib allows you to use a different QEMU executable than qemu-system-x86_64, and exits with an error message if you use the cdrom command without a path to an ISO file
-
If your recent Gentoo Linux box complains that /var/tmp already exists and is not a directory during system boot, i.e. maybe because it is a symlink to /tmp, then create a file named /etc/tmpfiles.d/tmp.conf containing this configuration: L /var/tmp - - -…
-
If you run a Cyrus IMAP server that suddenly stops exporting some or even all calendar events, you might consider reconstructing the respective mailboxes, e.g. on a FreeBSD server: # su - cyrus % sbin/reconstruct -nrGR user.username.
-
grapheqd version 7 supports IPv6 addresses and can listen on multiple addresses at the same time
-
As announced 18 days ago, ampctrld is a re-implementation of ampcontrol in plain C.
-
C, using the OpenSSL API: /* compile with: * cc -W -Wall -O3 -pipe -s -o sha512 sha512.c -lcrypto */ #include <unistd.h> #include <stdio.h> #include <err.h> #include <fcntl.h> #include <string.h> #include <openssl/evp.h> int main () { const char *fil…
-
New version of ampcontrol handles initial connection errors, and makes use of the new Buffer API of Node.js.
-
LogBlitz version 14 allows you to adjust the logout button, e.g. add a JavaScript onclick handler
-
grapheqd version 6 fixes a typo which threw an error if compiling for ALSA, i.e. on Linux
-
LogBlitz version 13 allows you to assign user roles based on additional environment settings
-
LogBlitz version 12 introduces user roles
-
LogBlitz version 11 saves selected filenames in a cookie, and uses different cookies for each user
-
Python: import hashlib, base64 print(base64.b64encode(hashlib.sha512(open("/etc/passwd", "rb").read()).digest())) Perl: use Digest::SHA; my $b64_sha512 = Digest::SHA->new("sha512")->addfile("/etc/passwd", "b")->b64digest; print($b64_sha512, "=" x ((4 - l…
-
LogBlitz version 10 comes with a performance improvement if you don't search for regular expressions
-
My new howto makes use of mod_auth_form
-
Updated my howto Small Python container for Docker to run as unprivileged user, and to display the correct local time and date
-
New version of s3file.py explains the meaning of file flags in the long format output of LS-L and such (see --examples), and adjusts shown filenames to the left