Skip to content

Instantly share code, notes, and snippets.

@San3ko
San3ko / pr1.pas
Created December 26, 2012 19:09
Исправленная программа.
program PR1;
uses crt;
const n=10;
type mas= Array[1..n] of integer;
var
a:mas;
Procedure menu;
begin
writeln('______________________menu');
Nov 8 10:49:34 ds sshd[8350]: Failed password for user from 95.132.220.60 port 2022 ssh2
Nov 8 10:49:34 ds sshd[8353]: Connection closed by 95.132.220.60
Nov 8 10:49:34 ds sshd[8354]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=60-220-132-95.pool.ukrtel.net user=user
Nov 8 10:49:36 ds sshd[8354]: Failed password for user from 95.132.220.60 port 2047 ssh2
Nov 8 10:49:36 ds sshd[8357]: Connection closed by 95.132.220.60
@San3ko
San3ko / test.php
Created January 31, 2012 19:25
php script - icecast server stats (2)
<?php
/*
* SCRIPT CONFIGURATIONS
*/
$SERVER = 'http://myserver.com:8000'; //URL TO YOUR ICECAST SERVER
$STATS_FILE = '/status.xsl'; //PATH TO STATUS.XSL PAGE YOU CAN SEE IN YOUR BROWSER (LEAVE BLANK UNLESS DIFFERENT)
///////////////////// END OF CONFIGURATION --- DO NOT EDIT BELOW THIS LINE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
@San3ko
San3ko / icestats.php
Created January 30, 2012 21:43
php script - icecast server stats
<?php
$icecast_url='http://10.10.0.1:8000';
$output = file_get_contents($icecast_url);
$search='#<div class="newscontent">.*?Point /(.*?)<.*?href="(.*?)">M3U<.*?Listeners.*?class="streamdata">(.*?)<.*?Song:.*?class="streamdata">(.*?)<.*?</div>#si';
preg_match_all($search, $output, $matches);
$j=count($matches[0]);
for ($i=0;$i<$j; $i++) {
@San3ko
San3ko / mine.sh
Created January 29, 2012 18:06
MControl linux
#!/bin/bash
#=================================#
# minecraft linux control script #
# v 0.4.2b by OrangeFox #
# utf8 centOS 5.6 #
# http://404team.ru #
#=================================#