Archive: 2019

expand alias in shell script

Defining an alias within a shell scriptIf there’s a need to define an alias within a shell script, shopt needs to be defined to tell the script to expand the alias. This option is enabled by default

Rename batch of files

How to rename a batch or group of fileskreese@MacBook ~/wbsvr $ ls -l total 200 -rwx------ 1 kreese 1575811233 34652 Mar 19 16:49 httpd.conf -rw-r--r-- 1 kreese 1575811233 13609 Mar 25 08:30 vho

Querying Data with PL/SQL: Implicit Cursor FOR Loop

Looping through result sets from SELECT statement using PL/SQLOne day, I was looking to update a bunch of records with a stored procedure via a for loop using PL/SQL. In order to accomplish this, I u

Various Puppet Errors

Error: Could not request certificate: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [CRL is not yet valid for /CN=Puppet CA generated on pemaster at 2015-03-17 12:14:32 -0500]

Home Lab DNS Using dnsmasq and Puppet

It has been a long while since I’ve published anything to my kb site, perhaps just as long since I’ve started a new job nearly 2.5 years ago. In that time, my job responsibilities have shifted from t

Zero byte a File

/dev/null (zero out) a bunch of files at oncecd /var/logcat /dev/null | tee {boot.log,cron,dmesg,lastlog,messages,secure,vzctl.log,vznetcfg.log,wtmp} >boot.log>cron>dmesg>message

netmasks table

Decimal Binary CIDR Hex------------------------------------------------------------------- 11111111.11111111.11111111.11111111 /32 ffffffff255.

nmap commands

Scan network for responsive IPsnmap -sS -O | tee nmap.log Check if port is opennmap -P0 -p1521 Scan UDPnmap -sU -p <port> <target>