Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Script ini berfungsi menjadi rss bagi situs padangexpress.co.id
* cara kerja:
* ambil halaman index
* ambil link posting
* ambil semua posting dalam link index
* tampilkan dalam 1 halaman
*
* @package Padangexpress scraper
#!/bin/bash
# backup repository lama
mv /etc/apt/sources.list /etc/apt/sources.list.squeezeori
# tulis repo baru
cat > /etc/apt/sources.list <<END
deb http://mirrors.kernel.org/debian/ wheezy main
deb-src http://mirrors.kernel.org/debian/ wheezy main
#!/bin/bash
function check_install {
if [ -z "`which "$1" 2>/dev/null`" ]
then
executable=$1
shift
while [ -n "$1" ]
do
DEBIAN_FRONTEND=noninteractive apt-get -q -y install "$1"
@aliminati
aliminati / daftar-kontestan.txt
Last active December 11, 2015 11:38
daftar kontestan quiz esteh 22/01/2013
1. http://www.facebook.com/neo.comm
2. http://www.facebook.com/sysmartel
3. https://www.facebook.com/BagasRendraTyasAgriOktara
4. https://www.facebook.com/hab.habno
5. http://www.facebook.com/ertantoyk
6. http://www.facebook.com/difkaakbar14
7. http://www.facebook.com/LanangNom
8. http://http://www.facebook.com/thomjoy
9. http://www.facebook.com/iebhe.oyie.sukasuka
10. https://www.facebook.com/Beat.cruzader
<?php $PASSWORD = ''; /* Please enter a password here ;) ***** Tools Script for OwnCloud 4 by Dennis Kuypers (snapr) - http://forum.owncloud.org */define('version','rev.01');if(isset($_GET['PING']))die("pong");if(!session_start()) die("Either your client does not allow/support cookies OR the server can not start a session");if(isset($_POST['tpw'])){ $_SESSION['tpw']=$_POST['tpw'];} $do=(isset($_GET["do"])?$_GET["do"]:'home');if(isset($_SESSION['tpw']) && $_SESSION['tpw']==$PASSWORD && isset($_GET['phpinfo'])){phpinfo();exit;} ?><!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>OwnCloud Tools</title><link type="text/css" rel="stylesheet" href="http://oc.kycdn.net/tools/bootstrap/css/bootstrap.css" /></head><body><div class="container"><div class="row" style="margin-top: 20px"><div class="span2"><ul class="well nav nav-list"><?php if(isset($_SESSION['tpw']) && $_SESSION['tpw']==$PASSWORD){ ?><li class="<?php echo($do=='home'?'active':''); ?>"><a href="?do=home"
@aliminati
aliminati / setup-vps.sh
Created October 1, 2012 01:32
Install vps on the fly
#!/bin/bash
# penggunaan
# bash setup-vps.sh <nama user> <domain> <ip>
adduser $1
mkdir /home/$1/nginx
mkdir /home/$1/public_html
mkdir /home/$1/public_html/localhost
mkdir /home/$1/public_html/$2
@aliminati
aliminati / nginx.conf
Created October 1, 2012 00:04
nginx config support spdy
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@aliminati
aliminati / nginx
Created September 30, 2012 23:56
nginx init support spdy
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $network $remote_fs $local_fs
# Required-Stop: $network $remote_fs $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Stop/start nginx
### END INIT INFO
@aliminati
aliminati / setup-debian-ubuntu.sh
Created September 26, 2012 03:41
setup debian yang bisa untuk ubuntu
#!/bin/bash
function check_install {
if [ -z "`which "$1" 2>/dev/null`" ]
then
executable=$1
shift
while [ -n "$1" ]
do
DEBIAN_FRONTEND=noninteractive apt-get -q -y install "$1"
@aliminati
aliminati / proxy.sh
Created September 20, 2012 01:47
Install squid
#!/bin/bash
# install squid
apt-get install squid3
# Backup settingan default
mv /etc/squid3/squid.conf /etc/squid3/squid.conf.bak
# Tulis config baru
cat > /etc/squid3/squid.conf <<END