About


Name: Damian Pasternok
Nick: crh
Nationality: Polish
Residence: Warsaw
Certificates: # 150-010-841 RHCE, RHCSA, RHCoE-Server Hardening
# ECC43661837879 CEHv8
OS: Linux screenshot
Occupation: one-man army
Workplace: Alior Bank SA - Warsaw, Poland
Interests: POSIX/GNU operating systems, computer programming, cyber security, digital forensics, astronomy, astrophysics, parapsychology, music (playing organ, drums), mechanical wrist watches, urban exploration, railroads, submarines and many other.
Contact: IRC: #katedra at IRCnet
Email: <my forename> at pasternok.org, PGP: local or pgp.mit.edu mirror

Warning!

Above address is made available only for private communications and I don't want to receive any advertisements, offers and other bulk mailings. Sending such things to the above address you authorize me to place your addresses on any available blacklists and blocking them everywhere and every time. Sending bulk mail to the above address you authorize me to make your message publicly available. More about it: http://www.cauce.org/.

Geek Code


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT/M/MU/S d- s:+ a C+++$ UB+++$L++++$ P+$ L++++$
!E W+++$ N* o? !K !w !O M+ !V PS PE Y+ PGP++ !t !5 !X
!R tv-() b+(++) DI D G e+++>++++ h+>--- r+>+++ y+
------END GEEK CODE BLOCK------
ungeek

Ambient


This is essentially electronic atmosphere music designed to relax the listener with its soothing vibes. Generally under 90 bpm or totally beatless, ambient music takes you on a relaxing or thoughtful journey using a variety of sounds, from wind and whale sound samples, to richly textured electronic landscapes.

» Proton Kinoun - Illimitable
» Mooma - Shelter

Programming


Various source codes written by myself. Everything is GPLv3. Most of them are old and outdated.

Python

» Sense HAT Munin Plugin

Raspberry Pi Sense HAT board triple sensor plugin for Munin monitoring tool. There is also an alternative version available including additional single DS18B20 digital thermometer using for outdoor temperature measurements.

» Wake On Lan - Magic Packet

PyGTK-based tool for sending broadcast frame called Magic Packet to turn on a computer remotely (tested in local networks and Internet). The program uses remote or local Top-level Domains list downloaded from IANA to validate the FQDN (can be updated by --update-tlds option).

There are two ways to use Wake On LAN over Internet:

  1. You can send Magic Packet directly to broadcast address. For example 23.12.78.56/255.255.192.0 will sent MP to 23.12.127.255.
  2. If the computer is behind NAT you'll need a special iproute2 and iptables rules to forward broadcast messages.

Example:

#

#

Above example will work for 192.168.0.0/24. 192.168.0.254 is an unused IP, eth1 - WAN interface, eth0 - LAN. iproute2 assigns 192.168.0.254 address to MAC ff:ff:ff:ff:ff:ff. iptables forwards received packets from port 48777 to 192.168.0.254:48777 - this address has assigned the broadcast MAC, so all packets will be sent to every computer in LAN.

» ipv6calc

Simple utility to calculate pointer domain names for IPv6 prefixes.

Example #1:

$

Output:
 

Example #2:
$

Output:
 
» RTBackup

Real-time backup script which periodically checks modification time of each file and creates backup of the file if it has been modified, with preserve the file and parent directories structure and permissions.

bash

» snmp__tonerlevel_hp

HP Laser printer Toner levels Munin Plugin based on the code originally written by Nicolas Bernaerts. New version supports monochrome laser printers (BLACK_ONLY option). 1.3.6.1.2.1.1.6.0 OID (sysLocation) has been replaced by 1.3.6.1.2.1.1.5.0 (sysName).

» zmstop

Very simple but useful Bacula pre-backup script for Zimbra Collaboration Suite (Open Source Edition). The script kills all orphaned processes not properly closed by Zimbra's zmcontrol (e.g. MySQL) before backup. The script was made for standalone Bacula installations that are allowed to connect to Zimbra server via SSH key authentication. Therefore it also protects killing of itself and the SSH session (BeforeJob non-zero status).

Recommended config (script should be placed into /opt/zimbra):

# bacula-dir.conf
JobDefs {
# ...
RunBeforeJob = "ssh zimbra@mailserver ./zmstop.sh"
RunAfterJob = "ssh zimbra@mailserver zmcontrol start"
# ...
}

Perl

» GEL2-SW8 Switch Stats

Script that creates bandwidth charts of switch ports collected over SNMP (compatible with 'GEL2-SW8' Linux-based 8-P Gigabit L2 Managed Switches: RubyTech GS-2108C, Repotec RP-G0802L).

PHP

» Jabber Account Registration Form

Simple PHP form which can be used by jabberd+mysql to register new XMPP account or change password.

Various

» muninlite LEDE >= 17.01 patch (fixes some buggy sed df regexps and ignores /, /dev and /rom mounts which are unnecessary) download
» lastfm.pl - last.fm now playing script for irssi (Perl) download
» rc.hurricane - Hurricane Electrics IPv6 update script (bash) download
» backup.sh - rsync-based backup script (bash) download

» Linux vmsplice Local Root Exploit fix/patch for 2.6.23.14(-grsec)

download

» NVIDIA 96.43.05 Display Driver patch for Linux 2.6.26

download

» Linux >= 2.4.4, >= 2.6.0 NULL pointer dereference due to incorrect proto_ops initializations fix

Temporary fix:

#
download

» Slackware packages and SlackBuilds

browse

» Old Linux kernel configurations for desktop (vanilla+grsec w/NAT, ACPI, I2C, USB DSL modem, etc.) and server (Hardened Gentoo w/ iptables, PaX/grsecurity and QoS)

browse

Articles


Links


GNU and Linux

Sites of my friends

Other


Copyright © 2006 - 2017 Damian Pasternok | Last modified: 2017-09-04 20:35:18 UTC