Skip to content

Instantly share code, notes, and snippets.

View tuanpembual's full-sized avatar

Estu Fardani tuanpembual

View GitHub Profile
@tuanpembual
tuanpembual / clone-repo.sh
Last active December 5, 2015 02:53
Build, Install Seed and Maleo on openSUSE Leap 42.1
#!/bin/bash
cd ~/src
git clone https://github.com/cho2/instagram-maleo.git
git clone https://github.com/tuanpembual/twitter-maleo.git
@tuanpembual
tuanpembual / imageparser
Created July 10, 2015 12:17
script check new image
#!/usr/bin/php
<?php
$gambar0 = 'gambar0.jpg';
$gambar1 = 'gambar1.jpg';
$alamatipcam = 'http://192.168.1.100/jpg/image.jpg';
$dirsimpan = 'simpan';
$threshold = 0.025;
$tidur = 2;
@tuanpembual
tuanpembual / install.sh
Last active August 29, 2015 14:16
Script Rooting Xperia L 4.2.2 15.3.A.1.14 C2105
#!/bin/bash
## Script for rooting Xperia L from GNU/Linux or Unix Base
## Modified by Estu (estu@di.blankon.in)
## I just modified, lisence back to the origin creator, mitulvohra(http://forum.xda-developers.com/member.php?u=4270059)
## Retrive from http://techglen.com/2014/02/28/root-xperia-l-c2104-c2105-4-2-2-15-3-a-1-14-firmware-locked-unlocked-bootloader/
echo --- Xperia rootkit 2013/12/07 ---
echo;
echo waiting for device...
adb wait-for-device
adb push files/getroot /data/local/tmp/
@tuanpembual
tuanpembual / keybase.md
Last active August 5, 2016 10:09
keybase.md

Keybase proof

I hereby claim:

  • I am tuanpembual on github.
  • I am tuanpembual (https://keybase.io/tuanpembual) on keybase.
  • I have a public key whose fingerprint is B783 79DE 1887 DE0C 9282 52DB 33A6 4876 25A4 9538

To claim this, I am signing this object:

# Redirection of port 80 to port 443
<virtualhost *:80>
ServerName redmine.domain.com
KeepAlive Off
RewriteEngine On
#RewriteCond %{HTTP_HOST} ^[^\./]+\.[^\./]+$
RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

GitLab is a self hosted Git management software based on Ruby on Rails.

It is free software and that is always a plus!

This tutorial is heavily based on the excellent post at rosehosting.com and collects information I found in documentation and on the internet generally.

Note: We'll work in a root console using Bash

If you don't have an editor of choice install vim (it's great!)

aptitude install -y git curl python-dev python-pip redis-server ruby1.9.1-full rubygems1.9.1
aptitude install -y mysql-server libmysqlclient-dev
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git
adduser --disabled-login --gecos 'gitlab system' gitlab
usermod -a -G git gitlab
su - gitlab
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa
aptitude install gitolite
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub
su - git