Skip to content

Instantly share code, notes, and snippets.

View tuanpembual's full-sized avatar

Estu Fardani tuanpembual

View GitHub Profile
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

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!)

# 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]
@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 / 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 / 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 / big.sh
Created December 12, 2015 08:19
script for install BigBlueButton in Ubuntu 14.04 LTS
#!/bin/bash
## set repo
sudo cp /etc/apt/sources.list /etc/apt/sources.list.ori
sudo echo "
deb http://repo.ugm.ac.id/ubuntu/ trusty main restricted universe multiverse
deb http://repo.ugm.ac.id/ubuntu/ trusty-updates main restricted universe multiverse
deb http://repo.ugm.ac.id/ubuntu/ trusty-security main restricted universe multiverse
" > /etc/apt/sources.list
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get -y dist-upgrade
@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:

@tuanpembual
tuanpembual / digitalocean-proxy.sh
Created August 11, 2016 10:10 — forked from haf/LICENSE
Setting up a digitalocean proxy
#!/usr/bin/env bash
# How to start:
# 1. Sign up for DigitalOcean with this link https://www.digitalocean.com/?refcode=7bf219507e61
# -- it will be filled with $10 to start out (if you use the above link)
# 2. Go to https://cloud.digitalocean.com/settings/applications and find you API key
# 3. In your shell, run 'export DIGITALOCEAN_TOKEN="INSERT TOKEN HERE"', without the outer quotes.
# 4. `brew install jq`
# 5. `./digitalocean-proxy`
# 6. When you are done, press CTRL+C ONCE, and everything will be cleaned up.
@tuanpembual
tuanpembual / blankon-session
Created October 28, 2016 00:30
BIankOn Session for Manokwari
#! /bin/sh
export TRY_B_I=YES
if [ -x /usr/bin/blankon-session-try-installer ];then
. /usr/bin/blankon-session-try-installer
fi
L=`dbus-send --system --print-reply --type=method_call --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User1000 org.freedesktop.DBus.Properties.Get string:'org.freedesktop.Accounts.User' string:'Language' 2>/dev/null|tail -1|awk '{print $3}'|sed -e s/\"//g`
if [ "x$L" != "x" ];then