published by admin on Mon, 2013-07-22 00:40
published by Mattias Ohlsson on Wed, 2012-04-25 18:55
gitlab-installer
Installer for GitLab/GitLabHQ on RHEL 5 and 6 (Red Hat Enterprise Linux and CentOS)
- Fully unattended
- MySQL or SQLite database (defaulting to MySQL)
- Localhost mail relay
Follow the instructions on this page:
https://github.com/mattias-ohlsson/gitlab-installer
Flattr my profile to support this!
published by Mattias Ohlsson on Sat, 2012-01-28 22:14
This guide applies to:
Java
Use this function to get the first txt record from DNS.
Example: String myTxtRecord = getTxtRecord("inprose.com");
public static String getTxtRecord(String hostName) {
// Get the first TXT record
java.util.Hashtable<String, String> env = new java.util.Hashtable<String, String>();
env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
published by Mattias Ohlsson on Wed, 2012-01-04 23:58
This guide applies to:
Java
Windows
Linux
Mac OS X
The Java function isReachable() will use ICMP ECHO requests if the privilege can be obtained, otherwise it will try to make a TCP connection on port 7 (echo protocol rfc862) of the destination host. In most situations, it will fall back to the echo service method.
This function make a real ICMP ECHO ping.
published by Mattias Ohlsson on Wed, 2011-12-21 15:12
This guide applies to:
Joomla 1.5
Joomla 1.5.3
How to create a nice blockquote with Cascading Style Sheets (CSS)
Edit the template css file
Navigate to 'Extensions > Template Manager' and click on your default template name. In the 'Template: [ Edit ]' view, click on the 'Edit CSS' button. Now you see a list of CSS files. Select template.css with the radio button and click on 'Edit'.
Insert this CSS code in an empty line.
blockquote {padding: 8px; border: 1px #DDD dashed }
Save the changes.
published by Mattias Ohlsson on Wed, 2011-12-21 15:03
This guide applies to:
Fedora 8
Fedora 9
This page contains information about how to enable mod_rewrite in Apache Server on Fedora Linux.
Edit the configuration file
In httpd.conf (/etc/httpd/conf/httpd.conf), change 'AllowOverride None' to 'AllowOverride All'
published by Mattias Ohlsson on Tue, 2011-12-20 19:54
This guide applies to:
Fedora 9
How to enable ASP.NET support in Fedora
Install packages
Use yum to install Apache, mod_mono and the dependencies to xsp.
yum install httpd mod_mono mono-web
Install xsp from rawhide
If you install xsp from the standard Fedora repository, you get this error in httpd error_log.
published by Mattias Ohlsson on Tue, 2011-12-20 16:53
This guide applies to:
Joomla 1.5.X
How to Create a custom module for Google Analytics in Joomla 1.5
Define the new module position
Open your template XML configuration file (/templates/<templatename>/templateDetails.xml
). Locate the <positions>
tag in your XML file. It looks something like this:
published by Mattias Ohlsson on Tue, 2011-12-20 16:35
How to install OpenNMS on RHEL and CentOS.
This guide applies to:
Red Hat Enterprise Linux 5 (RHEL5)
Red Hat Enterprise Linux 6 (RHEL6)
CentOS 5
CentOS 6
OpenNMS 1.8
OpenNMS 1.9
- Install PostgreSQL
Install portgresql-server
yum install postgresql-server -y
Initiate the database