I had an odd request today from a guy who had deleted his GitLab project and his local repos. I had been making backups using: gitlab-rake gitlab:backup:create and sifting through the backups under /var/opt/gitlab/backups/ I extracted the latest tar and under the ./repositories/username directory found some .bundle files for each of his projects. After some piddling… Read more »
Posts Categorized: open source
Migrating from SVN to GIT with Branches and Tags
I needed to convert a number of small subversion repositories to git so that they could be hosted publicly on GitHub and some hosted on our private GitLab service. I am adding a few notes here of what I did to help my future self. If it helps anyone else – bonus. Initialise In an… Read more »
Multisite DokuWiki Install
I wanted to be able to install DokuWiki with a single code base serving multiple wikis. This would have several advantages especially making updates easier. There are a variety of ways of doing this, and thus a variety of instructions around the web. I used the instructions here and this is what I did. For… Read more »
Munstrap for Munin
Warm fuzzy feeling inside when you get emails like this: I had recently added my Munstrap template to the munin-contrib repository and had been talking to Steve about the template much earlier. Munstrap was based on Bootstrap and other interested people contributed to (and forked) my Github repo to improve Munstrap. Great to see a… Read more »
Saving Streaming Video with VLC
I was asked by a relative if a live video stream could be saved for later viewing. I found the (m3u8) address for the live video stream by right-clicking the link on the website and used this in VLC. VLC is freedom software available from the VLC website. From the VLC menu bar I chose… Read more »
Load Testing FTP with JMeter
I needed to test a ProFTP server to ensure that it could cope with 200 simultaneous users. The relevant lines in /etc/proftpd.conf to control this are: MaxInstances 30 MaxClientsPerHost 20 “Only %m connections per host allowed” MaxClients 20 “Only %m total simultaneous logins allowed” I followed the excellent instructions here for creating a Test Plan… Read more »
Extracting font information from PDF files
Today I was sent a PDF file leaflet with info to add to McIvor Farrell Belfast Solicitors website and I wanted to know the fonts used by the graphic designer. I first tried Online Font Converter and that did tell me one of the fonts used. Online Font Converter required me uploading the PDF file… Read more »
Linux GPS Logging Data
I took part in a swim this weekend – The Battle of Carlingford Lough. My friend Cormac gave his Panasonic Lumix camera to Mary in the kayak and set the camera to log GPS data. He sent me the GPS log file and I opened the log file with BT747 – a Java application that… Read more »
Restricting SSH Logins to LDAP Group
The are multiple methods of doing this including using pam but I settled for the following: In the /etc/ssh/sshd_config file I currently have: AuthorizedKeysCommand /usr/libexec/openssh/ssh-ldap-wrapper AuthorizedKeysCommandRunAs nobody to check for ssh keys for the user logging in and I also have password authentication disallowed. The content of the file /usr/libexec/openssh/ssh-ldap-wrapper was simply: exec /usr/libexec/openssh/ssh-ldap-helper -s… Read more »
Installing Darkstat on CentOS 6
The darkstat software is available in the rpmforge repository so you will need to install RPMforge first: rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm Then install Darkstat with: yum –enablerepo=rpmforge install darkstat My scenario was to use darkstat to monitor traffic on a local 192.168.161.* network so I used the following command: /usr/sbin/darkstat -i eth1 –no-dns -p 10001 -b… Read more »