© 2023 PodTECH IO
All rights reserved.

Get in Touch

UNIX

How to create a sub-domain in Linode

How to create a sub-domain in Linode Login to Linode Members Area Go to the DNS Manager tab. Click the domain name you want to put the sub-domain to. Scroll to the middle of the page and look for the A/AAAA Records. Click on Add a new A/AAAA Record In the Hostname input box, input […]

Miscellaneous

David Loyds Gym Membership…

David Loyds Gym Membership… So your thinking of signing up for the gym at David Loyds? Just remember, if you ever want to leave you need to give them written 3 months notice!! I was with them for around 18 months… Not very fair seeing as im paying over ¬£100 a month for our joint […]

Datacentre

Calculating PUE

Power Usage Effectiveness (PUE) Power Usage Effectiveness (PUE) is a standard developed by The Green Grid‚Ñ¢ consortium to provide a clear answer to the primary issue surrounding energy efficiency within the data center which is how much power is devoted to driving the actual computing/IT components (servers, for example) versus the ancillary support elements such […]

Perl

Get Parent PID

Get Parent PID [perl] my $parent_id = getppid(); print “$parent_id\n”; [/perl] NAME getppid – get parent process ID SYNOPSIS getppid DESCRIPTION Returns the process id of the parent process. DISCLAIMER We are painfully aware that these documents may contain incorrect links and misformatted HTML. Such bugs lie in the automatic translation process that automatically created […]

UNIX

SCCS – script header

SCCS – script header While sccs checked out a file, add these lines to the top of your script to preserve versions and file information. [bash] # Master: %P% # SCCS id: %Z% %M% %I% %E% [/bash]

Perl

Perl – Lock Files (flock)

Perl – Lock Files (flock) The following script is an example of using lock files in Perl. This prevents more than one user or process accessing a file at a time. [perl] use Fcntl qw(:DEFAULT :flock); use Fcntl ‘:flock’;¬†¬†¬†¬† #LOCK_* constants my($lockneedsremoving)=0; my($lockfilename)=”/var/.pwd.lock”; unless (createlock()) { print “Lock has been created”; print “This is only […]

UNIX

VNC server on Unix

VNC server on Unix Starting the VNC server on Unix for the First time VNC Server installs in /usr/local/bin, you need to make sure you have both /usr/local/bin and /usr/openwin/bin in your path, also the first time you run vnc you need to setup a vnc password, this is done with the /usr/local/bin/vncpassword command. After […]

PHP

PHP Date

The PHP date() function is used to format a time and/or date. The PHP Date() Function The PHP date() function formats a timestamp to a more readable date and time. A timestamp is a sequence of characters, denoting the date and/or time at which a certain event occurred. Syntax date(format,timestamp) Parameter Description format Required. Specifies […]