Quick jump:  What's new

 
Go to:
 
Weblog: DocumentS   
in RazmjenaVjestina
FontsConf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
   <edit name="autohint" mode="assign">
    <bool>true</bool>
   </edit>
  </match>
</fontconfig>


original Jun 1 3:06am

permalink
MplayerConfig

autosync=0
cdrom-device=/dev/cdrom
channels=4
dvd-device=/dev/cdrom
#osdlevel=3
#sub-bg-color=250
sub-fuzziness=1
subalign=2
subfont-autoscale=1
brightness=15
#fbmode="1024x768-72"
fstype=fullscreen
monitoraspect=16:9
screenw=1024
screenh=768
aspect=16:9
stereo=0
autosync=30
nojoystick=yes
nolirc=yes
noautosub=yes
ffactor=0.75
sub=yes
#subcp=latin1
subfont-encoding=iso8859-2
#subfont-blur=2
#subfont-osd-scale=6
#subfont-text-scale=5
#unicode=yes
#dr=yes
font=/home/bud/.mplayer/font/font.desc


original May 9 11:23am

permalink
FireWall

#!/bin/sh
#----
---------------------------------------------------------------
----
# beware, comments FOLLOW the rules, not precede them.
#
/sbin/iptables -F
/sbin/iptables -X block
#flush all rules first ...
#
#----
---------------------------------------------------------------
----
/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
#A little NAT, we'll need it, too.
#
#/usr/local/bin/iptables -t nat -A PREROUTING -i ! ppp0 -p tcp --dport 80 -j REDIRECT --to 194.152.207.52:4242
#some transparent proxying??
#
/sbin/iptables -t nat -A PREROUTING -i ! ppp0 -p tcp --dport 6667 -j DNAT --to-destination 192.168.1.1:7000
#irc port redirection?
#
/sbin/iptables -N block
#define our rule chain ...
#
#----
---------------------------------------------------------------
----
/sbin/iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT
#accept _all_ established connections initiated by our side ...
#
/sbin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --dport 113 -i ppp0 -j ACCEPT
/sbin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --sport 113 -i ppp0 -j ACCEPT
#accept _all_ connections on *ident* port
#
#/usr/local/bin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --dport 6667 -j ACCEPT
#/usr/local/bin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --sport 6667 -j ACCEPT
#accept _all_ connections on *ircd* port
#
#/usr/local/bin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --dport 22 -i ppp0 -j ACCEPT
#/usr/local/bin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --sport 22 -i ppp0 -j ACCEPT
#accept _all_ connections on *ssh* port -- NOT!
#
/sbin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --dport 20 -i ppp0 -j ACCEPT
/sbin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --sport 20 -i ppp0 -j ACCEPT
#accept _all_ connections on *ftp-data* port
#
/sbin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --dport 53 -i ppp0 -j ACCEPT
/sbin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --sport 53 -i ppp0 -j ACCEPT
/sbin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol udp --dport 53 -i ppp0 -j ACCEPT
/sbin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol udp --sport 53 -i ppp0 -j ACCEPT
#accept _all_ connections on *DNS* ports
#
#/usr/local/bin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --dport 4000 -i ppp0 -j ACCEPT
#/usr/local/bin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --sport 4000 -i ppp0 -j ACCEPT
##/usr/local/bin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --dport 4242 -i ppp0 -j ACCEPT
##/usr/local/bin/iptables -A block -m state --state NEW,ESTABLISHED,RELATED --protocol tcp --sport 4242 -i ppp0 -j ACCEPT
#accept _all_ connections on our strange proxy port
#
/sbin/iptables -A block -m state --state NEW -i ! ppp0 -j ACCEPT
#accept _all_ connections originating on our local interfaces
#
/sbin/iptables -A block -j DROP
#default policy is drop, of course
#
/sbin/iptables -A INPUT -j block
#all in input chain we forward to our rules...
#
/sbin/iptables -A FORWARD -j block
#and forward chain,too.
#
/sbin/iptables -A FORWARD -m limit -j LOG
#do a little, of course limited, logging.
#
/sbin/iptables -A FORWARD -p tcp --syn -m limit --limit 1/s -j ACCEPT
/sbin/iptables -A FORWARD -p tcp --syn -m limit --limit 1/s -j LOG
#SYNflood protection
#
/sbin/iptables -A FORWARD -p icmp --icmp-type echo-request -m limit --limit 1/s -j ACCEPT
/sbin/iptables -A FORWARD -p icmp --icmp-type echo-request -m limit --limit 1/s -j LOG
#ping of death protection
#
#----
---------------------------------------------------------------
----
#that's all folks, for now.


original May 9 2:08am

permalink
ZshRc

function precmd {

    local TERMWIDTH
    (( TERMWIDTH = ${COLUMNS} - 1 ))


    ###
    # Truncate the path if it's too long.
    
    PR_FILLBAR=""
    PR_PWDLEN=""
    
    local promptsize=${#${(%):---(%n@%m:%l)---()--}}
    local pwdsize=${#${(%):-%~}}
    
    if [[ "$promptsize + $pwdsize" -gt $TERMWIDTH ]]; then
	    ((PR_PWDLEN=$TERMWIDTH - $promptsize))
    else
	PR_FILLBAR="\${(l.(($TERMWIDTH - ($promptsize + $pwdsize)))..${PR_HBAR}.)}"
    fi


    ###
    # Get APM info.

#    if which ibam > /dev/null; then
#	PR_APM_RESULT=`ibam --percentbattery`
 #   elif which apm > /dev/null; then
#	PR_APM_RESULT=`apm`
 #   fi
}


setopt extended_glob
preexec () {
    if [[ "$TERM" == "screen" ]]; then
	local CMD=${1[(wr)^(*=*|sudo|-*)]}
	echo -n "\ek$CMD\e\\"
    fi
}


setprompt () {
    ###
    # Need this so the prompt will work.

    setopt prompt_subst


    ###
    # See if we can use colors.

    autoload colors zsh/terminfo
    if [[ "$terminfo[colors]" -ge 8 ]]; then
	colors
    fi
    for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
	eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
	eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
	(( count = $count + 1 ))
    done
    PR_NO_COLOUR="%{$terminfo[sgr0]%}"


    ###
    # See if we can use extended characters to look nicer.
    
    typeset -A altchar
    set -A altchar ${(s..)terminfo[acsc]}
    PR_SET_CHARSET="%{$terminfo[enacs]%}"
    PR_SHIFT_IN="%{$terminfo[smacs]%}"
    PR_SHIFT_OUT="%{$terminfo[rmacs]%}"
    PR_HBAR=${altchar[q]:--}
    PR_ULCORNER=${altchar[l]:--}
    PR_LLCORNER=${altchar[m]:--}
    PR_LRCORNER=${altchar[j]:--}
    PR_URCORNER=${altchar[k]:--}

    
    ###
    # Decide if we need to set titlebar text.
    
    case $TERM in
	xterm*)
	    PR_TITLEBAR=$'%{\e]0;%(!.-=*[ROOT]*=- | .)%n@%m:%~ | ${COLUMNS}x${LINES} | %y\a%}'
	    ;;
	screen)
	    PR_TITLEBAR=$'%{\e_screen \005 (\005t) | %(!.-=[ROOT]=- | .)%n@%m:%~ | ${COLUMNS}x${LINES} | %y\e\\%}'
	    ;;
*)
	    PR_TITLEBAR=_
	    ;;
    esac
    
    
    ###
    # Decide whether to set a screen title
    if [[ "$TERM" == "screen" ]]; then
	PR_STITLE=$'%{\ekzsh\e\\%}'
    else
	PR_STITLE=_
    fi
    
    
    ###
    # APM detection
    
#    if which ibam > /dev/null; then
#	PR_APM='$PR_RED${${PR_APM_RESULT[(f)1]}[(w)-2]}%%(${${PR_APM_RESULT[(f)3]}[(w)-1]})$PR_LIGHT_BLUE:'
#    elif which apm > /dev/null; then
#	PR_APM='$PR_RED${PR_APM_RESULT[(w)5,(w)6]/\% /%%}$PR_LIGHT_BLUE:'
#    else
#	PR_APM=''
#    fi
	
#	alias ls='ls -AFqshH --color'
    	alias lsl='ls -Al --color=auto'
 	alias ls='ls --color=auto'
	alias cd..='cd ..'
	alias df='df -h'
	alias defdate='date +%r'
	alias cls='clear'

    ###
    # Finally, the prompt.

    PROMPT='$PR_SET_CHARSET$PR_STITLE${(e)PR_TITLEBAR}\
$PR_CYAN$PR_SHIFT_IN$PR_ULCORNER$PR_BLUE$PR_HBAR$PR_SHIFT_OUT(\
$PR_GREEN%(!.%SROOT%s.%n)$PR_GREEN@%m:%l\
$PR_BLUE)$PR_SHIFT_IN$PR_HBAR$PR_CYAN$PR_HBAR${(e)PR_FILLBAR}$PR_BLUE$PR_HBAR$PR_SHIFT_OUT(\
$PR_MAGENTA%$PR_PWDLEN<...<%~%<<\
$PR_BLUE)$PR_SHIFT_IN$PR_HBAR$PR_CYAN$PR_URCORNER$PR_SHIFT_OUT\

$PR_CYAN$PR_SHIFT_IN$PR_LLCORNER$PR_BLUE$PR_HBAR$PR_SHIFT_OUT(\
%(?..$PR_LIGHT_RED%?$PR_BLUE:)\
${(e)PR_APM}$PR_YELLOW%D{%H:%M}\
$PR_LIGHT_BLUE:%(!.$PR_RED.$PR_WHITE)%#$PR_BLUE)$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT\
$PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT\
$PR_NO_COLOUR '

    RPROMPT=' $PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_BLUE$PR_HBAR$PR_SHIFT_OUT\
($PR_YELLOW%D{%a,%b%d}$PR_BLUE)$PR_SHIFT_IN$PR_HBAR$PR_CYAN$PR_LRCORNER$PR_SHIFT_OUT$PR_NO_COLOUR'

    PS2='$PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT\
$PR_BLUE$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT(\
$PR_LIGHT_GREEN%_$PR_BLUE)$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT\
$PR_CYAN$PR_SHIFT_IN$PR_HBAR$PR_SHIFT_OUT$PR_NO_COLOUR '
}

setprompt


original May 9 2:05am

permalink
XdeFaults

!!! XTerm

XTerm*saveLines: 900
#XTerm*scrollBar: true

XTerm*backarrowKeyIsErase: true

!!! XTerm fonts

XTerm*faceName: Bitstream Vera Sans":size=13
XTerm*locale: ISO8859-2

#XTerm*font: -misc-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-iso8859-2

!!! XTerm colors

XTerm*background: black
XTerm*foreground: green

#XTerm*color0: black
#XTerm*color1: firebrick2
#XTerm*color2: CornflowerBlue
#XTerm*color3: goldenrod3
#XTerm*color4: Blue
#XTerm*color5: maroon2
#XTerm*color6: LightSeaGreen
#XTerm*color7: Blue
#XTerm*color8: Blue
#XTerm*color9: VioletRed3
#XTerm*color10: blue3
#XTerm*color11: gold
XTerm*color12: CornflowerBlue
#XTerm*color13: orchid
#XTerm*color14: aquamarine2
XTerm*color15: green4
#XTerm*colorUL: green4
#XTerm*colorBD: blue

!!! Aterm

Aterm*scrollBar: false
Aterm*visualBell: false
Aterm*font: -*-lucidatypewriter-medium-r-normal-sans-12-*-*-*-*-*-iso8859-2

Aterm*transparent: true
Aterm*tinting: LightSlateGray
Aterm*shading: 50

Aterm*color1: firebrick2
Aterm*color2: OliveDrab
Aterm*color3: goldenrod3
Aterm*color4: DodgerBlue3
Aterm*color5: #F85FDC
Aterm*color6: LightSeaGreen
Aterm*color7: gray90
Aterm*color8: gray30
Aterm*color9: VioletRed3
Aterm*color10: YellowGreen
Aterm*color11: gold
Aterm*color12: turquoise4
Aterm*color13: #F85FDC
Aterm*color14: aquamarine2
Aterm*color15: white

Eterm*color1: firebrick2
Eterm*color2: OliveDrab
Eterm*color3: goldenrod3
Eterm*color4: DodgerBlue3
Eterm*color5: #F85FDC
Eterm*color6: LightSeaGreen
Eterm*color7: gray90
Eterm*color8: gray30
Eterm*color9: VioletRed3
Eterm*color10: YellowGreen
Eterm*color11: gold
Eterm*color12: turquoise4
Eterm*color13: #F85FDC
Eterm*color14: aquamarine2
Eterm*color15: white
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintmedium


original Feb 28 2:04pm

permalink
GetMailrc

options

verbose = 1

read_all = true

delete = true

message_log = ""

  1. timeout = 240

max_message_size = 0

retriever

type =

SimplePOP3Retriever

server = pop.htnet.hr

username = username

password = password

destination

type = Mboxrd

path = /var/spool/mail/


original Feb 27 2:02pm

permalink
MuttRc

set alias_file=~/.Mail/.aliases # where I keep my aliases

set alias_format="%2f %t %r"

set allow_8bit # never do Q-P encoding on legal 8-bit chars

set ascii_chars # use ASCII instead of ACS chars for threads

set attribution="On %d, %n wrote:" # how to attribute replies

set autoedit # go to the editor right away when composing

set charset="iso-8859-2" # character set for your terminal

set send_charset="us-ascii:iso-8859-1:iso-8859-2"

set noconfirmappend # don't ask me if i want to append to mailboxes

set copy=yes # always save a copy of outgoing messages

set editor="vim" # editor to use when composing messages

set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index

set hdrs # include `my_hdr' lines in outgoing messages

set help # show the help lines

set include # always include messages when replying

set indent_string="> " # how to quote replied text

set locale="hr_HR" # locale to use for printing time

set nomark_old # i don't care about whether a message is old

set check_new=yes

set mail_check=5 # how often to poll for new mail

set mbox=+mbox # where to store read messages

set mime_forward # use message/rfc822 type to forward messages

set move=yes # don't ask about moving messages, just do it

set pager_index_lines=6 # how many index lines to show in the pager

set pager_stop # don't move to the next message on next-page

set postponed=+postponed # mailbox to store postponed messages in

set print=ask-yes # ask me if I really want to print messages

set print_command=/bin/false # how to print things (I like to save trees)

set noprompt_after # ask me for a command after the external pager exits

set read_inc=25 # show progress when reading a mailbox

set record=+outbox # default location to save outgoing mail

set reply_to # always use reply-to if present

set reverse_alias # attempt to look up my names for people

set reverse_name # use my address as it appears in the message

set nosave_empty # remove files when no messages are left

set sendmail="/usr/sbin/sendmail -oi -oem" # how to deliver mail

set shell="/bin/bash" # program to use for shell escapes

set signature="~/.signature" # file which contains my signature

set sort=threads # primary sorting method

set sort_aux=reverse-date-received # how to sort subthreads

set sort_aux=last-date # date of the last message in thread

set sort_browser=reverse-date # how to sort files in the dir browser

set spoolfile='/var/spool/mail/' # where my new mail is located

set tilde # virtual lines to pad blank lines in the pager

set tmpdir=/tmp # where to store temp files

set nouse_domain # don't qualify local addresses with $domain[BR]]
set from="ime <upisete vas mail>"

set use_from # always generate the `From:' header field

set visual=vim # editor invoked by ~v in the builtin editor

set write_inc=25 # show progress while writing mailboxes

ignore * # this means "ignore all lines by default"

unignore from: subject to cc mail-followup-to \

               date x-mailer x-url # this shows how nicely wrap long lines

color hdrdefault red default

color quoted brightblue default

color signature red default

color indicator brightyellow red

color error brightred default

color status yellow blue

color tree magenta default # the thread tree in the index menu

color tilde magenta default

color message brightcyan default

color markers brightcyan default

color attachment brightmagenta default

color search default green # how to hilite search patterns in the pager

color header brightred default ^(From|Subject):

color body magenta default "(ftp|http)://^ +" # point out URLs

color body magenta default -a-z_0-9.+@-a-z_0-9.+ # e-mail addresses

color underline brightgreen default

mono quoted bold

bind generic "\e<" first-entry# emacs-like bindings for moving to top/bottom

bind generic \e> last-entry

bind generic { top-page

bind generic } bottom-page

bind generic \177 last-entry

macro index \cb |urlview\n # simulate the old browse-url function

macro index S s+spam\n

macro pager S s+spam\n

bind pager G bottom # just like vi and less

my_hdr X-Editor: VIM - Vi IMproved

my_hdr X-Operating-System: uname -a

unhdr_order * # forget the previous settings

hdr_order date from subject to cc

auto_view application/x-gunzip

auto_view application/x-gzip

auto_view text/html

source ~/.Mail/.aliases # config commands local to this site

set pop_host="mail.cmu.carnet.hr"

set pop_user="vas username"

set pop_pass="vas password"








   


original Feb 27 1:53pm

permalink
Weblog Navigation
Loading...
Weblog Archives
  • Loading...