Skip to content

Instantly share code, notes, and snippets.

@dlaxar
dlaxar / a. Add the epel repo to yum
Created June 26, 2012 10:25
Installing Redmine AND GitLab on CentOS 6.2 (part 1)
rpm -Uvh http://fedora.aau.at/epel/6/i386/epel-release-6-7.noarch.rpm
@dlaxar
dlaxar / Install newer ruby version (>= 1.9)
Created June 26, 2012 12:25
Installing Redmine AND GitLab on CentOS 6.2 (part 2)
curl -O http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
tar xzvf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
./configure --enable-shared --disable-pthread --program-suffix n
make && make install
curl -O http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
tar xzvf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
./configure --enable-shared --disable-pthread --program-suffix n
make && make install
@dlaxar
dlaxar / test.php
Created August 21, 2012 12:02
Test PHP
<?php
echo 'test';
?>
@dlaxar
dlaxar / l4.js
Created October 3, 2012 09:02
MPCA #1
var count = {};
var array = ["str1", "str2", "string 3", "string 4", "s5", "string 4", "s5", "str2", "string 3", "string 4", "s5", "string 4", "str1"];
for(var i = 0; i < array.length; i++) {
if(count[array[i]]) {
count[array[i]]++;
}
else {
count[array[i]] = 1;
package u2;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
public class CipherManager {
private byte[] bytes;
@dlaxar
dlaxar / u6.js
Created November 26, 2012 20:50
MPCA #3
MPCA #3
@dlaxar
dlaxar / description
Created December 11, 2012 12:38
MPCA #4
MPCA #4
@dlaxar
dlaxar / 1.js
Last active December 11, 2015 04:38
MPCA #5
var str = "Wir berechnen einen ASCII Wert";
var max = 0, temp;
for(var i = 0; i < str.length; i++) {
temp = str.charCodeAt(i);
if(temp > max) {
max = temp
}
}
@dlaxar
dlaxar / .gitignore
Created October 13, 2013 13:40 — forked from redoPop/.gitignore
.gitignore for Wordpress
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your