Loading...

Category: HOW-TOs

MySQL—Some Handy Know-How

I recently was talking to someone over IRC who was helping me with a PHP
app that was giving me trouble. The extremely helpful individual asked
me to let him know the value of a certain field in a record on my MySQL
server. I embarrassingly admitted that I’d have to install something
like PHPMyAdmin or Adminer in order to find that information. more>>

Share

Securi-Pi: Using the Raspberry Pi as a Secure Landing Point

Like many LJ readers these days, I’ve been leading a bit of a
techno-nomadic lifestyle as of the past few years—jumping from network
to network, access point to access point, as I bounce around the real
world while maintaining my connection to the Internet and other networks I
use on a daily basis. more>>

Share

An Introduction to Tabled Logic Programming with Picat

Picat is a new logic-based programming language. In many ways, Picat is
similar to Prolog, especially B-Prolog, but it has functions in addition
to predicates, pattern-matching instead of unification in predicate heads,
list comprehensions and optional destructive assignment.
Knowing some Prolog helps when learning Picat but is by no means required.
more>>

Share

Vagrant Simplified

I admit it, some tools confuse me. I know they must be amazing, because
programs don’t get popular by being dumb (well, reality TV, but that’s
another story). I have the same sort of confusion with Vagrant that I
have with Wine, Docker, Chef and countless other amazing tools people
constantly rave about. So in this article, I’m going to break down Vagrant into
its simplest form.
more>>

Share

Bash Collection – Server Health Monitor for getting quick information of server status

The last three days, I’ve created a small bash script that outputs some important server health information. I’m using this script for displaying the server health on my Raspberry Pi at home. I’ll buy one of these official 7 inch touch screen displays for the Raspberry Pi and then show these health information on it. […]

Share

Bash Collection – Howto recursively replace file headers of source files

Gerhard Gappmeier has submitted a really cool and useful bash script, that he is using for years now. It is very helpful for developers. This scripts can replace file headers from C/C++/JAVA header and source files. Often it’s necessary to replace the license conditions in multiple source files, update the copyright year, or simply make […]

Share

Bash Collection – Script to get the real amount of used memory of an application

The following script was written by me to be able to get the really used amount of memory for one single application. Since it isn’t that easy to get the used memory through “top” or “ps” or similar tools, this may be helpful for somebody. The output is in megabytes and looks like this:

Share

Bash Collection – Script for cutting parts from large file

The following small script was written by me in order to be able to simply cut parts from very large text files. It is very useful for database administrators to for example cut the SQL statements for creating and restoring one single table from a really large SQL dump. For this you would need to […]

Share

Where’s That Pesky Hidden Word?

I’ve been promising my 11-year-old for a long time now that I’d write a
program that would let you build custom word searches based on a list of
words given by the user. I wrote one years and years ago in C, but since I
can’t find that code any more and wanted to tackle another interesting
project for this column, that’s what I’m going to look at herein.
more>>

Share

Hacking a Safe with Bash

Through the years, I have settled on maintaining my sensitive data in
plain-text
files that I then encrypt asymmetrically. Although I take care to harden my
system and encrypt partitions with LUKS wherever possible, I want to secure my
most important data using higher-level tools, thereby lessening dependence on
the underlying system configuration. more>>

Share