phpMyAdmin Error – The configuration file now needs a secret passphrase (blowfish_secret)

July 27th, 2018

Can fix

1
2
3
.
$cfg['blowfish_secret'] = ; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
.

to

1
2
3
.
$cfg['blowfish_secret'] = '$2a$07$mtsebhJs1pOwePAtO7TzX..vnBZYkBUamsG5QXfbO992aGpKQVj2u'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
.

* Can generate at http://www.passwordtool.hu/blowfish-password-hash-generator

sunos check 32-bit or 64-bit

March 24th, 2017

บ้างครั้งก็ลืม ไม่ได้ใช้นานๆ

คำสั่งเช็คว่า sunos ที่เรากำลังจะใช้งานนี้เป็นแบบ 32-bit หรือ 64-bit

ง่ายๆ เลย

-bash-4.1$ isainfo options

option
 
-v : Prints detailed information about the other options
 
-b : Prints the number of bits in the address space of the native instruction set.
 
-n : Prints the name of the native instruction set used by portable applications supported by the current version of the OS.
 
-k : Prints the name of the instruction set or sets that are used by the OS kernel components such as device drivers and STREAMS modules.

ตัวอย่าง 1

-bash-4.1$ isainfo -v
64-bit sparcv9 applications
crc32c cbcond pause mont mpmul sha512 sha256 sha1 md5 camellia kasumi
des aes ima hpc vis3 fmaf asi_blk_init vis2 vis popc
32-bit sparc applications
crc32c cbcond pause mont mpmul sha512 sha256 sha1 md5 camellia kasumi
des aes ima hpc vis3 fmaf asi_blk_init vis2 vis popc v8plus div32 mul32

ตัวอย่าง 2

-bash-4.1$ isainfo -b
64

ตัวอย่าง 3

-bash-4.1$ isainfo
sparcv9 sparc

 

du and sort(size folder and sort)

October 15th, 2015

การดู size ของ folder มีขนาดเท่าไหร และเรียงตามขนาดของ size

1
2
3
4
5
6
7
du -sh * | sort -h
du : 
-s : จะคำนวน folder ที่อยู่ ณ path ปัจจับัน
-h : ให้แสดงผลเป็นตัวย่อตามขนาดเช่น KB,MB,GB
 
sort
-h : เรียงตามขนาดจากน้อยไปหามาก