Skip to content

Instantly share code, notes, and snippets.

Name: update.jaunty
Method: http://mirror.unej.ac.id/ubuntu
Suite: jaunty
VerifyRelease: blindtrust
Architectures: i386 amd64 source
Components: main contrib non-free
UDebComponents: main restricted
Name: update.jaunty-updates
Method: http://mirror.unej.ac.id/ubuntu
@udienz
udienz / php-fastcgi
Created April 30, 2013 10:30
php-fastcgi
#!/bin/bash
### BEGIN INIT INFO
# Provides: php-fcgi
# Required-Start: $nginx
# Required-Stop: $nginx
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts php over fcgi
# Description: starts php over fcgi
### END INIT INFO
@udienz
udienz / debian-cd.sh
Last active December 26, 2015 07:29
Debian CD Mirror script, used at buaya.klas.or.id. See https://github.com/udienz/status and http://www.debian.org/CD/mirroring/#jigdomirror
#!/bin/bash
# Stolen from http://ftp.mgts.by/debian-mirror/cdimage/
#BASE=/srv/buaya.klas.or.id/status
. "$BASE/status/lib/init.sh"
. "$BASE/status/lib/common.sh"
DELETEFIRST=1
tmpDirBase=$(mktemp -d)
@udienz
udienz / make-json
Created February 20, 2014 10:42
Make JSON from sedot
#!/usr/bin/env bash
. `dirname $0`/../lib/init.sh
. $BASE/lib/common.sh
NODE=$1
if [ "$NODE" == "" ]; then
NODE=$HOST
fi
@udienz
udienz / sedot get rsync
Created April 8, 2014 08:01
Get Rsync Sedot Sampai Tua (tm)
#!/usr/bin/env bash
. `dirname $0`/../lib/init.sh
. $BASE/lib/common.sh
set -e
EXCLUDE=
INCLUDE=
@udienz
udienz / sources.list.trusty
Last active February 22, 2016 19:51
sources.list trusty
## APT source for Ubuntu Trusty 14.04 LTS
deb http://buaya.klas.or.id/ubuntu/ trusty main restricted universe multiverse
deb-src http://buaya.klas.or.id/ubuntu/ trusty main restricted universe multiverse
deb http://buaya.klas.or.id/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://buaya.klas.or.id/ubuntu/ trusty-updates main restricted universe multiverse
deb http://buaya.klas.or.id/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://buaya.klas.or.id/ubuntu/ trusty-security main restricted universe multiverse
@udienz
udienz / pdns-initial.sh
Last active May 31, 2022 14:06
Powerdns bulk create domain to sql records
#!/bin/bash
host=localhost
passwd=17agustus
db=pdns
user=pdns
list=/tmp/blacklists/porn/domains
sqlin="mysql -u $user -p$passwd -h $host $db"
sql_new_domain () {
vyatta@vyatta# show
interfaces {
ethernet eth0 {
address 192.168.1.1/24
hw-id 52:54:00:12:34:56
}
loopback lo {
address 192.168.0.1/32
}
}
!
! Last configuration change at 15:37:08 UTC Fri Oct 31 2014
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
!
hostname Cisco
!
boot-start-marker
/interface bridge
add name=loopback0
/port
set 0 name=serial0
/routing bgp instance
set default as=33 router-id=192.168.0.3
/ip address
add address=192.168.0.3/32 interface=loopback0 network=192.168.0.3
add address=192.168.2.3/24 interface=ether1 network=192.168.2.0
/ip route