Archive for the ‘FreeBSD’ Category

Kill program after 30s

Tuesday, February 16th, 2010
./nekprogram && sleep 30 && kill -9 `pidof nekprogram`

Check size files in linux

Monday, February 15th, 2010
du -chs *

Slovenia IP range list

Friday, January 29th, 2010

# Country: SLOVENIA
# ISO Code: SI
# Total Networks: 247
# Total Subnets: 1,457,280
77.38.0.0 – 77.38.127.255
77.74.200.0 – 77.74.207.255
77.94.128.0 – 77.94.159.255
77.111.0.0 – 77.111.63.255
77.234.128.0 – 77.234.159.255
78.111.32.0 – 78.111.47.255
78.153.32.0 – 78.153.63.255
80.90.208.0 – 80.90.223.255
80.95.224.0 – 80.95.239.255
80.246.224.0 – 80.246.239.255
81.17.224.0 – 81.17.239.255
81.24.96.0 – 81.24.111.255
81.90.176.0 – 81.90.191.255
82.149.0.0 – 82.149.31.255
82.192.32.0 – 82.192.63.255
82.214.64.0 – 82.214.127.255
84.20.224.0 – 84.20.255.255
84.41.0.0 – 84.41.127.255
84.52.128.0 – 84.52.191.255
84.255.192.0 – 84.255.255.255
85.10.0.0 – 85.10.31.255
85.10.32.0 – 85.10.47.255
86.58.0.0 – 86.58.127.255
86.61.0.0 – 86.61.127.255
87.119.128.0 – 87.119.159.255
88.200.0.0 – 88.200.127.255
89.142.0.0 – 89.143.255.255
89.212.0.0 – 89.212.255.255
90.157.128.0 – 90.157.255.255
91.185.192.0 – 91.185.223.255
91.195.146.0 – 91.195.147.255
91.198.0.0 – 91.198.0.255
91.198.52.0 – 91.198.52.255
91.198.96.0 – 91.198.96.255
91.198.112.0 – 91.198.112.255
91.198.190.0 – 91.198.190.255
91.198.214.0 – 91.198.214.255
91.198.219.0 – 91.198.219.255
91.199.23.0 – 91.199.23.255
91.199.61.0 – 91.199.61.255
91.199.124.0 – 91.199.124.255
91.199.131.0 – 91.199.131.255
91.199.142.0 – 91.199.142.255
91.199.161.0 – 91.199.161.255
91.199.174.0 – 91.199.174.255
91.199.201.0 – 91.199.201.255
91.199.235.0 – 91.199.235.255
91.202.64.0 – 91.202.67.255
91.208.27.0 – 91.208.27.255
91.208.88.0 – 91.208.88.255
91.208.101.0 – 91.208.101.255
91.208.125.0 – 91.208.125.255
91.208.168.0 – 91.208.168.255
91.208.200.0 – 91.208.200.255
91.208.225.0 – 91.208.225.255
91.208.255.0 – 91.208.255.255
91.209.49.0 – 91.209.49.255
91.209.132.0 – 91.209.132.255
91.209.145.0 – 91.209.145.255
91.209.150.0 – 91.209.150.255
91.209.181.0 – 91.209.181.255
91.209.188.0 – 91.209.188.255
91.209.207.0 – 91.209.207.255
91.209.237.0 – 91.209.237.255
91.212.24.0 – 91.212.24.255
91.212.69.0 – 91.212.69.255
91.212.134.0 – 91.212.134.255
91.212.199.0 – 91.212.199.255
91.212.208.0 – 91.212.208.255
91.212.251.0 – 91.212.251.255
91.213.12.0 – 91.213.12.255
91.213.80.0 – 91.213.80.255
91.213.89.0 – 91.213.89.255
91.213.131.0 – 91.213.131.255
91.213.147.0 – 91.213.147.255
91.213.241.0 – 91.213.241.255
92.37.0.0 – 92.37.127.255
92.53.128.0 – 92.53.191.255
92.63.16.0 – 92.63.31.255
92.244.64.0 – 92.244.95.255
93.103.0.0 – 93.103.255.255
94.103.64.0 – 94.103.79.255
94.127.24.0 – 94.127.31.255
94.140.64.0 – 94.140.95.255
95.87.128.0 – 95.87.191.255
95.143.144.0 – 95.143.159.255
95.159.192.0 – 95.159.255.255
95.176.128.0 – 95.176.255.255
109.123.0.0 – 109.123.63.255
109.127.192.0 – 109.127.255.255
109.182.0.0 – 109.182.255.255
188.64.24.0 – 188.64.31.255
188.64.104.0 – 188.64.111.255
188.230.128.0 – 188.230.255.255
193.0.244.0 – 193.0.244.255
193.2.0.0 – 193.2.255.255
193.9.19.0 – 193.9.19.255
193.9.21.0 – 193.9.21.255
193.16.109.0 – 193.16.109.255
193.16.152.0 – 193.16.152.255
193.17.227.0 – 193.17.227.255
193.19.220.0 – 193.19.223.255
193.22.31.0 – 193.22.31.255
193.22.81.0 – 193.22.81.255
193.23.49.0 – 193.23.49.255
193.23.62.0 – 193.23.62.255
193.23.137.0 – 193.23.137.255
193.24.248.0 – 193.24.251.255
193.26.26.0 – 193.26.26.255
193.28.146.0 – 193.28.146.255
193.30.43.0 – 193.30.43.255
193.36.40.0 – 193.36.40.255
193.41.35.0 – 193.41.35.255
193.41.36.0 – 193.41.36.255
193.41.89.0 – 193.41.89.255
193.46.71.0 – 193.46.71.255
193.46.75.0 – 193.46.75.255
193.47.136.0 – 193.47.136.255
193.77.0.0 – 193.77.255.255
193.95.192.0 – 193.95.255.255
193.104.10.0 – 193.104.10.255
193.104.23.0 – 193.104.23.255
193.104.134.0 – 193.104.134.255
193.104.236.0 – 193.104.236.255
193.104.240.0 – 193.104.240.255
193.109.124.0 – 193.109.124.255
193.109.227.0 – 193.109.227.255
193.110.14.0 – 193.110.15.255
193.110.145.0 – 193.110.145.255
193.111.192.0 – 193.111.193.255
193.111.220.0 – 193.111.223.255
193.138.6.0 – 193.138.7.255
193.138.9.0 – 193.138.9.255
193.138.32.0 – 193.138.63.255
193.142.116.0 – 193.142.116.255
193.142.149.0 – 193.142.149.255
193.164.137.0 – 193.164.137.255
193.164.138.0 – 193.164.138.255
193.164.139.0 – 193.164.139.255
193.164.140.0 – 193.164.140.255
193.164.141.0 – 193.164.141.255
193.169.48.0 – 193.169.49.255
193.178.188.0 – 193.178.188.255
193.189.160.0 – 193.189.191.255
193.200.0.0 – 193.200.0.255
193.200.207.0 – 193.200.207.255
193.201.45.0 – 193.201.45.255
193.201.101.0 – 193.201.101.255
193.201.109.0 – 193.201.109.255
193.201.155.0 – 193.201.155.127
193.201.165.0 – 193.201.165.255
193.201.212.0 – 193.201.215.255
193.218.94.0 – 193.218.94.255
193.219.100.0 – 193.219.100.255
193.219.106.0 – 193.219.106.255
193.219.121.0 – 193.219.121.255
193.221.112.0 – 193.221.112.255
193.221.115.0 – 193.221.115.255
193.228.151.0 – 193.228.151.255
193.243.140.0 – 193.243.141.255
194.6.237.0 – 194.6.237.255
194.6.242.0 – 194.6.242.255
194.8.94.0 – 194.8.95.255
194.39.85.0 – 194.39.85.255
194.50.166.0 – 194.50.166.255
194.59.182.0 – 194.59.182.255
194.59.185.0 – 194.59.185.255
194.60.74.0 – 194.60.74.255
194.107.115.0 – 194.107.115.255
194.110.199.0 – 194.110.199.255
194.110.222.0 – 194.110.222.255
194.116.204.0 – 194.116.205.255
194.126.197.0 – 194.126.197.255
194.146.109.0 – 194.146.109.255
194.152.0.0 – 194.152.31.255
194.165.96.0 – 194.165.127.255
194.176.112.0 – 194.176.112.255
194.213.3.0 – 194.213.3.255
194.213.26.0 – 194.213.26.255
194.242.36.0 – 194.242.36.255
194.247.162.0 – 194.247.163.255
194.249.0.0 – 194.249.255.255
195.5.164.0 – 195.5.164.255
195.5.165.0 – 195.5.165.255
195.35.122.0 – 195.35.122.255
195.43.131.0 – 195.43.131.255
195.43.133.0 – 195.43.133.255
195.43.159.0 – 195.43.159.255
195.47.197.0 – 195.47.197.255
195.47.211.0 – 195.47.211.255
195.47.213.0 – 195.47.213.255
195.47.224.0 – 195.47.224.255
195.47.226.0 – 195.47.226.255
195.47.228.0 – 195.47.228.255
195.66.69.0 – 195.66.69.255
195.66.107.0 – 195.66.107.255
195.69.96.0 – 195.69.99.255
195.80.225.0 – 195.80.225.255
195.85.192.0 – 195.85.192.255
195.88.82.0 – 195.88.83.255
195.95.158.0 – 195.95.158.255
195.95.161.0 – 195.95.161.255
195.95.173.0 – 195.95.173.255
195.130.194.0 – 195.130.194.255
195.138.196.0 – 195.138.196.255
195.138.201.0 – 195.138.201.255
195.144.26.0 – 195.144.26.255
195.149.94.0 – 195.149.94.255
195.170.177.0 – 195.170.177.255
195.178.118.0 – 195.178.119.255
195.182.61.0 – 195.182.61.255
195.190.10.0 – 195.190.10.255
195.190.129.0 – 195.190.129.255
195.190.136.0 – 195.190.136.255
195.190.158.0 – 195.190.158.255
195.210.192.0 – 195.210.255.255
195.230.121.0 – 195.230.121.255
195.234.137.0 – 195.234.137.255
195.245.106.0 – 195.245.107.255
195.245.208.0 – 195.245.208.255
195.245.216.0 – 195.245.216.255
195.245.250.0 – 195.245.250.255
195.246.0.0 – 195.246.31.255
195.248.68.0 – 195.248.68.255
195.250.58.0 – 195.250.58.255
195.250.192.0 – 195.250.223.255
212.13.224.0 – 212.13.255.255
212.18.32.0 – 212.18.63.255
212.30.64.0 – 212.30.95.255
212.44.96.0 – 212.44.127.255
212.72.96.0 – 212.72.127.255
212.93.224.0 – 212.93.255.255
212.101.128.0 – 212.101.191.255
212.103.128.0 – 212.103.159.255
212.118.64.0 – 212.118.95.255
212.235.128.0 – 212.235.255.255
213.5.112.0 – 213.5.119.255
213.142.224.0 – 213.142.255.255
213.143.64.0 – 213.143.95.255
213.157.224.0 – 213.157.255.255
213.161.0.0 – 213.161.31.255
213.172.224.0 – 213.172.255.255
213.229.192.0 – 213.229.255.255
213.250.0.0 – 213.250.63.255
213.253.64.0 – 213.253.127.255
217.72.64.0 – 217.72.79.255
217.72.80.0 – 217.72.95.255

Block IP range Addresses in ProFTPD

Friday, January 29th, 2010
Order deny,allow
Deny from 555.555.555.555,444.444.444.444
Allow from all

Check version of OpenSSL

Thursday, January 21st, 2010

openssl version

how to search in terminal with find

Friday, January 15th, 2010

find . -iname “*fajl*”

how to debug apache httpd.core

Friday, January 15th, 2010

gdb /usr/sbin/httpd /etc/httpd.core

tar (tape archiver)

Friday, January 15th, 2010

tar (tape archiver)

Type tar then -option(s)

Options list:

-c — create.
-v — verbose, give more output, show what files are being worked with (extracted or added).
-f — file (create or extract from file) – should always be the last option otherwise the command will not work.
-z — put the file though gzip or use gunzip on the file first.
-x — extract the files from the tarball.
-p — preserves dates, permissions of the original files.
-j — send archive through bzip2.
–exclude=pattern — this will stop certain files from being archived (using a standard wild-card pattern) or a single file name.

tar examples
tar -cvpf name_of_file.tar files_to_be_backed_up

This would create a tape archive (no compressing).
tar -zxvpf my_tar_file.tar.gz

This would extract files (verbosely) from a gzipped tape archive.

Keeping up with the ports – pkg_version

Wednesday, January 13th, 2010

pkg_version -v will display some information about the version information for both currently installed ports and what you have in your ports source tree

pkg_version -l’flag’ will limit the output to certain flags, ie.
pkg_version -l ‘<’ will display all ports that are not up to date
pkg_version -l’=’ will display all up to date ports

pkg_version -c will display the required commands to upgrade all installed ports to the current version. (see below for a note on the -c option).

Putting these together you can run pkg_version -vl’<’ to check your version numbers against what’s in the ports tree to see what needs to be upgraded and pkg_version -cv’<’ to display the commands needed to upgrade your ports. Taking this one step further you could pipe the last command to a shell interpreter to do it for you. pkg_version -cv’<’ | sh does just that. N

Grab a whole folder with wget

Wednesday, January 13th, 2010

wget -nd -nH -r http://www.site.dir/name/goes/here



Opera web browser - download si.blogs page counter Firefox 3 Blogres.si [Valid RSS]
Valid CSS! Valid XHTML 1.0 StrictBloger.si
Drugi svet - slovenski blogerski casopis www.mojavizitka.com - spletna vizitka
Spletno Mesto, gostovanje, domene, optimizacija, izdelava spletnih strani
Spletno Gostovanje
Add to Google
Technorati Profile