Skip to content

Instantly share code, notes, and snippets.

View riipandi's full-sized avatar
:octocat:

Aris Ripandi riipandi

:octocat:
View GitHub Profile
@riipandi
riipandi / imscp-debian-setup.sh
Created June 10, 2012 12:54
Install i-MSCP Debian Squeeze
#!/bin/bash
#
# http://wiki.i-mscp.net/doku.php?id=start:howto:replace_squirrelmail_with_roundcube
#
#
echo 'siliwangi.kits.or.id' > /etc/hostname
hostname -F /etc/hostname
hostname && hostname -f
rm /etc/apt/sources.list
@riipandi
riipandi / linux-cmd-cheatsheet.md
Created July 12, 2012 12:16
Linux Command Cheat Sheet

#Linux Cheat Sheet

##File Commands:

  • ls – directory listing
  • ls -al – formatted listing with hidden files
  • cd dir - change directory to dir
  • cd – change to home
  • pwd – show current directory
  • mkdir dir – create a directory dir
  • rm file – delete file
@riipandi
riipandi / app.yaml
Created August 7, 2012 16:27
Octopress on GAE
application: APP_ID
version: 1
api_version: 1
runtime: python
default_expiration: "1d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
static_files: \1
@riipandi
riipandi / getubrepo.sh
Created October 2, 2012 13:20
Download Ubuntu DVD Repository
#!/bin/bash
# @des: Download Ubuntu ISO DVD Repository
# @author: Aris S. Ripandi <[email protected]>
# @usage: chmod +x getubrepo && ./getubrepo 32
# ----------------------------------------------------------------------
_bit="${1:-64}"
_arch="i386"
_version="12.04"
_base="http://kambing.ui.ac.id/iso/ubuntu-repository/${_version}"
[ "$_bit" == "64" ] && { _arch="amd64"; }
@riipandi
riipandi / nice.rsc
Created October 12, 2012 08:52
Address List Mikrotik
/ip firewall address-list
add list=nice address="120.160.0.0/11"
add list=nice address="182.0.0.0/12"
add list=nice address="114.120.0.0/13"
add list=nice address="182.24.0.0/14"
add list=nice address="114.56.0.0/14"
add list=nice address="182.28.0.0/15"
add list=nice address="118.137.0.0/16"
add list=nice address="118.136.0.0/16"
add list=nice address="111.95.0.0/16"
@riipandi
riipandi / install-ruby.sh
Created December 17, 2012 11:01
Ruby 1.9.2 Installer Ubuntu 10.04
#!/bin/bash
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar xvzf ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
./configure --prefix=/usr\
--program-suffix=1.9.2\
--with-ruby-version=1.9.2\
--disable-install-doc
make
@riipandi
riipandi / squid.conf
Created December 21, 2012 07:31
Squid Lusca Configuration for Ubuntu 12.04
##############################################
# /etc/lusca/squid.conf
# Taken from http://goo.gl/jOUXQ
##############################################
#=============================================
# Port and Transparent
#=============================================
http_port 3128 transparent
server_http11 on
icp_port 0
@riipandi
riipandi / Sublimetext-Shortcut
Last active December 10, 2015 02:38
Sublime Text 2 Shortcut
h1. Sublime Text 2 - Useful Shortcuts (PC)
Loosely ordered with the commands I use most towards the top. Sublime also offer "full documentation":http://www.sublimetext.com/docs/2/.
h2. Editing
| *Ctrl+C* | copy current line (if no selection) |
| *Ctrl+X* | cut current line (if no selection) |
| *Ctrl+⇧+K*| delete line |
| *Ctrl+↩* | insert line after |
@riipandi
riipandi / ezstream.sh
Last active December 12, 2015 06:28
EzStream Init Script
#! /bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/ezstream
NAME=ezstream
DESC=ezstream
test -x $DAEMON || exit 0
# Defaults
@riipandi
riipandi / virtualhost.sh
Created February 16, 2013 08:52
Apache2 Virtual Host Generator
#!/bin/sh
#================================================================================
# virtualhost.sh
#
# A fancy little script to setup a new virtualhost in Ubuntu based upon the
# excellent virtualhost (V1.04) script by Patrick Gibson <[email protected]> for OS X.
#
# This script has been tested on Ubuntu 7.10 (Gutsy Gibbon) with Apache2(!) and
# probably works on Debian as well, but this has not been tested (yet). If you use
# this script on other Linux distributions and can confirm it to work I would like to hear