Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
for ass in (SELECT table_name FROM user_tables) loop
begin
execute immediate ( 'DROP TABLE '||ass.table_name );
end;
end loop;
#!/bin/bash
while [[ -n $1 ]] ; do
(sleep "$1" ; echo -n "$1 " ) &
shift
done
wait
echo ""
# vim: ft=nginx:
server {
listen 80;
server_name files.glasnost.us;
rewrite ^ https://files.glasnost.us/$uri permanent;
}
server {
listen 443 ssl;
###
# Copyright (c) 2010, mr_daemon
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
###
# Copyright (c) 2011, Rebecca Bettencourt
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> def ass():
try:
return True
except:
return False
@mrdaemon
mrdaemon / gist:7476022
Created November 14, 2013 23:07
[root@cerberus ~]# ./megasasctl a0 PERC 5/i Integrated encl:1 ldrv:1 batt:good a0d0 680GiB RAID 5 1x6 optimal a0e8s0 136GiB a0d0 online a0e8s1 136GiB a0d0 online a0e8s2 136GiB a0d0 online a0e8s3 136GiB a0d0 online a0e8s4 136GiB a0d0 online a0e8s5 136GiB a0d0 online
[root@cerberus ~]# ./megasasctl
a0 PERC 5/i Integrated encl:1 ldrv:1 batt:good
a0d0 680GiB RAID 5 1x6 optimal
a0e8s0 136GiB a0d0 online
a0e8s1 136GiB a0d0 online
a0e8s2 136GiB a0d0 online
a0e8s3 136GiB a0d0 online
a0e8s4 136GiB a0d0 online
a0e8s5 136GiB a0d0 online
@mrdaemon
mrdaemon / gist:7475803
Created November 14, 2013 22:54
put me in your wp-config.php at the end plz
if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define('FS_CHMOD_DIR', 0751);
}
#
# alias.conf -- weechat v0.4.1
#
[cmd]
AAWAY = "allserv /away"
AME = "allchan /me"
AMSG = "allchan /msg *"
ANICK = "allserv /nick"
BYE = "quit"
@mrdaemon
mrdaemon / gist:5828703
Created June 21, 2013 04:08
SURELY IT IS ONE OF THESE
i A fonts-arphic-uming - "AR PL UMing" Chinese Unicode TrueType font collection Mingti style
i A fonts-baekmuk - Baekmuk series Korean fonts
i A fonts-droid - handheld device font with extensive style and language support
i fonts-freefont-ttf - Freefont Serif, Sans and Mono Truetype fonts
i fonts-kacst - KACST free TrueType Arabic fonts
i fonts-kacst-one - TrueType font designed for Arabic language
i fonts-khmeros-core - KhmerOS Unicode fonts for the Khmer language of Cambodia
i fonts-lao -