This file contains hidden or 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/sh | |
NAME=$1 | |
virt-install --connect=qemu:///system \ | |
--network=bridge:virbr0 \ | |
--location=http://mirror.yandex.ru/centos/5/os/x86_64/ \ | |
--extra-args="ks=ftp://fileserv.local/pub/kickstarters/${NAME}.ks ip=dhcp console=tty0 console=ttyS0,115200" \ | |
--name=${NAME} \ | |
--disk /var/lib/libvirt/images/${NAME}.img,size=20 \ |
This file contains hidden or 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
$ mysqlcheck -uopensips -popensipsrw --repair --extended opensips |
This file contains hidden or 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
umount /media | |
pvcreate /dev/sdi | |
vgextend video /dev/sdi | |
lvextend -l +100%FREE /dev/mapper/video-video | |
systemctl start media.mount | |
xfs_growfs /media |
This file contains hidden or 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
grep -o -P "(?<=elapsed time: )[0-9]*(?= microsec)" ~/messages |
This file contains hidden or 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
git filter-branch --env-filter 'GIT_COMMITTER_NAME="autotrace";GIT_COMMITTER_EMAIL="autotrace@host";' HEAD |
This file contains hidden or 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
* "real" build | |
fedpkg clone mypackage | |
cd mypackage | |
koji-ppc build rawhide "$(fedpkg giturl)" | |
* scratchbuild: | |
koji-ppc build --scratch rawhide /path/to/yourpkg.src.rpm |
This file contains hidden or 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
work ~: gnuplot | |
gnuplot> set autoscale | |
gnuplot> plot "results.sched_default" every::15000::50000 using 2 with lines , "results.sched_high" every::15000::50000 using 2 with lines , "results.sched_low" every::15000::50000 using 2 with lines | |
gnuplot> replot |
This file contains hidden or 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
rpmbuild -bs erlang.spec --define '%el6 1' |
This file contains hidden or 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
$ sudo yum install cifs-utils samba-client | |
$ smbclient -L 192.168.100.1 | |
Enter petro's password: <press enter for empty password> | |
Domain=[TIHON] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1] | |
Sharename Type Comment | |
--------- ---- ------- | |
ADMIN$ Disk Удаленный Admin | |
Bin.Win32 Disk | |
C$ Disk Стандартный общий ресурс |
This file contains hidden or 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
yum remove sendmail | |
yum remove Net* | |
yum install vim-enhanced ssmtp fvwm xorg-x11-server-Xorg rxvt-unicode firefox git | |
yum install xorg-x11-drv-evdev xorg-x11-drv-intel | |
yum install net-tools avahi nss-mdns mc | |
yum install xorg-x11-xdm |