Category Archives: programming

libtap Version 2 on github.com

Unit test frameworks are dime-a-dozen. For C programmers, there are libraries like cmocha and cunit. When we first  developed the sxe project at Sophos, about 5 years ago, the choices were much more limited. Most of the alternatives, like cppunit, … Continue reading

Posted in programming | Tagged , , , , , , | Leave a comment

Installing and Running Ansible on Linux

Ansible is a tool for managing remote computers via secure shell (ssh). This quick how-to is based on the Ansible Installation page. Installation To install Ansible on Debian Mint: If you don’t have pip installed, run: sudo easy_install pip Run: … Continue reading

Posted in programming | Tagged , , , , , , | Leave a comment

Creating an AWS Linux Web Service

This how-to is loosely based on this Amazon Getting Started page. To create an AWS Linux web service: Create an AWS account. You need a credit card. Browse to http://aws.amazon.com/ Click Create an AWS Account Follow the bouncing ball… Create … Continue reading

Posted in programming | Tagged , , | Leave a comment

URL Blacklists

URL blacklists are lists of web sites that contain malware or other dangerous content. Often, URL categorization lists are also referred to as blacklists, though blocking based on category (e.g. porn) is likely to be controlled by policy rather than … Continue reading

Posted in programming | Tagged , , , , , | 2 Comments

Creating a Shared Private Repo on GitLab

GitLab (gitlab.com) is a company that hosts git repositories in the cloud, like GitHub. Unlike GitHub, GitLab offers free repositories that can have multiple contributors. Creating a Private Respository To create your own private git repository on Gitlab: Create an … Continue reading

Posted in programming | Tagged , , , | Leave a comment

Debugging With gdb

If you need to debug a C or C++ program on Linux, I’d normally recommend using ddd, or some other graphical source code debugger. But if you are debugging remotely (over ssh for example), it’s worth knowing the basics of … Continue reading

Posted in programming | Tagged , , , , , , | 1 Comment

Installing Kivy on Debian Mint

Kivy is a free development environment for building portable python apps for iOS and android, supporting Linux, Windows, and OSX. Installation Here’s how I installed it: Ran: sudo add-apt-repository ppa:kivy-team/kivy Ran: sudo apt-get update Ran: sudo apt-get install python-kivy When … Continue reading

Posted in programming | Tagged , , , , , | Leave a comment