Linux / Freebsd

Resizing GPT Partition on VMware virtual server without loosing data

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

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

Follow this tutorial here: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/integration/google.md# 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

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

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

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 127.0.0.1:8080. 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

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

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…]

How to Fix Error code: service.FAILURE Method: [unknown] Details:soap:Receiver in Zimbra

Finally solved this issue so figured I’d share.  For me it was because I had the zimbra user’s shell set to /usr/sbin/nologin when it needed to be /bin/sh Also if you don’t have openSSH installed you’re going to need that running

How to transfer rules/filters from one zimbra account to another

Well it would appear that the vast majority of links and literature on this subject is outdated and no longer working although it’s not terribly broken it just needs a slight tweak which I’ll post below.  A big thanks to the guys over here: http://www.spheron1.co.uk/2011/06/27/zimbra-mailbox-importexport-and-migration-of-e-mail-filter-rules/ for having the only working solution i found   So first
[continue reading…]

How to migrate a maildir imap email (vmail/postfix/dovecot) account over to Zimbra

Compared to migrating a local pop3 account and folder structure over this one is as simple as cake.  Let’s say you have the remnants of your postfix/dovecot vmail server kicking around, you just finished setting up Zimbra and have it up and running but now you want to recreate all of your folder structure and
[continue reading…]

How to change the default Zimbra theme for all users

Well this one is kind of a hack as you aren’t changing the default theme from Carbon to something else you are just renaming the directory name of one of the other themes to carbon(or creating a symlink) to fool zimbra into thinking a theme is carbon when it’s actually not.  Anyhow this is how
[continue reading…]

Technology

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

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…]

Web filtering / protection using a repeater bridge

If you are connecting machines into a repeater via cat5 the sad truth is that Content restriction settings on the repeater don’t work and in rare cases you might not have or want to turn on content restrictions on the main network that your repeater is hooked into(ie: you’re sharing a connection with your neighbours).
[continue reading…]

How to change the default Zimbra theme for all users

Well this one is kind of a hack as you aren’t changing the default theme from Carbon to something else you are just renaming the directory name of one of the other themes to carbon(or creating a symlink) to fool zimbra into thinking a theme is carbon when it’s actually not.  Anyhow this is how
[continue reading…]

Setting up email forwards in Zimbra with zmprov

http://www.zimbra.com/forums/administrators/10857-how-create-mail-forward-only.html   The best way to do this is a way where you aren’t creating additional accounts for each forward as some zimbra licenses have limited accounts.  What you want to do is setup distribution lists like so: # zmprov createDistributionList user@domain.com # zmprov addDistributionListMember user@domain.com someone@else.com   Now keep in mind you have to add the domain
[continue reading…]

Games

All Time High-Score for Overgod’s Time Trial

Well googling ‘Overgod’ and ‘time trial’ and ‘high school’ come up with absolutely zero results, so here’s hoping that there’s actually someone else out there that plays this game as much as I do and will stumble upon this.  Better yet, here’s to hoping there are a few hundred people out there like that Seeing
[continue reading…]

Starcraft Single Player Gameplay

Just caught the first video of the single player campaign in detail and oooh mama that gets me hot in the pants.

Starcraft 2 Battle Report #3

Just watched the latest Battle Report for Starcraft 2 and man this game is looking impressive. I can see the hours of my life already being sucked away

Best Tower Defense game hands down

http://www.maxgames.com/game/the-horde-2.html Without a doubt the best Tower Defense game I have played, and I’ve played a lot of them There is a ton of rethinking your strategy as you go throughout, just the right amoutn of challenge where youcan adopt new strategies, test and refine before getting too frustrated and giving up. The complexity of
[continue reading…]

Game Industry

A Shout out to Kelowna and Okanagan Video Game Developers

At the last OK Game Developer Cluster meet-up we discussed the need to get more people networked and involved in the local Game Developer here in Kelowna.  It is a wonderful blessing to have Disney and Club Penguin in our beautiful city as they has no doubt inspired many people to pick up the trade
[continue reading…]

The Uncanny Valley

Was just showed this video today and started to look for more resources on the topic so I thought I’d share 7 Part Series:

Sony’s and Microsofts new 3D Controllers

The tracking on this thing looks really impressive(“Sub-milimeter accuracy”).  To take the Wii Experience, but better, and put it on the power of the PS3 is enticing to say the least. And M$ wouldn’t be outdone by Sony and is also jumping on the Nintendo Bandwagon.  Now what we really should be excited is to
[continue reading…]

EuroGamer standing behind unfair and ignorant reviews?

I have respect for what this company is doing with this game.. They are going down a road that is against popular WoW trends and aren’t sacrficing their vision to play it safe.  A lot of things get me pumped for this game and what this company is doing so it ticks me off when
[continue reading…]

Inspiring

Mozilla Seabird: Best tech concept of the decade (Get a towel)

You can read all about the concept here but to be clear this is simply a concept, mozilla has stated they have absolutely no intentions of entering the OS nor the hardware market. The Mozilla Seabird, part of the Mozilla Labs’ Concept Series, is an experiment in how users might interact with their mobile content
[continue reading…]

Netvibes – This will change your life, your virtual one at least

HTTP://WWW.NETVIBES.COM In my experience with talking with folks that are much more tech savvy than I, one of the most surprising things is how few people know about Netvibes, even more surprising is how few people in the world actually use this brilliant free resource.   I’ve had this post in draft forward for well over
[continue reading…]

Bill Gates on Cnet – Talks about why he’s fired up

In a recent video interview Bill Gates did with CNET , he talks about this work with his foundation, what’s getting him fired up and how to tackle some of these bleak challenges facing the world today. I find it interesting just to sit and watch this man talk, such an unassuming guy that I’ve
[continue reading…]

Science Fiction as a tool for human survival

It was like film directors and authors realized this magic lamp where they could very surreptitiously put these unquestioned injustices into peoples minds and make them question them for the first time. I wouldn’t call this a ‘golden age’ of sci-fi but it certainly was a purer age.

Internet

Web filtering / protection using a repeater bridge

If you are connecting machines into a repeater via cat5 the sad truth is that Content restriction settings on the repeater don’t work and in rare cases you might not have or want to turn on content restrictions on the main network that your repeater is hooked into(ie: you’re sharing a connection with your neighbours).
[continue reading…]

Setting up my DD-RT router as a wireless repeater

First off, go here, https://www.bestvpn.com/blog/9177/how-use-an-old-dd-wrt-router-as-a-repeater/ – it takes you through the steps well enough or here: http://www.wi-fiplanet.com/tutorials/article.php/3655041/DD-WRT-Tutorial-5-Wireless-Repeater.htm   Next you need to go into your network settings on your local machine and set your IP manually.  The network that I am bridging with has it’s router on 192.168.0.1 and so I set my IP to something
[continue reading…]

Adding Google oAuth to Gitlab

Follow this tutorial here: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/integration/google.md# 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

Every entry I could find for your Gitlab.rb file

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 127.0.0.1:8080. 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…]

Random Musings

Allowin Zimbra users to actually send as another user

Persona’s is great, adding external accounts is great but neither of these two options will actually allow the user to send as the persona or the external account(or in our case an internal account).  to do that you need to do this: https://wiki.zimbra.com/wiki/Ajcody-How-To-Setup-sendAs-Right-And-Persona-For-Internal-Users

Right clicking anything in windows explorer crashes explorer.exe

One of your third party context menus is causing mayhem.  Go to http://www.nirsoft.net/utils/shexview.html , download the program and disable every 3rd party context menu(non microsoft) until you fix the issue

DLNA server on Android device streaming to chromecast/wireless speakers via an ipad

So here’s what I need to do: Turn a library of 300+ CD’s into a digital only collection Stream that collection to a central amplifier that lacks wifi capabilities Add wifi speakers around the house to stream the music to various rooms if needed All be controlled from an ipad Must be easily and flawlessly
[continue reading…]

Moving repository from one gitlab server to another, now I can’t push

Do I used SCP to copy a repo from one server over to another today.  What I needed to do was to create the repo on the new server first inside Gitlab, and then copy eveyrthing over top of it from the other server.  Unfortunately upon doing so I was greeted with the following message:
[continue reading…]