Skip to content

Instantly share code, notes, and snippets.

View dennyhalim's full-sized avatar

DennyHalim.com dennyhalim

View GitHub Profile
# usage info:
# http://wiki.dennyhalim.com/mandriva-minimal-desktop
# format: continent=AS,zone=ID,country=Indonesia,city=,latitude=,longitude=,version=,arch=,type=,url=
#distrib:
continent=AS,zone=ID,country=Indonesia,city=surabaya,latitude=7.25,longitude=112.75,version=2009.1,arch=i586,type=distrib,url=http://buaya.klas.or.id/mandriva/official/2009.1/i586
continent=AS,zone=ID,country=Indonesia,city=jakarta,latitude=6.167,longitude=106.8,version=2009.1,arch=i586,type=distrib,url=http://shol.vlsm.org/mandriva/official/2009.1/i586
continent=AS,zone=ID,country=Indonesia,city=jakarta,latitude=6.167,longitude=106.8,version=2009.1,arch=i586,type=distrib,url=http://kambing.ui.edu/mandriva/official/2009.1/i586
continent=AS,zone=ID,country=Indonesia,city=jakarta,latitude=6.233,longitude=106.983,version=2009.1,arch=i586,type=distrib,url=http://www.arsip.or.id/mandrivalinux/official/2009.1/i586
continent=AS,zone=ID,country=Indonesia,city=jakarta,latitude=6.167,longitude=106.8,version=2009.1,arch=i586,type=distrib,url=h
<?php
//
// code licensed http://creativecommons.org/licenses/by-nc/3.0/
// plus, one rule. a link to http://dennyhalim.com from wherever this code used
//
// first of all, add this line (without //) to .htaccess:
// ErrorDocument 404 /404.php
//
// you dont need to edit anything here
// unless you want to change the looks & feel to match your website you can edit the html at the bottom
[Version]
Signature="$Chicago$"
Provider=DennyHalim.com
[informasi]
license=http://creativecommons.org/licenses/by-nc-sa/3.0/
usage=http://wiki.dennyhalim.com/fixing-windows-registry
installservice=rundll32.exe setupapi,InstallHinfSection InstallService 128 regfix.inf
[DefaultInstall]
// recache.js v.0.1.b.1 (c) 2007 DennyHalim.com
// automatically redirect visitor coming from slashdot/digg/fark to coral cache
//
// use this script only by pasting this one line into your html:
// <script language="text/javascript" src="http://askdenny.googlepages.com.nyud.net/recache.js"></script>
var ini = top.location.href;
var ref = document.referrer;
var redir = 'http://redirect.nyud.net/?url='+ini
var pass = '7';
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="__UP_title__"
directory_title="Feeds in Tabs"
description="Read up to four Atom or RSS feeds from within a single gadget using tabs. Feed titles and descriptions are optionally included and can be turned off. Customize the font-size and text for tab titles. Fetch 3-12 entries per feed including summaries if available."
author="Daniel L."
author_email="daniel.feedback+feedstabs@gmail.com"
author_affiliation="Google Inc."
author_location="Mountain View, CA"
screenshot="/ig/modules/feeds_tabs.png"
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
Identifier "Generic Keyboard"
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
#!/usr/bin/python
'''
Program to allow secure ripping using CD paranoia, in the spirit of
EAC and rubyripper.
An important property that I want it to be a drop in replacement
to "cdparanoia [options] <output file>", that is probably used by many
rippers, in particular it has to be compatible with grip and jack.
#http://wiki.dennyhalim.com/linux-firmware
#firewall
iptables -I FORWARD -p tcp --syn --dport 80 -m connlimit --connlimit-above 1000 -j REJECT
iptables -I FORWARD -p tcp --syn -m connlimit --connlimit-above 100 -j REJECT
iptables -I FORWARD -p udp --dport 53 -m limit --limit 100/sec -j ACCEPT
iptables -I FORWARD -p udp -m limit --limit 10/sec -j ACCEPT
#wan up
export IPTABLES=/usr/sbin/iptables
wget http://www.emergingthreats.net/fwrules/emerging-IPTABLES-ALL.rules
# (c) 2008 DennyHalim.com
# you're free to copy to copy and/or distribute this script under GPL license
# paste into your ~/.bashrc and it just works.
# it will startx / startxfce when you login at tty1
# it can also logout/shutdown after you close x.
file=/tmp/.X0-lock
#check if x is running
if [[ -e $file ]]
then