Echo :: Forum :: Blog :: RSS
script1 [0]
script1
vit01(lenina, 50) — All
2014-06-14 12:59:14


#!/bin/bash

# echo -n 'Выберите устройство для установки (к примеру, /dev/sdb): '
# read device

device="/dev/sdb"
razdel="/dev/sdb1"

parted $device mktable msdos y
cfdisk $device

mkfs.ext2 $razdel

mount -t ext2 $razdel /mnt

debootstrap wheezy /mnt http://mirror.yandex.ru/debian

cp /etc/resolv.conf /mnt/etc/resolv.conf

echo "Назначьте пароль рута:"
arch-chroot /mnt /sbin/passwd
arch-chroot /mnt /usr/bin/apt-get install linux-image-i486 grub2

grub-install --root-directory=/mnt $device

arch-chroot /mnt /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
genfstab -U -p /mnt >> /mnt/etc/fstab

umount /mnt

echo "Дебиан установлен"

лог spline [0]
лог spline
Romero Yakovlev(lenina,1) — All
2014-06-04 18:02:12


fetch http://spline.rooker.ru/ii/ii-point.php?q=/u/e/ii.dev.14
fetch http://spline.rooker.ru/ii/ii-point.php?q=/u/m/5avXlp8APkDJUK5ub2me/EdmUW3bhrhAAFgkLvasb/Azkk8BFEZ4hbHfKgyymi/ARmh2kig8g7x3zGirAs4/u96IwQJdyvaxplNcM3lh/OEacPAm9oZvgcr4slTeg/0hWmY7gJf98GtIWmTGx1/TG0giCJcwof7xdosTUMY/pL7DzW0FobNcqIv1dGiq/UoCmMqQmSFYE7q2Yvc9u/UB8igwArNDdSaXfDdCyd/u5EicJWc1XsputbR1AUI/abBrQSiApjltfp2pjOL2/XFKdnfaHlhBHDFbQ0siL/Ccb93uagqCcthjWh76O9/1fE7icOs24rR5JbBFsS0/bejMNjXLceS5tykRKs7i/18tWRifpWZD82phlgnK7/zoqSPeI287oDvF5apFgA/Mm1epi2YkoTqRyfhRWNk/xsSEjVNf4xqAA2iAxlUY/Pg83DwoPYu1Tjy47bOv0/3GxHtoH6n5pzkakA2s9R/FpRHHpH7gjq656Aa4te3/wCUJnu8pyths5ANbu4ZR/tvWAWRxG7jxkp0L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KvwUE/CxwqQnkQJsg0ttzod5Ir/KmoZhbYJInC3OxzACghA/sP4IOEOyYuxtUzxt2fIi/dAYTeY5RV5Tz8jiAKAJy ... [>>>]

echo/ii.dev.14 [0]
echo/ii.dev.14
Romero Yakovlev(lenina,1) — All
2014-05-26 16:15:56


5avXlp8APkDJUK5ub2me
EdmUW3bhrhAAFgkLvasb
Azkk8BFEZ4hbHfKgyymi
ARmh2kig8g7x3zGirAs4
u96IwQJdyvaxplNcM3lh
OEacPAm9oZvgcr4slTeg
0hWmY7gJf98GtIWmTGx1
TG0giCJcwof7xdosTUMY
pL7DzW0FobNcqIv1dGiq
UoCmMqQmSFYE7q2Yvc9u
UB8igwArNDdSaXfDdCyd
u5EicJWc1XsputbR1AUI
abBrQSiApjltfp2pjOL2
XFKdnfaHlhBHDFbQ0siL
Ccb93uagqCcthjWh76O9
1fE7icOs24rR5JbBFsS0
bejMNjXLceS5tykRKs7i
18tWRifpWZD82phlgnK7
zoqSPeI287oDvF5apFgA
Mm1epi2YkoTqRyfhRWNk
xsSEjVNf4xqAA2iAxlUY
Pg83DwoPYu1Tjy47bOv0
3GxHtoH6n5pzkakA2s9R
3GxHtoH6n5pzkakA2s9R
FpRHHpH7gjq656Aa4te3
wCUJnu8pyths5ANbu4ZR
tvWAWRxG7jxkp0L3Vduz
KlehYq8nUxwj2HXOEmmv
iX7ApWLnenYSlP8CM7mD
r4O06XnCfoOVznwcHTUF
iJJQux0kBd8brQ8MIdds
0U9HoOr1oxhE3AsFo501
SOqsrsv0EvqLABBoyvNw
ftFyyKtBHZk307e59qJT
phf4NdzWlSpecc3LOgpz
sQqA79Rx8GuheH2n97nj
rU9r3EAhGFYxNYn1ceTK
YompOofzrzXCLg7qQRVa
sG8PRnymOsHGBsSnw0Q8
qqqVKzdOlAqPAxm24zQI

z8adjSoiyz4mqkpVuPbD
cIaXEmpYymYnzdE1oAuw
bei0H5aTEUoy1AfbEXuw
2rRszvIvZlHYV7mHhXC8
20Z1X9vOAzSLz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w
... [>>>]

php rss bot [0]
php rss bot
vit01(lenina,50) — All
2014-05-25 05:00:41


ii-rss.php
<?php

require("ii-functions.php");

define('CWD', getcwd()."/feeds");
date_default_timezone_set("Asia/Irkutsk");
$limit=63000;

$default_template='<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<item>
<pubDate>'.date("r").'</pubDate>
</item>
</channel>
</rss>';

class RssParser
{
	public $obj;
	public $items;
	
	function __construct($adress)
	{
		$this->obj=simplexml_load_file($adress);
		$obj=$this->obj;

		$this->items=$obj->channel->item;
	}
}

function ii_rss($feedname,$adress,$echo) {
	global $default_template;

	if(!file_exists(CWD."/".$feedname)) {
			file_put_contents(CWD."/".$feedname, $default_template);
			return;
	}

	file_put_contents(CWD."/".$feedname.'-new',file_get_contents($adress,false));

	$news=new RssParser(CWD."/".$feedname);
	$news2=new RssParser(CWD."/".$feedname.'-new');
	$first_date=strtotime($news->items[0]->pubDate);

	$items=$news->items;
	$itemsDates=array();

	foreach($items as $item) {
		$itemsDates[]=strtotime($item->pubDate);
	}

	$todel=array();
	for($j=0;$j<count($news2->items);$j++) {
		$item1=$news2->items[$j];
		$loltime=strtotime($item1->pubDate);
		if($loltime>$first_date) {
			ii_post($item1,$echo);
		}
	}
	
	//del_news($news2,$todel);
	file_put_contents(CWD."/".$feedname, $news2->obj->asXML());
	
	unset($news);
	unset($news2);
}

function ii_post($item,$echo) {
	global $limit;

	$point="Новостной_робот";
	$subject=$item->title;
	$message=$item->description;

	$message=trim(strip_tags($message));
	$message=htmlspecialchars_decode(html_entity_decode($message, ENT_NOQUOTES, 'UTF-8'));
	
	if (count($message)<$limit) {
		
		echo "Сохранение статьи '".$subject."'\n";
		msg_to_ii($echo,$message,$point,"mira, 1",time(),"All",$subject,"");
	} else {
		$message=str_split($message,$limit);
		$lenn=count($message);

		for($i=0;$i<$lenn;$i++) {
			$i1=$i+1;
			echo "Сохранение статьи '".$subject."' [$i1/$lenn]\n";
... [>>>]

new spec [0]
new spec
vit01(lenina,50) — All
2014-05-03 17:18:36


Summary: the recreation of fido
Name: ii-net
Version: 03
Release: 1
URL: http://ii.51t.ru
Source0: http://irk38.tk/files/ii-%{version}.tar.gz
Source1: http://irk38.tk/files/iiclient-%{version}.tar.gz
Source2: http://irk38.tk/files/iitxt-%{version}.tar.gz
Source3: http://irk38.tk/files/scripts.tar.gz
License: custom
Group: Applications/Networking
Requires: python python-modules-wsgiref
Autoreq: 0

%description
russian fido-like messaging system with web interface, full version

%prep
tar -xzvf %_sourcedir/ii-%{version}.tar.gz
tar -xzvf %_sourcedir/iiclient-%{version}.tar.gz
tar -xzvf %_sourcedir/iitxt-%{version}.tar.gz
tar -xzvf %_sourcedir/scripts.tar.gz

%install
install -d %buildroot/usr/share/ii-net/ii-server/{api,echo,msg,iitpl,s/{fonts,css,js/vendor},tools/{gate,mkhtml,bundle,other,client-toss}}
install -d %buildroot/usr/share/ii-net/ii-client/{echo,msg,out,clapi,sa-node,tpl,s/{fonts,css,pretty,js/vendor}}
install -d %buildroot/usr/share/ii-net/ii-txt/{ii.test.14,.py/{echo,msg},.out}
install -d %buildroot/usr/bin
install -D -m 755 ii-03/api/{sx.py,bottle.py,__init__.py,splitparser.py,flt.py} %buildroot/usr/share/ii-net/ii-server/api/
install -D -m 755 ii-03/echo/my.local.14 %buildroot/usr/share/ii-net/ii-server/echo/
install -D -m 755 ii-03/iitpl/* %buildroot/usr/share/ii-net/ii-server/iitpl/
install -D -m 755 ii-03/msg/oocYs0PfAD0iC3GmmNIb %buildroot/usr/share/ii-net/ii-server/msg/
install -D -m 755 ii-03/{LICENSE*,my.local.14.header,README.utf8,run.sh,server.cfg,*.py} %buildroot/usr/share/ii-net/ii-server/
install -D -m 755 ii-03/s/favicon.png %buildroot/usr/share/ii-net/ii-server/s/ ... [>>>]

PKGBUILD 3 [0]
PKGBUILD 3
vit01(lenina,50) — All
2014-05-03 17:16:54


# Contributor: 51t <me@51t.ru>
# Maintainer: vitirk <vityairk@gmail.com>

pkgname='ii-net'
pkgver='03'
pkgdesc="russian fido-like messaging system with web interface"
pkgrel=3
arch=('any')
depends=('python2')
license=('custom')
url="http://ii.51t.ru"
source=("http://irk38.tk/files/ii-$pkgver.tar.gz"
	"http://irk38.tk/files/iiclient-$pkgver.tar.gz"
	"http://irk38.tk/files/iitxt-$pkgver.tar.gz"
	"http://irk38.tk/files/scripts.tar.gz"
)
md5sums=(
	"4130f8c6b253254a773e02328d723816"
	"1afb0a9ff53866a40a02a2c9e3dd661e"
	"8f420eaa1db795448773e5269d48a154"
	"9cc7615b61c00322f4da7c58ef3e971f"
)

package() {
	cd "${srcdir}"

	install -d $pkgdir/usr/share/ii-net/ii-server/{api,echo,msg,iitpl,s/{fonts,css,js/vendor},tools/{gate,mkhtml,bundle,other,client-toss}}
	install -d $pkgdir/usr/share/ii-net/ii-client/{echo,msg,out,clapi,sa-node,tpl,s/{fonts,css,pretty,js/vendor}}
	install -d $pkgdir/usr/share/ii-net/ii-txt/{ii.test.14,.py/{echo,msg},.out}
	install -d $pkgdir/usr/bin

	install -D -m 755 ii-03/api/{sx.py,bottle.py,__init__.py,splitparser.py,flt.py} $pkgdir/usr/share/ii-net/ii-server/api/
	install -D -m 755 ii-03/echo/my.local.14 $pkgdir/usr/share/ii-net/ii-server/echo/
	install -D -m 755 ii-03/iitpl/* $pkgdir/usr/share/ii-net/ii-server/iitpl/
	install -D -m 755 ii-03/msg/oocYs0PfAD0iC3GmmNIb $pkgdir/usr/share/ii-net/ii-server/msg/
	install -D -m 755 ii-03/{LICENSE*,my.local.14.header,README.utf8,run.sh,server.cfg,*.py} $pkgdir/usr/share/ii-net/ii-server/
	install -D -m 755 ii-03/s/favicon.png $pkgdir/usr/share/ii-net/ii-server/s/
	install -D -m 755 ii-03/s/fonts/* $pkgdir/usr/share/ii-net/ii-server/s/fonts/
	install -D -m 755 ii-03/s/css/* $pkgdir/usr/share/ii-net/ii-server/s/css/
	install -D -m 755 ii-03/s/js/foundation.min.js $pkgdir/usr/share/ii-net/ii-server/s/js/
	install -D -m 755 ii-03/s/js/vendor/* $pkgdir/usr/share/ii-net/ii-server/s/js/vendor/
	install -D -m 755 ii-03/tools/gate/* $pkgdir/usr/share/ii-net/ii-server/tools/gate/
	install -D -m 755 ii-03/tools/mkhtml/* $pkgdir/usr/share/ii-net/ii-server/tools/mkhtml/
... [>>>]

install2 [0]
install2
vit01(lenina,50) — All
2014-04-26 09:25:38


#!/bin/bash
install -d ./root/usr/share/ii-net/ii-server/{api,msg,iitpl,s/{fonts,css,js/vendor}}
install -D -m 755 ii-03/api/{sx.py,bottle.py,__init__.py,splitparser.py,flt.py} ./root/usr/share/ii-net/ii-server/api/
install -D -m 755 ii-03/echo/my.local.14 ./root/usr/share/ii-net/ii-server/echo/
install -D -m 755 ii-03/iitpl/* ./root/usr/share/ii-net/ii-server/iitpl/
install -D -m 755 ii-03/msg/oocYs0PfAD0iC3GmmNIb ./root/usr/share/ii-net/ii-server/msg/
install -D -m 755 ii-03/* ./root/usr/share/ii-net/ii-server/
install -D -m 755 ii-03/s/favicon.png ./root/usr/share/ii-net/ii-server/s/
install -D -m 755 ii-03/s/fonts/* ./root/usr/share/ii-net/ii-server/s/fonts/
install -D -m 755 ii-03/s/css/* ./root/usr/share/ii-net/ii-server/s/css/
install -D -m 755 ii-03/s/js/foundation.min.js ./root/usr/share/ii-net/ii-server/s/js/
install -D -m 755 ii-03/s/js/vendor/* ./root/usr/share/ii-net/ii-server/s/js/vendor/
install -D -m 755 ii-03/tools/gate/* ./root/usr/share/ii-net/ii-server/tools/gate/
install -D -m 755 ii-03/tools/mkhtml/* ./root/usr/share/ii-net/ii-server/tools/mkhtml/
install -D -m 755 ii-03/tools/bundle/* ./root/usr/share/ii-net/ii-server/tools/bundle/
install -D -m 755 ii-03/tools/other/traf.py ./root/usr/share/ii-net/ii-server/tools/other/
install -D -m 755 ii-03/tools/client-toss/* ./root/usr/share/ii-net/ii-server/tools/client-toss/
install -D -m 755 iiclient-03/clapi/* ./root/usr/share/ii-net/ii-client/clapi/
install -D -m 755 iiclient-03/* ./root/usr/share/ii-net/ii-client/
install -D -m 755 iiclient-03/out/1.out ./root/usr/share/ii-net/ii-client/out/
install -D -m 755 iiclient-03/* ./root/usr/share/ii-net/ii-client/
install -D -m 755 iiclient-03/s/favicon.png ./root/usr/share/ii-net/ii-client/s/
install -D -m 755 iiclient-03/s/pretty/* ./root/usr/share/ii-net/ii-client/s/pretty/
install -D -m 755 iiclient-03/s/fonts/* ./root/usr/share/ii-net/ii-client/s/fonts/
install -D -m 755 iiclient-03/s/css/* ./root/usr/share/ii-net/ii-client/s/css/ ... [>>>]

cp log [0]
cp log
vit01(lenina,50) — All
2014-04-23 14:39:30


ii-03/api ./root/usr/share/ii-net/ii-server/api
ii-03/api/sx.py ./root/usr/share/ii-net/ii-server/api/sx.py
ii-03/api/bottle.py ./root/usr/share/ii-net/ii-server/api/bottle.py
ii-03/api/__init__.py ./root/usr/share/ii-net/ii-server/api/__init__.py
ii-03/api/splitparser.py ./root/usr/share/ii-net/ii-server/api/splitparser.py
ii-03/api/flt.py ./root/usr/share/ii-net/ii-server/api/flt.py
ii-03/echo ./root/usr/share/ii-net/ii-server/echo
ii-03/echo/my.local.14 ./root/usr/share/ii-net/ii-server/echo/my.local.14
ii-03/iitpl ./root/usr/share/ii-net/ii-server/iitpl
ii-03/iitpl/index.html ./root/usr/share/ii-net/ii-server/iitpl/index.html
ii-03/iitpl/01.tpl ./root/usr/share/ii-net/ii-server/iitpl/01.tpl
ii-03/iitpl/PyRSS2Gen.py ./root/usr/share/ii-net/ii-server/iitpl/PyRSS2Gen.py
ii-03/iitpl/repbtn.tpl ./root/usr/share/ii-net/ii-server/iitpl/repbtn.tpl
ii-03/iitpl/01m.tpl ./root/usr/share/ii-net/ii-server/iitpl/01m.tpl
ii-03/iitpl/__init__.py ./root/usr/share/ii-net/ii-server/iitpl/__init__.py
ii-03/iitpl/rssg.py ./root/usr/share/ii-net/ii-server/iitpl/rssg.py
ii-03/iitpl/echoarea.html ./root/usr/share/ii-net/ii-server/iitpl/echoarea.html
ii-03/iitpl/mform.html ./root/usr/share/ii-net/ii-server/iitpl/mform.html
ii-03/iitpl/msg.html ./root/usr/share/ii-net/ii-server/iitpl/msg.html
ii-03/LICENSE ./root/usr/share/ii-net/ii-server/LICENSE
ii-03/LICENSE.3rd ./root/usr/share/ii-net/ii-server/LICENSE.3rd
ii-03/msg ./root/usr/share/ii-net/ii-server/msg
ii-03/msg/oocYs0PfAD0iC3GmmNIb ./root/usr/share/ii-net/ii-server/msg/oocYs0PfAD0iC3GmmNIb
ii-03/my.local.14.header ./root/usr/share/ii-net/ii-server/my.local.14.header
ii-03/points.py ./root/usr/share/ii-net/ii-server/points.py
ii-03/README.utf8 ./root/usr/share/ii-net/ii-server/README.utf8
ii-03/run.py ./root/usr/share/ii-net/ii-server/run.py
ii-03/run.sh ./root/usr/share/ii-net/ii-server/run.sh
ii-03/s ./root/usr/share/ii-net/ii-server/s
ii-03/s/favicon.png ./root/usr/share/ii-net/ii-server/s/favicon.png ... [>>>]

PKGBUILD [0]
PKGBUILD
vit01(lenina,50) — All
2014-04-18 18:55:15


pkgname=('ii-net')
pkgver=('03')
pkgdesc=("russian fido-like messaging system with web interface")
pkgrel=1
arch=('any')
depends=('python2')
license=('custom')
url="http://ii.51t.ru"
source=("http://51t.ru/s/ii-$pkgver.tar.gz"
	"http://51t.ru/s/iiclient-$pkgver.tar.gz"
	"http://51t.ru/s/iitxt-$pkgver.tar.gz"
	"http://irk38.tk/files/scripts.tar.gz"
)
md5sums=(
	"4130f8c6b253254a773e02328d723816"
	"8b090e725df73010e41b04fa54c8f95f"
	"a17bfec7085737a8e19bf287008f25d5"
	"0260be942f4163a170a6b44efb8b59da"
)

package() {
	cd "${srcdir}"
	mkdir -p $pkgdir/usr/share/ii-net/{ii-server,ii-client,ii-txt}
	cp -r ii-03/* $pkgdir/usr/share/ii-net/ii-server
	cp -r iiclient-03/* $pkgdir/usr/share/ii-net/ii-client
	cp -r iitxt-03/* $pkgdir/usr/share/ii-net/ii-txt
	cp -r iitxt-03/{.py,.out} $pkgdir/usr/share/ii-net/ii-txt/

	mkdir -p $pkgdir/usr/bin/
	cp scripts/* $pkgdir/usr/bin/
}

Re: тестирование [3]
Re: тестирование
vit01(lenina,50) — 51t
2014-03-31 06:03:41


Зашлось через браузер. Создал эху заново, нажал на её название в браузере, нажал "добавить сообщение", выводит

Error: 500 Internal Server Error

Sorry, the requested URL 'http://localhost:62220/reply/testnode.2014/-' caused an error:

Internal Server Error
Exception:

IOError(2, 'No such file or directory')
Traceback:

Traceback (most recent call last):
File "/home/vitya/prg/pre02/bottle.py", line 783, in _handle
return route.call(**args)
File "/home/vitya/prg/pre02/bottle.py", line 1635, in wrapper
rv = callback(*a, **ka)
File "run.py", line 39, in index_list
return template('mform.html',r=local.r,ea=ea)
File "/home/vitya/prg/pre02/bottle.py", line 3216, in template
return TEMPLATES[tplid].render(kwargs)
File "/home/vitya/prg/pre02/bottle.py", line 3189, in render
self.execute(stdout, kwargs)
File "/home/vitya/prg/pre02/bottle.py", line 3177, in execute
eval(self.co, env)
File "/home/vitya/prg/pre02/mform.html", line 17, in <module>
%uname, uaddr = points.check_hash(r.auth)
File "/home/vitya/prg/pre02/points.py", line 15, in check_hash
p = open('points.txt').read().splitlines()
IOError: [Errno 2] No such file or directory: 'points.txt'

Ругается на отсутствие поинтов. Поинта создал, но лучше как-то предусмотреть вариант отсутствия файла.

Тест [0]
Тест
vit01(lenina,50) — All
2014-04-01 03:35:14


Тестирую новый клиент