Skip to content

Instantly share code, notes, and snippets.

@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 #
#=================================#
@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 / 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 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
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 / 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');
@San3ko
San3ko / pr2.pas
Last active December 10, 2015 04:38
исправленная версия второй лабы
program PR1;
uses crt;
const n=5; m=5;
type mas= Array[1..n,1..m] of integer;
stroka= array[1..100] of string;
var
a:mas;
b:stroka;
Procedure menu;
Владислав Зайко (21:06:48 10/01/2013):
Здравствуйте, я насчет бана, извините что "Загадил вашу стену." Просто новый, молодой отряд, нужны способы пиар, я использовал вашу группу.
Иван Тюрин (21:07:53 10/01/2013):
зачем цитируете то что я не писал?
у нас в правилах группы ясно прописан момент рекламы отрядов
Иван Тюрин (21:08:04 10/01/2013):
[root@FoxShare ~]# df -h
Файловая система Разм Исп Дост Исп% смонтирована на
/dev/mapper/VolGroup00-LogVol00
1,8T 1,4T 287G 84% /
/dev/sda1 99M 20M 75M 21% /boot
tmpfs 1,9G 0 1,9G 0% /dev/shm
[root@FoxShare ~]# df -h
Файловая система Разм Исп Дост Исп% смонтирована на
/dev/mapper/VolGroup00-LogVol00
1,8T 1,4T 290G 84% /
@San3ko
San3ko / gist:6478626
Last active December 22, 2015 13:19
dir 320 tftp script
@echo off
echo ==================================================================
echo This batch file will upload dd-wrt firmware in the current directory to
echo 192.168.0.1 during the router's bootup.
echo.
echo * Set your ethernet card's settings to:
echo IP: 192.168.0.2 echo Mask: 255.255.255.0 echo Gateway: 192.168.0.1
echo * Unplug the router's power cable.
echo.
echo Press Ctrl+C to abort or any other key to continue... pause > nul
program PR1;
uses crt;
const n=5; m=5;
type mas= Array[1..n,1..m] of integer;
stroka= array[1..100] of string;
var
a:mas;
b:stroka;
Procedure menu;