Mysql regularily crashing – Cannot allocate memory for buffer pool

Sep 15th, 2016 | By

So every day now on one of my Debian servers, Mysql is crashing with the following message: Fatal error: cannot allocate memory for the buffer pool 160915 6:38:10 [ERROR] Plugin ‘InnoDB’ init function returned error. 160915 6:38:10 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed. 160915 6:38:10 [ERROR] Unknown/unsupported storage engine: InnoDB 160915 6:38:10
[continue reading…]

Peforce: Multi-root folder access privileges within a single stream

Jun 26th, 2016 | By

They situation is this. We have a replicated that is replicated across two different platforms, which means the content stays the same but the platform specific tech around it all needs to be recreated from scratch for 2 platforms. So we create 2 folders within the root, one for each platform with the intention of allowing
[continue reading…]

Resizing GPT Partition on VMware virtual server without loosing data

Jun 25th, 2016 | By

So you want to enlarge one of your partitions on one of your virtual servers eh?  First things first, shut the instance down and then go into Edit Settings for the instance and change the hard drive to the new size. Now start up the box and go grab gdisk.  fdisk won’t work well, parted
[continue reading…]

Splitting Perforce Depots off main instance and running multi-instances on single server

Feb 24th, 2016 | By

So Perforce is great, and the free license is also great for us indies however the 25 workstations can be a bit of a pain especially when you are working with people that arent’ P4 Pro’s and end up with 5 workstations just for their account or have multiple machines and need 3-4 work stations.
[continue reading…]

Adding Google oAuth to Gitlab

Jun 19th, 2015 | By

Follow this tutorial here: Before you restart gitlab you need to reconfigure it with #/opt/gitlab/bin/gitlab-ctl reconfigure   For some reason the people at gitlab forgot this crucial step as none of your changes will take effect until that is done

HTTPS / SSL for Gitlab

Feb 7th, 2015 | By

Easy peasy to setup.. Just create your private key and certificate, make a dir in /etc/gitlab/ssl and stick them in there.. Edit your gitlab.rb and add this: nginx[‘ssl_certificate’] = “/etc/gitlab/ssl/whatever.crt” nginx[‘ssl_certificate_key’] = “/etc/gitlab/ssl/whatever.key” #gitlab-ctl reconfigure and you should be good to go

Gitlab installs but home page is a 500 error and postgres won’t start

Feb 6th, 2015 | By

So installed gitlab on a new server today, Ubuntu 14.04 with 8GB of ram and the install went fine but upon startup I was greeted with the 500 error and the postgresql log files were full of this: 2015-02-07_00:46:16.32456 The PostgreSQL documentation contains more information about shared memory configuration. 2015-02-07_00:46:17.36825 FATAL: could not create shared
[continue reading…]

Every entry I could find for your Gitlab.rb file

Nov 5th, 2014 | By

For now I’m just dumping everything I can find in here randomly, will clean it up later       By default, Unicorn listens at TCP address Nginx listens on port 80 (HTTP) and/or 443 (HTTPS) on all interfaces. The ports for Redis, PostgreSQL and Unicorn can be overriden in /etc/gitlab/gitlab.rb as follows: redis[‘port’]
[continue reading…]

Editing Gitlab email templates to prevent them from getting caught in spam filters

Nov 5th, 2014 | By

So it looks like the default emails are getting picked up by gmail’s spam filters so I wanted to rewrite the tempaltes so they seemed a bit more natural sounding and hopefully pass the test.  To do so you need to go into :   and edit the following files: /opt/gitlab/embedded/service/gitlab-rails/app/views/notify new_user_email.text.erb new_user_email.html.haml   This will
[continue reading…]

Automatically block aggressive IPs to prevent brute force or DDOS attacks using Bash and IPtables

Oct 11th, 2014 | By

Something I do, mainly because of my ignorance of a more elegant solution, is to manually check my logs every 4 hours and the mail server logs every 2 minutes for excessive access by individual IP’s. I run a few scripts together that: Check the access.log and list off the top 10 IP’s organized by
[continue reading…]