This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
for i in $(ls -A) | |
do | |
if [ -d "$i" ]; | |
then | |
echo "Przetwarzam: $i" | |
tar -czf "$i.tgz" "$i" | |
echo " Usuwam: $i" | |
rm -rf "$i" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/gpio.h> | |
#include <sys/ioctl.h> | |
#include <sys/reboot.h> | |
#include <err.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
max=85 | |
for disc in $(df | awk '{ print $6 }' | sed '1d'); do | |
capacity=$(df $disc | sed '1d' | awk '{ print $5 }' | tr -cd [[:digit:]]) | |
if [ $capacity -gt $max ]; then | |
echo UWAGA! Partycja \"$disc\" jest zajęta w $capacity procentach. | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dmesg | |
OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011 | |
deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC | |
cpu0: AMD Athlon(tm) Processor ("AuthenticAMD" 686-class, 256KB L2 cache) 1.01 GHz | |
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE | |
real mem = 234352640 (223MB) | |
avail mem = 220483584 (210MB) | |
mainbus0 at root | |
bios0 at mainbus0: AT/286+ BIOS, date 05/14/08, BIOS32 rev. 0 @ 0xfaa30, SMBIOS rev. 2.2 @ 0xf0000 (31 entries) | |
bios0: vendor Phoenix Technologies, LTD version "6.00PG Rev. 4.00.0Q" date 05/14/2008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ifconfig | egrep -v '^[[:space:]]|(enc|lo|pflog)[[:digit:]]+:' | sed -ne 's/^\(.*\):.*/\1/p' | |
re0 | |
xl0 |
NewerOlder