НДФЛ при продаже имущества
http://www.klerk.ru/persona/140377/
Кто должен платить НДФЛ http://www.1gl.ru/nb.aspx#111,6446,
http://www.klerk.ru/persona/140377/
Кто должен платить НДФЛ http://www.1gl.ru/nb.aspx#111,6446,
nircmd.exe cmdwait 1000 monitor off
http://www.nirsoft.net/utils/nircmd.html
Копирайт данной статьи — kfx
delete access_profile profile_id 2
# критерием выборки трафика считаем dscp метку
create access_profile ip dscp profile_id 2
# трафику с 25 и 26 порта с dscp 32 и 56 назначаем приоритет 4 и 7
config access_profile profile_id 2 add access_id 1 ip dscp 32 port 25-26 permit priority 4
config access_profile profile_id 2 add access_id 3 ip dscp 56 port 25-26 permit priority 7
delete access_profile profile_id 5
# критерием выборки трафика считаем адрес получателя
create access_profile ip destination_ip_mask 255.255.255.255 profile_id 5
# поднимаем приоритет трафика адресованного серврам телефонии
config access_profile profile_id 5 add access_id 1 ip destination_ip XXX.XXX.XXX.XXX port 1-26 permit priority 7
config access_profile profile_id 5 add access_id 27 ip destination_ip ip XXX.XXX.XXX.XXX port 1-26 permit priority 7
# фильтруем трафик на основание протокола и порта получателя
delete access_profile profile_id 6
create access_profile packet_content_mask offset_16-31 0x0 0x0 0x000000ff 0x0 offset_32-47 0x0 0x0 0xffff0000 0x0 profile_id 6
# фильтруем 139 , 445 ,135 порты tcp на всех портах
config access_profile profile_id 6 add access_id 1 packet_content_mask offset_16-31 0x0 0x0 0x00000006 0x0 offset_32-47 0x0 0x0 0x01bd0000 0x0 port 1-26 deny
config access_profile profile_id 6 add access_id 27 packet_content_mask offset_16-31 0x0 0x0 0x00000006 0x0 offset_32-47 0x0 0x0 0x00870000 0x0 port 1-26 deny
config access_profile profile_id 6 add access_id 53 packet_content_mask offset_16-31 0x0 0x0 0x00000006 0x0 offset_32-47 0x0 0x0 0x008b0000 0x0 port 1-26 deny
# фильтруем 137 138 1900 UDP на всех портах
config access_profile profile_id 6 add access_id 79 packet_content_mask offset_16-31 0x0 0x0 0x00000011 0x0 offset_32-47 0x0 0x0 0x00890000 0x0 port 1-26 deny
config access_profile profile_id 6 add access_id 105 packet_content_mask offset_16-31 0x0 0x0 0x00000011 0x0 offset_32-47 0x0 0x0 0x008a0000 0x0 port 1-26 deny
config access_profile profile_id 6 add access_id 131 packet_content_mask offset_16-31 0x0 0x0 0x00000011 0x0 offset_32-47 0x0 0x0 0x076c0000 0x0 port 1-26 deny
# фильтруем 1234 UDP на портах 1-24
config access_profile profile_id 6 add access_id 157 packet_content_mask offset_16-31 0x0 0x0 0x00000011 0x0 offset_32-47 0x0 0x0 0x04d20000 0x0 port 1-24 deny
#занижаем приоритет трафика с 10/8 -> 10/8
# при этом хождение трафика автоматом разрешается
# по этому эти правила после всех фильтров
delete access_profile profile_id 7
create access_profile ip source_ip_mask 255.0.0.0 destination_ip_mask 255.0.0.0 profile_id 7
config access_profile profile_id 7 add access_id 1 ip destination_ip 10.0.0.0 source_ip 10.0.0.0 port 1-26 permit priority 1
# включаем igmp_snooping и фильтруем левый мультикаст трафик
# юзеры в влане "default"
enable igmp_snooping
config igmp_snooping querier default state disable
config igmp_snooping default state enable
config multicast port_filtering_mode all filter_unregistered_groups
# фильтры на мультикаст группы
# диапазоны вещания и обновления прошивки
create multicast_range 1 from 224.0.0.2 to 224.0.0.2
create multicast_range 2 from 225.100.0.0 to 225.100.255.255
create multicast_range 4 from 239.60.8.1 to 239.60.8.1
config limited_multicast_addr ports 1-26 add multicast_range 1
config limited_multicast_addr ports 1-26 add multicast_range 2
config limited_multicast_addr ports 1-26 add multicast_range 4
config limited_multicast_addr ports 1-26 access permit state enable
Asterisk Fast AGI — удаленное AGI:
http://www.voip-info.org/wiki/view/Asterisk+FastAGI
Asterisk Manager Interface:
http://www.voip-info.org/wiki/view/Asterisk+manager+API
Manager: Originate:
http://voip.rus.net/tiki-index.php?page=Asterisk+Manager+API+Action+Originate
Asterisk Local Channels:
http://voip.rus.net/tiki-index.php?page=Asterisk+Local+channels
G729,G723.1 в Asterisk
http://siper.ru/art-dobavlenie_podderzhki_kodekov_g729__g7231_i_spee.html
http://asterisk.hosting.lv/
В uTorrent была добавлена поддержка mTP — от этого udp pps сильно вырос. Нужно это фильтровать.
Тема обсуждается у нага
Конфиг для Cisco роутеров
class-map type access-control match-any No_Torrent
match start l3-start offset 40 size 5 regex "\x7F\xFF\xFF\xFF\xAB"
policy-map type access-control No_Torrent_PM
class No_Torrent
drop
interface GigabitEthernet0/0
service-policy type access-control input No_Torrent_PM
Хорошая статья ао regexp-ам perlfaq6 — регулярные выражения.
Как разместить пример для дебага
AllowBlank плагин — помечает звездочкой обязательные поля
Расширенные методы для работы со Array,String, и т.д. (reverse,union…)
Dynamic grid panel — Дирнамические столбцы из meta
Преобразование массивов:
Оригинал тут
select client_id, array_agg(order_id) from simple_table group by client_id;
select * from explode_array(array[1,2,3,4]);
Парсинг массивов postgres в php:
http://dklab.ru/lib/DB_Pgsql_Type/
Описание схемы:
http://www.postgresql.org/docs/8.4/interactive/information-schema.html
Выбор информации обо всех таблицах:
SELECT c.table_schema, c.table_name,
array_agg(CAST(c.column_name AS text)) as col_names,
array_agg(DISTINCT CAST(c.data_type AS text)) As dat_types
FROM information_schema.columns AS c
GROUP BY c.table_schema, c.table_name;
Либа для автоматических тестов PGUNIT:
http://dklab.ru/lib/dklab_pgunit/
Хорошая статья про ON-LINE backup http://www.opennet.ru/base/sys/postgresql_online_backup.txt.html
Для того, чтобы сделать простой бэкап в формате SQL:
pg_dump --inserts -U pavel -W database_name > /home/pavel/backup.sql
Программа для управления несколькими мониторами
http://www.realtimesoft.com/ultramon/
interface Loopback2
ip address 10.50.0.0 255.255.0.0
no ip redirects
!
interface Vlan178
ip unnumbered Loopback2
no ip proxy-arp
!
ip route 10.50.1.0 255.255.255.0 Vl178