This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define contentdir /var/www | |
%define apiver 20041225 | |
%define zendver 20050922 | |
%define pdover 20060409 | |
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor) | |
Name: php | |
Version: 5.1.6 | |
Release: 27%{?dist} | |
License: The PHP License v3.01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Digest::MD5; | |
use Cwd 'abs_path'; | |
my $base_dir = './testdata/'; | |
my $updates = 0; | |
# This is neater | |
sub hexdigest_file { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import sys | |
import time | |
import base64 | |
import urllib | |
import traceback | |
class watch_file: | |
def __init__(self, file_path, server_addr, server_port): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# We want to know if stuff is going to explode in our face | |
use warnings; | |
use strict; | |
# Awesome logging | |
use Log::Log4perl; | |
# Wikipedia client | |
use MediaWiki::API; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import xml.etree.ElementTree as etree | |
def xmlize_edit(edit, part=False): | |
xml = '' | |
if not part: xml += '<?xml version="1.0"?><WPEditSet><WPEdit>' | |
for key,val in edit.iteritems(): | |
# Dicts | |
if type(val) == type(dict()): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------For Your Safety!----------------------------- | |
1. It's easy on the Internet to pretend to be someone else. It is possible for | |
people on the Internet to pretend to be a Scout, or a Scout Group. | |
So to be safe, never give out your full name or your home | |
address when sending e-mail or chatting with IRC. | |
2. If you receive an E-mail or other Internet communication that you | |
think is strange or unusual, tell your leader or one of your parents | |
to have a look at it, just to be safe. | |
3. If you receive an E-mail or other Internet communication from anyone | |
that WANTS TO MEET YOU, or asks for any personal information, DO NOT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib | |
import sys | |
import json | |
from mwlib import parser | |
from mwlib.refine import compat | |
if __name__ == "__main__": | |
params = urllib.urlencode({ | |
"format": "json", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[damian@finnix getISO3166Codes]$ ./retrieve.py | |
ISO English country names (short name and lower case) || Alpha-2 code || Alpha-3 code || Numeric code | |
Afghanistan || ttAF || ttAFG || tt004 | |
Aland Islands|flag|Åland Islands || ttAX || ttALA || tt248 | |
Albania || ttAL || ttALB || tt008 | |
Algeria || ttDZ || ttDZA || tt012 | |
American Samoa || ttAS || ttASM || tt016 | |
Andorra || ttAD || ttAND || tt020 | |
Angola || ttAO || ttAGO || tt024 | |
Anguilla || ttAI || ttAIA || tt660 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ]; | |
then | |
echo "Usage: digglue <domain>"; | |
exit 1; | |
fi | |
domain=$1 | |
ext=$(echo "$domain" | awk -F. '{print $NF}'); | |
root=$(dig +short $ext NS | head -n1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Footer menu walker - just because wordpress sucks | |
* See wp-includes/class-wp-walker.php for what the hell this does normally (Class Walker) | |
*/ | |
class footer_menu_walker { | |
/* | |
Output we are aiming for: | |
<div class="col"> | |
<h3>Some sub menu</h3> |