Skip to content

Instantly share code, notes, and snippets.

View tigefa4u's full-sized avatar
📉
🚀 😧 ☕ 🚬

Sugeng Tigefa tigefa4u

📉
🚀 😧 ☕ 🚬
View GitHub Profile
@tigefa4u
tigefa4u / dag.repo
Last active August 29, 2015 13:56
dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
@tigefa4u
tigefa4u / dayabase.yml
Created February 15, 2014 01:53
rails database.yml
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
@tigefa4u
tigefa4u / jenkins
Last active August 29, 2015 13:56
jenkins configuration
<VirtualHost *:80>
ServerAdmin sugeng@tigefa.org
ServerName ci.tigefa.org
ServerAlias ci.tigefa.org
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost on
@tigefa4u
tigefa4u / gitlab
Last active August 29, 2015 13:56
gitlab passenger
LoadModule passenger_module /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.37/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.37
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>
<VirtualHost *:80>
ServerName source.tigefa.org
ServerAlias www.source.tigefa.org
# !!! Be sure to point DocumentRoot to 'public'!
@tigefa4u
tigefa4u / trac.conf
Last active August 29, 2015 13:56
trac wsgi conf
<VirtualHost *:80>
<Directory "/home/git/trac">
Options Indexes MultiViews
AllowOverride None
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@tigefa4u
tigefa4u / redmine
Last active August 29, 2015 14:01 — forked from thanhhh/redmine
#! /bin/bash
# REDMINE
# Maintainer: @thanhhh
# App Version: 2.3.1
APP_ROOT="/var/www/redmine"
APP_USER="www-data"
DAEMON_OPTS="$APP_ROOT/script/rails"
# rvm use 2.0.0 --default
  1. sudo apt-get purge apache2

  2. sudo /etc/init.d/apache2 stop

  3. sudo update-rc.d -f apache2 remove

  4. sudo rm -rf /etc/apache2

  5. sudo rm /etc/init.d/apache2

@tigefa4u
tigefa4u / atom.sh
Last active August 29, 2015 14:06
Build Atom On Ubuntu
git clone https://github.com/atom/atom.git; cd atom
git fetch
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
npm -v
npm config set python /usr/bin/python2 -g
sudo apt-get install -y build-essential git libgnome-keyring-dev
script/build
# Install the atom and apm commands to /usr/local/bin by executing:
# sudo script/grunt install
script/grunt mkdeb
@tigefa4u
tigefa4u / dropplets-config.php
Created September 13, 2014 18:02
Dropplets Version 1.6.2.6
<?php
$blog_email = "sugeng@tigefa.org";
$blog_twitter = "sugeng_tigefa";
$blog_url = "http://tigefa.org/blog/";
$blog_title = "TiGEFA";
$meta_description = "TiGEFA blog";
$intro_title = "Blog";
$intro_text = "In a flooded selection of overly complex solutions, Dropplets has been created in order to deliver a much needed alternative. There is something to be said about true simplicity in the design, development and management of a blog. By eliminating all of the unnecessary elements found in typical solutions, Dropplets can focus on pure design, typography and usability. Welcome to an easier way to blog.";
$password = '$2a$08$dkZhosRN3qdtWAmrKpyKmu9mWCOj9oYP6BI8tM9/N.Aph9vAWZeVG';
$header_inject = "";