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 | |
function linuxUptime() { | |
$ut = strtok(exec("cat /proc/uptime" ), "."); | |
$days = sprintf("%2d", ($ut/(3600*24))); | |
$hours = sprintf("%2d", ( ($ut % (3600*24)) / 3600)); | |
$min = sprintf("%2d", ($ut % (3600*24) % 3600)/60); | |
$sec = sprintf("%2d", ($ut % (3600*24) % 3600)%60); | |
return array($days, $hours, $min, $sec); | |
} | |
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 | |
# uptime-bash.sh for https://k0nsl.org | |
uptime=$(</proc/uptime) | |
uptime=${uptime%%.*} | |
days=$(( uptime/60/60/24 )) | |
host=$(hostname) | |
echo "<small>$host up for $days days so far :)</small>" |
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
<benito> there are (incredibly) still people who believe the lame 11 September official story. I even saw a seemingly normal guy weeping about it just recently, not because he lost somebody that day, but because how evil terrorists could do such a ghastly thing. That stupid cunt probably voted for the terrorist who did it, or authorized it. Dumb shit. | |
<k0nsl> benito, but the Americans in-charge blew it up for a good thing (sarcasm), so it is cool, doth protest too much sometimes...but I agree, they could have put more thought into it. | |
<benito> stupid. | |
<k0nsl> btw, and this you know too well, only terrorists watch MainstreamSmasherTV ;) | |
<benito> i'm no terrorist, k0nsl, i'm a realist. | |
<akcom> benito how did the government engineer sept 11th? | |
<benito> i'm not about to repeat that spiel right here, but let me ask you, do you believe the official story of it? Yes or no. | |
<akcom> I believe the twin towers were hit by passenger jets | |
<akcom> and the jets were being directed by muslim extremists | |
<benito> you are an id |
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 | |
# | |
# Filename : backup_all | |
# Description : Backup all OpenVZ containers in Proxmox | |
# Author : James Coyle | |
# | |
# Version: | |
# -Date -Author -Description | |
# 20-11-2013 James Coyle Initial | |
# |
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
200.76.17.206 # lfd: (pop3d) Failed POP3 login from 200.76.17.206 (MX/Mexico/static-200-76-17-206.alestra.net.mx): 10 in the last 300 secs - Thu May 16 03:12:34 2013 | |
124.229.46.0 # lfd: (smtpauth) Failed SMTP AUTH login from 124.229.46.0 (CN/China/-): 5 in the last 300 secs - Thu May 16 20:21:19 2013 | |
200.105.228.106 # lfd: (pop3d) Failed POP3 login from 200.105.228.106 (EC/Ecuador/corp-200-105-228-106-uio.punto.net.ec): 10 in the last 300 secs - Sun May 19 13:44:45 2013 | |
190.213.51.71 # lfd: (pop3d) Failed POP3 login from 190.213.51.71 (TT/Trinidad and Tobago/-): 10 in the last 300 secs - Sun May 26 18:41:42 2013 | |
117.214.175.175 # lfd: (cpanel) Failed cPanel login from 117.214.175.175 (IN/India/-): 5 in the last 300 secs - Wed May 29 03:19:04 2013 | |
117.214.175.31 # lfd: (cpanel) Failed cPanel login from 117.214.175.31 (IN/India/-): 5 in the last 300 secs - Wed May 29 04:45:10 2013 | |
69.172.245.46 # lfd: (pop3d) Failed POP3 login from 69.172.245.46 (US/United States/-): 10 in the last 300 secs - Sat Jun 1 22:50:1 |
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
$output = ''; | |
$output .= '<div style="display:none" id="k0nsl">'; | |
$output .= '<div class="sharedaddy sd-block sd-social sd-gplus">'; | |
$output .= '<h3 class="sd-title">' . __( 'Google+', 'jetpack' ) . '</h3>'; | |
$output .= '<div class="sd-content">'; | |
$output .= $this->byline( $post ); | |
$output .= $this->follow_button( $post ); | |
$output .= '</div>'; | |
$output .= '</div>'; | |
$output .= '</div>'; |
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
/** | |
* NOTE | |
* | |
* This person was the founder of a community called OpenSC.ws http://zerosecurity.org/technews/the-real-owner-of-opensc-ws | |
* | |
* | |
* As for his obsession with 'nazism'...well, clearly he has issues. | |
*/ | |
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
#custom includes | |
include "backends.vcl"; | |
include "acl.vcl"; | |
# recieving sub | |
sub vcl_recv { | |
# If httpd goes down, is unavilable or too slow we serve cache | |
set req.grace = 6h; |
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
s{}{A0[_HRE:-r:P-):LX]};y{[:\-)_PERLHAX0r]}{{ rfs\-od/uq*xm}};m.(?{$_}). |
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
service exim stop | |
chkconfig exim off | |
touch /etc/eximdisable (or create an empty file in /etc with the filename 'eximdisable') |