© 2023 PodTECH IO
All rights reserved.

Get in Touch

Miscellaneous

Opt out of BT FON – BT Openzone

Opt out of BT FON – BT Openzone BT may activate your BT home hub to automatically become a BT openzone public hub!! Little do most people know that when you sign up to BT you are automatically opted IN to this service!!! Yes annoying. You can opt out … this link worked for me: […]

UNIX

Extract CREATES from SQL dump

Extract CREATES from SQL dump If you are trying to extract the create routines from a SQL dump, this might help you! Basically it picks out the contents between “CREATE” and “\;” You can modify these two variables as need be..   [bash] cat dump.sql |awk ‘/CREATE/,/\;/ { print $0 ; }’ > create.sql   […]

Perl

Perl – Fork and Kill a System Process on Timeout

Perl – Fork and Kill a System Process on Timeout [perl] $pid = open(PIPE, “$command |”) or die $!; eval { local $SIG{ALRM} = sub { die “TIMEOUT” }; alarm($timeout); while (<PIPE>) { $data = $_; }; close(PIPE); alarm(0); }; if ($@) { die $@ unless $@ =~ /TIMEOUT/; kill 15, $pid; close(PIPE); $? ||= […]

Miscellaneous

Removing the AVG secure search bar!!

Removing the AVG secure search bar This annoying install is a bit of a bugger and doesnt allow you to strictly change your home page back to normal. What you need to do is go to Start -> Control Panel -> Uninstall Programs and select ‘AVG Secure Search ToolBar’  In the next pop up, select […]

UNIX

Restrict Media Wiki Access

Restrict Media Wiki Access To prevent new user registrations add the following to LocalSettings.php # This snippet prevents new registrations from anonymous users # (Sysops can still create user accounts) $wgGroupPermissions[‘*’][‘createaccount’] = false; To prevent anonymous users reading pages add the following to LocalSettings.php #Disable reading line, for anonymous (not-logged-in => * ) : $wgGroupPermissions[‘*’][‘read’] […]

UNIX

Amazon AMI – ‘ launch config name not found’

Amazon AMI – ‘ launch config name not found’ If you are receiving this: as-create-auto-scaling-group:  Service error: Launch configuration name not found – null Ensure you have set the region!! This was missing out of many of the docs I have read and appears that it only affects EU nodes.   For example; as-create-auto-scaling-group xxscale […]

UNIX

Amazon – Ubuntu CPAN Perl Install

Amazon – Ubuntu CPAN Perl Install If you experiencing any issues with installing, upgrading or managing CPAN perl libraries on a refreshley deployed Amazon EC2 instance make sure you have your build essentials!! Run: sudo  apt-get install build-essential    

Miscellaneous

SNMP Cannot Find Module

For error such as: Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none) Cannot find module (SNMPv2-TC): At line 10 in /usr/share/mibs/netsnmp/UCD-DLMOD-MIB Cannot find module (SNMPv2-SMI): At line 34 in /usr/share/mibs/netsnmp/UCD-SNMP-MIB Cannot find module (SNMPv2-TC): At line 37 in /usr/share/mibs/netsnmp/UCD-SNMP-MIB Did not find ‘enterprises’ in module […]