"Open Source" 013 [ http://osa.samag.ru/ ]. .

  Conky:   
( )


alignment bottom_right
gap_x 7
gap_y 40


${color #3d2a8c}CPU:${color #3d2a8c} $cpu%
${cpugraph 000000 ffffff}


${color #711919}eth0 up: ${upspeedf eth0}k/s ${alignr}${totalup eth0} total
${upspeedgraph eth0}


${color #1b1b1b}${execi 1800 ~/.config/conky/weather.sh}



// {BEGIN ".conkyrc"}

alignment bottom_right
gap_y 40
gap_x 7

update_interval 4

use_xft yes
xftfont Courier:size=12

use_spacer yes
background no
own_window no
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 0
border_margin 9
border_width 1
no_buffers yes
uppercase no

default_color grey90
default_shade_color black
default_outline_color DarkGrey

TEXT
${color #6e4300}$nodename$color${alignr}${color #313131}$sysname $kernel${color #00387e}
${time %F}${alignr}${color #00387e}${time %k:%M:%S}${color}
${color #313131}Uptime:${alignr}${color #313131}$uptime${alignr}

$color$stippled_hr
${color #1b1b1b}${execi 1800 ~/.config/conky/weather.sh}
$color$stippled_hr
${color #3d2a8c}CPU:${color #3d2a8c} $cpu%
${cpugraph 000000 ffffff}
${color #3d2a8c}RAM:${color #3d2a8c} $memperc%
${memgraph 000000 ffffff}
CPU:${color #3d2a8c} ${i2c 9191-0290 temp 1}C${color #3d2a8c} -- MB:${color #3d2a8c} ${i2c 9191-0290 temp 3}C
$color$stippled_hr
${color #711919}eth0 up: ${upspeedf eth0}k/s ${alignr}${totalup eth0} total
${upspeedgraph eth0}
$color$stippled_hr
${color #711919}eth1 down: ${downspeedf eth1}k/s ${alignr}${totaldown eth1} total
${downspeedgraph eth1}
${color #711919}eth1 up: ${upspeedf eth1}k/s ${alignr}${totalup eth1} total
${upspeedgraph eth1}
$color$stippled_hr
${alignc}${color #313131}TCP In: ${tcp_portmon 1 32767 count} Out: ${tcp_portmon 32768 61000 count}
$color$stippled_hr
${color #000000}root:  ${color #3d2a8c}${fs_bar 5,100 /} ${alignr}${color #000000}${fs_free_perc /}%
${color #000000}audio: ${color #3d2a8c}${fs_bar 5,100 /mnt/mm/audio} ${alignr}${color #000000}${fs_free_perc /mnt/mm/audio}%
${color #000000}video: ${color #3d2a8c}${fs_bar 5,100 /mnt/video} ${alignr}${color #000000}${fs_free_perc /mnt/video}%
$color$stippled_hr


// {END ".conkyrc"}




// {BEGIN "weather.sh"}


#!/bin/sh

#
# Grab weather data from weather.com and format it according to the given XSLT
# Script written by boojit
# Modified by Hellf[i]re
# The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz

# Usage:
# ${execi 1800 /path/to/weather/weather.sh location}
# Usage Example:
# ${execi 1800 /home/user/weather/weather.sh 03833}

# your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it 
# U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
LOCID=RSXX0063

# s=standard units, m=metric units
UNITS=m

# where this script and the XSLT lives
RUNDIR=/home/shurup/.config/conky/

# there's probably other stuff besides CURL that will work for this, but i haven't 
# tried any others. 
# you can get curl at http://curl.haxx.se/
CURLCMD=/usr/bin/curl

# get it at http://xmlsoft.org/XSLT/
XSLTCMD=/usr/bin/xsltproc

# you probably don't need to modify anything below this point....

# CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
CURLURL="http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS&dayf=2"

# The XSLT to use when translating the response from weather.com
# You can modify this xslt to your liking 
XSLT=$RUNDIR/weather.xslt 

#filter (if you want to convert stuff to lower-case or upper case or something)
#FILTER="|gawk '{print(tolower(\$0));}'"

eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER"


// {END "weather.sh"}




// {BEGIN "weather.xslt"}


<!-- 

 This XSLT is used to translate an XML response from the weather.com
 XML API. 

 You can format this file to your liking. Two things you may feel 
 like doing:

	1) Modify the layout of the fields or static text already defined
	2) Add other fields from the XML response file that aren't referenced in this
	   XSLT. You can grab a full list by just doing a: 
           wget "http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS" 
           (change $LOCID and $UNITS to suit your needs)
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > 
	<xsl:output method="text" disable-output-escaping="yes"/>
	<xsl:template match="weather">
		<xsl:apply-templates select="cc"/>
		<xsl:apply-templates select="dayf/day[@d='1']"/>
	</xsl:template>
 
	
	<xsl:template match="cc">
<xsl:text>Local Weather:</xsl:text>

<xsl:text>
  </xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text>   </xsl:text><xsl:value-of select="round(bar/r * 760 div 1013.2472)"/><xsl:text></xsl:text><xsl:value-of select="/weather/head/ur"/>
<xsl:text>(</xsl:text><xsl:value-of select="bar/d"/><xsl:text>)</xsl:text>
<xsl:if test="tmp != flik">
<xsl:text>
  Feels Like: </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/head/ut"/>
</xsl:if>
<xsl:text>

  </xsl:text><xsl:value-of select="t"/><xsl:text>  </xsl:text><xsl:value-of select="hmid"/><xsl:text>%</xsl:text>
<xsl:text>
  Wind: </xsl:text>
<xsl:choose>
	<xsl:when test="wind/s = 'calm'"><xsl:text>0</xsl:text></xsl:when>
	<xsl:otherwise><xsl:value-of select="round(wind/s * 0.2777)"/></xsl:otherwise>
</xsl:choose><xsl:text> m/s</xsl:text>

<xsl:text> (</xsl:text><xsl:value-of select="wind/t"/>
<xsl:text>)</xsl:text>
	</xsl:template>
	<xsl:template match="dayf/day[@d='1']">
<xsl:text>
Tomorrow: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>

<xsl:text>, 
  </xsl:text><xsl:value-of select="part[@p='d']/t"/>
<xsl:text>
  </xsl:text><xsl:value-of select="/weather/swa/a/t"/>
<xsl:text>
</xsl:text>
	</xsl:template>
</xsl:stylesheet>


// {END "weather.xslt"}






Policyd     
( )


root:/usr/src/policyd-v1.80 /# make


# make build
# make install


# mysql -p < DATABASE.mysql


mysql grant all on policyd.* to postfix@localhost identified by somepassword;


smtpd_recipient_restrictions =


check_policy_service inet:127.0.0.1:10031


0 * * * * /usr/local/policyd/cleanup -c /usr/local/policyd/policyd.conf


cd /usr/local/policyd
./stats --c policyd.conf

