Skip to content

Instantly share code, notes, and snippets.

Avatar
🇮🇩
aku ubuntu

Sugeng Tigefa tigefa4u

🇮🇩
aku ubuntu
View GitHub Profile
View 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 Feb 15, 2014
rails database.yml
View dayabase.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 Aug 29, 2015
jenkins configuration
View jenkins
<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 Aug 29, 2015
gitlab passenger
View gitlab
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 Aug 29, 2015
trac wsgi conf
View trac.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
View _service.md

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)
View 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
View apache2-ubuntu.md
  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 Aug 29, 2015
Build Atom On Ubuntu
View atom.sh
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 Sep 13, 2014
Dropplets Version 1.6.2.6
View dropplets-config.php
<?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 = "";