Uncategorized | Bas Grolleman https://basg.nl Stuff I'm thinking about Thu, 08 Sep 2016 07:35:18 +0000 en-US hourly 1 https://wordpress.org/?v=6.9 103160191 FOAAS WordPress Plugin https://basg.nl/2016/09/foaas-wordpress-plugin/ https://basg.nl/2016/09/foaas-wordpress-plugin/#respond Thu, 08 Sep 2016 07:35:18 +0000 http://www.basg.nl/?p=797 Because, [foaas command=”it” name=”Bas Grolleman”]

WP-FOAAS

]]>
https://basg.nl/2016/09/foaas-wordpress-plugin/feed/ 0 797
How to automate vmware-vsphere-cli-distrib install without EULA questions https://basg.nl/2016/01/how-to-automate-vmware-vsphere-cli-distrib-install-without-eula-questions/ https://basg.nl/2016/01/how-to-automate-vmware-vsphere-cli-distrib-install-without-eula-questions/#respond Wed, 13 Jan 2016 12:56:15 +0000 http://www.basg.nl/?p=698 Unpacking a tar.gz to install something is enough pain, to fully automate this I need the installer to run without asking stupid questions.

So after a quick read of the code I found the following switches.

./vmware-install.pl --default EULA_AGREED=yes ISC_COPYRIGHT_SEEN=yes

BOOM, hand’s off install. Now to package this stuff with fpm, add the above line with full path to installscript.sh and make package

fpm -s dir -t rpm -v 6.0.0 -a x86_64 --after-install installscript.sh /opt/vmware-vsphere-cli-distrib

This can be cleaner by adding an uninstall switch

]]>
https://basg.nl/2016/01/how-to-automate-vmware-vsphere-cli-distrib-install-without-eula-questions/feed/ 0 698
Minecraft Install Shorthand https://basg.nl/2015/09/minecraft-install-shorthand/ https://basg.nl/2015/09/minecraft-install-shorthand/#respond Wed, 02 Sep 2015 15:13:01 +0000 http://www.basg.nl/?p=655
sudo apt-add-repository ppa:minecraft-installer-peeps/minecraft-installer
sudo apt-get update
sudo apt-get install -y minecraft-installer
]]>
https://basg.nl/2015/09/minecraft-install-shorthand/feed/ 0 655
Random Chrome Crashes https://basg.nl/2015/03/random-chrome-crashes/ https://basg.nl/2015/03/random-chrome-crashes/#respond Fri, 20 Mar 2015 07:48:08 +0000 http://www.basg.nl/?p=635 I stopped using chrome a while back, constant crashing made it unusable as a daily driver. Wasn’t to hard switching to Firefox, but I was missing the per app icon feature I could use in Ubuntu. Allowing me to make every web application feel more like a separate program in unity.

Then I found this article http://www.rfc3092.net/2014/05/too-many-open-files-foo-with-chrome-on-ubuntu-13-10/, it boils down to increasing filesystem file-max and ulimit as chrome uses a lot of small files.

This solved all issues I had, chrome isn’t crashing anymore and everything seems much more stable.

Now all that was left to do is figure out why it needs so much memory, in the end it seems that adblock was the main issue, I switched to uBlock and now except for gmail most tab’s seem to behave in memory consumption.

Happy camper

]]>
https://basg.nl/2015/03/random-chrome-crashes/feed/ 0 635
Sending Uptimerobot notifications to pushover https://basg.nl/2014/04/sending-uptimerobot-notifications-to-pushover/ https://basg.nl/2014/04/sending-uptimerobot-notifications-to-pushover/#respond Thu, 10 Apr 2014 06:50:07 +0000 http://bgrolleman.wordpress.emendo-it.nl/?p=576 I wanted to use Pushover with Uptimerobot, as it’s a much nicer way to be notified about site issues then email. Unfortunately, Uptimerobot only supports GET requests and pushover needs POST requests.So to fix that I wrote a small PHP script that I loaded on my OPS machine that converts the GET to a POST request and does a bit of nice formatting while doing so. I put the code up on bitbucket.

https://bitbucket.org/bgrolleman/uptimerobot2pushover

Feel free to use as you please, I expect it to be short lived since UptimeRobot already has POST in the plans, and once that’s finished the script will not be needed anymore.

I considered making my “gateway” public here, but I should really protect people against posting API and USER tokens to my script, since a GET statement will be logged in full and as a result isn’t very secure.

 

 

 

]]>
https://basg.nl/2014/04/sending-uptimerobot-notifications-to-pushover/feed/ 0 576