Google Real Link for greasemonkey

August 25th, 2012

This UserScript may disable the Google search rewrite, always showing and using the real, original, direct link URLs, to stop being tracked, also to prevent from using redirected pages that might be temporarily unavailable in some area.

http://userscripts.org/scripts/show/125473

 

A véletlen leállítások megakadályozása windows7 -ben | A shutdown event tracker engedélyezése windows7 -ben.

August 9th, 2012

Windows7 start menüben véletlen a shutdown-ra kattintva azonnal leáll a gép, mert nem kér semmilyen megerősítést.

Ez nagyon zavaró lehet, ezért most megmutatom, hogyan lehet bekapcsolni a shutdown event tracker -t, amivel elkerülhetőek a véletlen leállítások.

A shutdown event tracker engedélyezését a group policy editorban tudjuk elvégezni. A group policy editor -t a gpedit.msc -vel tudjuk elindítani.

Ezután a képen látható helyen engedélyezzük a shutdown event tracker -t.

Miután engedélyeztük, a kilépést az alábbi ablakban kell megerősítenünk, így elkerülhetjük a véletlen leállítást:

FAR Manager | FAR Manager SFTP Plugin | FAR Manager compatible sftp server for Android

August 9th, 2012

far manager
winscp: scp, sftp plugin for far manager 1.75
netbox: scp, sftp plugin for far manager 2.0
FAR Manager compatible SFTP server for Android

Enable the built-in Administrator account in windows7

August 8th, 2012
net user administrator /active:yes

How to install Certification authority (CA) certificates on Android.

August 6th, 2012

- Download http://bouncycastle.org/download/bcprov-jdk16-141.jar and place it on $JAVA_HOME/jre/lib/ext/
- download cacerts.bks from android
- import certificates to cacerts.bks
- upload to android

cd /usr/lib/jvm/java-6-openjdk/jre/lib/ext/
wget 'http://bouncycastle.org/download/bcprov-jdk16-141.jar'

cd /tmp
adb pull /system/etc/security/cacerts.bks cacerts.bks

keytool -keystore cacerts.bks -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storepass changeit -importcert -trustcacerts -alias CACERT -file root.crt

adb shell mount -o remount,rw /system
adb push cacerts.bks /system/etc/security/
adb shell mount -o remount,ro /system

more details: http://wiki.cacert.org/FAQ/ImportRootCert#Way_1:_Android_SDK

change the title of terminal window with escape sequence

July 29th, 2012

ESC]0;stringBEL — Set icon name and window title to string

echo -ne '\e]0;Hello Girls!\007'

http://tldp.org/HOWTO/Xterm-Title-3.html

mount yaffs2 image with nandsim

December 27th, 2011

# download yaffs2 kernel module from http://yaffs.net/using-git

git clone git://www.aleph1.co.uk/yaffs2

# compile & install yaffs kernel module

# load yaffs kernel module

modprobe yaffs.ko

# create 512M NAND with nandsim. more info: http://ggow.wikidot.com/using-mtd

modprobe nandsim first_id_byte=0×20 second_id_byte=0xac third_id_byte=0×00 fourth_id_byte=0×15

# write image to mtd

nandwrite -o /dev/mtd0 partition-readed-by-nandread.img

mount -o tags-ecc-off -t yaffs2 /dev/mtdblock0 /mnt/tmp

create bootable kernel image for htc wildfire

September 23rd, 2011
./mkbootimg --kernel boot.img-kernel --ramdisk boot.img-ramdisk.gz  --base 0x02e08000 --cmdline 'no_console_suspend=1 console=null' -o boot.img

Could not create the ‘/mnt/hgfs’ directory. Install hgfs and vmware-tools on debian linux.

March 21st, 2011

Error:

Could not create the '/mnt/hgfs' directory.
The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine. These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]

Solution:

aptitude install gcc-4.3 linux-headers-`uname -r` -y
tar xzf VMwareTools-8.1.3-203739.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl -d
./bin/vmware-config-tools.pl -d

from unix-time, to unix-time, sql examples

January 20th, 2011

 

mysql> select now();
 +---------------------+
 | now()               |
 +---------------------+
 | 2009-01-31 21:54:36 |
 +---------------------+
 1 row in set (0.00 sec)

 

mysql> select unix_timestamp(now());
 +-----------------------+
 | unix_timestamp(now()) |
 +-----------------------+
 |            1233435200 |
 +-----------------------+
 1 row in set (0.00 sec)
mysql> select from_unixtime(1233435200);
 +---------------------------+
 | from_unixtime(1233435200) |
 +---------------------------+
 | 2009-01-31 21:53:20       |
 +---------------------------+
 1 row in set (0.00 sec)
mysql> select count(*) from sessions where timestamp > unix_timestamp(now() - interval 31 day);
 +----------+
 | count(*) |
 +----------+
 |     8711 |
 +----------+
 1 row in set (0.06 sec)
mysql> select count(*) from sessions where timestamp > unix_timestamp("2009-01-01 00:00:00") and timestamp < unix_timestamp("2009-01-31 00:00:00");
 +----------+
 | count(*) |
 +----------+
 |     8407 |
 +----------+
 1 row in set (0.08 sec)
more info: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html