I hereby claim:
- I am amr on github.
- I am amrmostafa (https://keybase.io/amrmostafa) on keybase.
- I have a public key whose fingerprint is 3466 023F 8389 9BB0 7FB8 41CA F000 083E F73A 3E24
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
name = Clean Comments | |
description = "Remove old unpublished comments" | |
core = 6.x | |
dependencies[] = comment |
#!/bin/bash | |
# Print average apache process size | |
# Licensed under GPL v3 or later | |
# | |
# =| USAGE |=================================================================== | |
# | |
# echo <apache-parent-process-id> | ./apache_avg_procsize.sh | |
# | |
# On Debian this translates to: | |
# |
<?php | |
$regex = '#^\\{\\|(.*?)(?:^\\|\\+(.*?))?(^(?:((?R))|.)*?)^\\|}#msi'; | |
$source = "==GUIDE TO UNITED NATIONS HUMAN RIGHTS MACHINERY== | |
{| border=1 | |
|'''remit''' | |
|International | |
Covenant on Civil and Political Rights (ICCPR) | |
· periodic reports every 5 |
#!/bin/sh | |
# | |
# Shuffles given playlist outside mplayer instead of using -shuffle | |
# | |
# Usage: | |
# | |
# mplayer-shuffle-playlist <playlist-file> [mplayer-options] ... | |
# | |
PLAYLIST=$(mktemp mplayer-shuffle-playlist.XXXXX) |
#!/bin/bash | |
SLEEP=1 | |
THRESHOLD=500 | |
while [ 1 ] | |
do | |
threads=`mysqladmin stat | awk '{ print $4 }'` | |
echo "Active threads: $threads" | |
if [ $threads -gt $THRESHOLD ]; then | |
log="/root/mysql-monitor/logs/sqls-$threads-`date +%s`.log" |
<?php | |
/** | |
* @file | |
* Retrieves various load indicators from servers using SNMP. | |
* | |
* Licensed under GPL v3 or later. | |
* Copyright 2009 (c) Egypt Development Center. | |
*/ | |
/** |