Posts Categorized: programming

Running Gogs (Go Git Service) as a service on macOS X server

This guides explains how you can run Gogs git server as a service on your Mac using launchd. Command line tools First you need to install Xcode from the Mac App Store. Once installed, you also need the Command Line Tools, you can initiate the download process by executing $ xcode-select –install in the Terminal…. Read more »

Getting a Mac ready for development

Apple computers are awesome: they are fancy machines which make your daily life easier. But every developer knows that there are a lot of things to install and configure before you can actually start programming. This guide is an overview of how I configure my Mac for development. I’m sure everyone has his own habits… Read more »

An introduction to PHP 7 type declarations

PHP 7 introduced a feature everyone was waiting for: typing. This solves a lot of bugs/problems caused by wrong types passed to function or returned by functions. Strict typing vs type coercion Before I introduce the actual typing of arguments or return values, I must explain PHP’s behaviour when types don’t match. By default PHP tries… Read more »

Syntax highlighting in LaTeX with lstlisting

When adding code snippets to my LaTeX documents, I use lstlisting. It is a syntax highlighting environment that can easily be tweaked to match your own styling. To do this you need to use the package listings: \usepackage{listings}. Code snippets are added like this: \begin{lstlisting} Some super cool code snippet… \end{lstlisting} Adding a code snippet from file… Read more »

Configuring Jenkins on Ubuntu (for C++, GTest and Bitbucket)

 Installing wget -q -O – https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add – sudo sh -c ‘echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list’ sudo apt-get update $ sudo apt-get install jenkins Once installed, Jenkins will run at port 8080 on your server. Don’t forget to install a C/C++ compiler Don’t forget to install dependencies like QT, libc++ and… Read more »