So in my last job I was standing up a POC and part of it needed a storage gateway. Now I like to think of myself as semi-intelligent but bloody heck I cannot for the life of me get my head around CFT there is just too much JSON (and I like JSON A LOT more than XML). Step forward Terraform, what took me ~a week in CFT / AWS Console I was able to completely do in Terraform in 2 Days (1 of which was spent struggling with what is to be covered in this post).
Read More
Docker and HAProxy a match made in heaven
Once upon a time I setup my home network, I could access stuff from outside and all was well in the world. Over time this home network grew and I exposed more and I forwarded more ports from the router to the backend server apps. A few of which were as follows, each had their own port and own domain.
Read More
Fixing the Virgin Media Superhub 3
Thanks to Virgin Media Community for pointing me in the correct direction:
Summary of steps:
* Open Chrome
* Open Developer Console
* Select cog and enable “Log XMLHttpRequests”
* Open Router URL http://192.168.0.1
* login
* Get your n number: _n=XXXXXX from then end one of the requests
VMWare Integrated Openstack issues
Standing up the environment with the integrated Database is easy enough however if you want to add Active Directory into the mix it gets more fun.
During this I encountered the following issues:
- No way to change without blowing away the deployment and re-deploying.
- Error messages were often misleading.
- AD Structure very Important
- Forward Slashes in AD “cn” are BAD!!
- Users without a UPN cause issues.
Compile Raspberry Pi Kernel
update: 2015-02-10: Removed folder sync as was causing builds to fail
Decided to play about with the Raspberry Pi Kernel but setting up the toolchain for a cross compile was a bit of pain not to mention remembering to download everything.
So I put together a Vagrantfile that should auto do it.
Following Variables can be edited at the top of the Vagrantfile:
Read More
CentOS 7 and OpenVPN 2.3.5 (Routed)
Decided to setup a openvpn server on a new CentOS 7 box and it was not exactly straight forward so below are the steps required, this should be enough to get started
On a (minimal) centOS 7 box:
yum -y install gcc rpm-build vim openssl-devel lzo-devel pam-devel wget wget http://swupdate.openvpn.org/community/releases/openvpn-2.3.5.tar.gz rpmbuild -tb openvpn-2.3.5.tar.gz
if using a seperate server for as the VPN server:
scp ./RPMS/x86_64/openvpn-2.3.5-1.x86_64.rpm server:/tmp
MSBuild and 7Zip SFX
The following allows you to package up your build output into a SFX file with custom properties that appear when someone right clicks the SFX and chooses properties.
Useful if you need to create a zip that can be signed but want your company/product information to appear on the SFX.EXE.
Update sshd_config to use Protocol 2
Had to write an script to update SSHD to only use protocol 2 without changing any of the other settings, to be deployed via BMC Bladelogic (horrible horrible tool), but you work with what you have. The script should work across Linux, AIX and Solaris.
$> SSHProtocolUpdate.sh update [1|2] $> SSHProtocolUpdate.sh rollback
Convert XML and XSL to HTML
Just a quickie. I have a script that outputs an XML file and I use an XSL file to display it but Management wanted HTML files, the thought of having to re-code the output was disheartening to say the least. I then came across “msxsl.exe” it’s a Microsoft tool that takes a XML file and a XSL file and then generates the resultant rendered output in HTML.
http://www.microsoft.com/en-gb/download/details.aspx?id=21714
Syntax:
msxsl.exe
Changing TFS 2010 $(sourcedir)
Seemingly this can be set by editing the TfsBuildServer.exe.config on the build agent machine and changing the value of the following Key:
On a 2010 build agent this isn’t possible Read More