Skip to content

Instantly share code, notes, and snippets.

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

Sugeng Tigefa tigefa4u

📉
🚀 😧 ☕ 🚬
View GitHub Profile

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 = "";
@tigefa4u
tigefa4u / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tigefa4u
tigefa4u / jenkins
Created October 31, 2014 19:12
Jenkins service
# defaults for jenkins continuous integration server
# pulled in from the init script; makes things easier.
NAME=jenkins
# location of java
JAVA=/usr/bin/java
# arguments to pass to java
JAVA_ARGS="-Djava.awt.headless=true" # Allow graphs etc. to work even when an X server is present
@tigefa4u
tigefa4u / maxmind_update.sh
Created January 8, 2016 18:01 — forked from vstoykov/maxmind_update.sh
Download MaxMind free database and place it in default location for pygeoip
#!/bin/bash
if [ `whoami` != 'root' ]; then
echo "You must to be root"
exit
fi
DOWNLOAD_URL="http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz"
TEMPFILE="/tmp/GeoIPCity.dat"
TEMPFILEGZ="$TEMPFILE.gz"
GEOIP_DIR="/usr/local/share/GeoIP"
@tigefa4u
tigefa4u / ubuntu-server-setup.md
Last active January 27, 2016 17:44 — forked from jasperf/ubuntu-server-setup.md
Ubuntu Server Setup History installing Apache, mysql, PHP, git, SSH, WordPress using Backup buddy backup #lamp #ubuntu #wordpress

Ubuntu Server Setup

Installing LAMP Stack

Update All

sudo apt-get update
@tigefa4u
tigefa4u / gist:f6393fc6e581a47362a8
Created January 27, 2016 19:36 — forked from faleev/gist:3435377
Compile FFmpeg on Ubuntu

Compile FFmpeg on Ubuntu

This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide](https://ffmpeg.org/trac/ffmpeg/wiki/Fi