Enable or Disable Torrent / P2P Traffic in IPFire

IPFire P2P Protocol List

If you’re a geek like me, you may already be using IPFire as your main router software. It’s pretty powerful and allows you total control over your network. I recently had some troubles with it blocking my torrent traffic, so I thought I’d share the quick fix for enabling/disabling torrent and other P2P networks.

Read the rest of this entry »

Remotely List and Disconnect Users in Windows

Remotely List and Disconnect Users

If you’ve ever had to connect to a server via remote desktop and got a message stating “The Terminal Server has exceeded the maximum number of connections.” Then you know how I feel whenever I see this. It’s a pain because in order to log them off, you need to log in yourself. Or do you?

Read the rest of this entry »

Git + Stash: Set up Self-Signed SSL Certificate in Windows

Trusted SSL Certificate in a Browser

As I mentioned in a recent post that I use Atlassian Stash to manage my git repositories. It has some great features especially when it comes to setting up user permissions. It also integrates with JIRA and SourceTree since they’re also Atlassian products.

I wanted to be able to use my repositories while I was on the go so, naturally, I wanted the transmission to be encrypted HTTPS/SSL. Stash uses an Apache Tomcat server to serve up both the admin pages and the repositories themselves. It’s not totally clear on how to set up a self-signed SSL certificate on Windows (their documentation focuses on Mac’s, mostly) and there are a couple issues that they don’t even discuss.

This post covers how I generated the certificate, got Windows to trust it and set up git so that it could connect to both my Stash server, and externally hosted servers such as github.

Let’s get to it.

Read the rest of this entry »

SourceTree: Fix for Slow Operation on Windows

SourceTree Screenshot

This post discusses an issue I had with Atlassian’s SourceTree software and my firewall. I originally thought that SourceTree was just slow and didn’t work well on Windows, but I recently found out it was actually my anti-virus and firewall that was causing the issues.

Read the rest of this entry »

Using Integers as Boolean Flags

Something I find handy while programming is being able to use the bits in an integer-type variable as boolean flags. What I mean by that is, let’s say you have an INT that is 4 bytes in size. Each byte consists of 8 bits so this INT contains 32 bits in total (4 bytes * 8 bits in a byte). If we have a program that has 32 different boolean variables, wouldn’t it be more effective to store all of them in a single integer variable? This would especially be helpful when you want to keep your networking packets small. 32 booleans in 4 bytes instead of 32 bytes! Ultimately, it’s up to you to decide how to use it; I’m just here to show you how.

Read the rest of this entry »

Latest Posts

Post Calendar

September 2014
« Aug