14 Kvě
Disable IPv6 in system # echo „net.ipv6.conf.all.disable_ipv6 = 1“ >> /etc/sysctl.conf # echo „net.ipv6.conf.default.disable_ipv6 = 1“ >> /etc/sysctl.conf # echo „net.ipv6.conf.lo.disable_ipv6 = 1“ >> /etc/sysctl.conf # /sbin/sysctl -p /etc/sysctl.conf
Posted in Debian, DNS, Linux, Scriptíky, Ubuntu by: admin
No Comments
23 Led
DELETE FROM mytable USING mytable, mytable as virtualtable WHERE (NOT mytable.id=virtualtable.id) AND (mytable.fieldname=virtualtable.fieldname) Simple isn’t it?
Posted in Linux, MySQL, Scriptíky by: admin
No Comments
06 Říj
ALTER DATABASE `název_databáze` CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER TABLE `název_tabulky` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; Hint: mysql> show character set;
Posted in Linux, MySQL, Scriptíky by: admin
No Comments
21 Čvc
Moje žena dostala společně s autem originální autorádio VW alpha (=> Blaukpunkt 815, VWZ1Z1Y9174547, 6X0 035 153). Autorádio dlouho a bez problému sloužilo než bylo nahrazeno jiným (s linkovým vstupem, podporou USB,…). Staré rádio jsem ale nechtěl vyhazovat – bylo opravdu bezproblémové a předpokládal jsem, že by ještě někomu mohlo udělat radost (i když již […]
Posted in Hack/Crack, Hardware, Multimédia, Scriptíky, Ze života by: admin
1 Comment
09 Čvc
# tcpdump ‚icmp[icmptype] = icmp-echo‘
Posted in Linux, Scriptíky by: admin
No Comments
14 Kvě
sudo apt-get remove $(dpkg -l|egrep ‚^ii linux-(im|he)’|awk ‚{print $2}’|grep -v `uname -r`)
Posted in Debian, Kernel, Linux, Scriptíky, Ubuntu by: admin
No Comments
28 Dub
What console says: hodza@hodza-desktop:~$ qutim !!!!!!! ‚kde-plasma‘ ‚0x7f2c933977c0‘ ‚oxygen‘ (qutim:9554): GLib-GObject-WARNING **: cannot register existing type ‚GstObject‘ (qutim:9554): GLib-CRITICAL **: g_once_init_leave: assertion ‚result != 0‘ failed (qutim:9554): GLib-GObject-CRITICAL **: g_type_register_static: assertion ‚parent_type > 0‘ failed (qutim:9554): GLib-CRITICAL **: g_once_init_leave: assertion ‚result != 0‘ failed (qutim:9554): GLib-GObject-CRITICAL **: g_object_newv: assertion ‚G_TYPE_IS_OBJECT (object_type)‘ failed (qutim:9554): GStreamer-CRITICAL **: […]
Posted in Debian, Linux, Multimédia, Ostatní, Scriptíky, Ubuntu by: admin
No Comments
17 Dub
1. Make a drive image # pv -tpreb /dev/sdb | dd of=/mnt/backup/disk_image.img bs=1M 2. Detect mount offset (mount offset=sector size*partition start) # fdisk -l /mnt/backup/disk_image.img
Posted in Linux, Scriptíky by: admin
1 Comment
17 Dub
Create image from disk /dev/sdb to image file /mnt/backup/disk_image.img. BS is for speedup. # pv -tpreb /dev/sdb | dd of=/mnt/backup/disk_image.img bs=1M Tranfer preview: 932GB 2:46:17 [95,6MB/s] [=============================================>] 100%
Posted in Linux, Scriptíky by: admin
No Comments
09 Bře
This is a virtual database so you will need to add the option –skip-events to make it work.
Posted in Linux, MySQL, Scriptíky by: admin
No Comments