Shell – Check SSL Certificate


Just a few minutes after trying to check domain’s SSL Certificate expiry date with python which requires around ten lines of code, I found a shell script which doing that task in just one line, here’s the script

#!/bin/bash

echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -dates

 

source:

Linux ls Color Code


  • * Normal file: White (or the default colour used by the command line window)
  • * Directory: Blue
  • * Symbolic link: Cyan
  • * Pipe: Yellow
  • * Socket: Magenta
  • * Block device driver: Bold yellow foreground, with black background
  • * Character device driver: Bold yellow foreground, with black background
  • * Orphaned syminks: Blinking Bold white, with red background
  • * Missing links: Blinking Bold white, with red background
  • * Archives or compressed files: Red (e.g. .tar, .gz, .zip, .rpm)
  • * Image files: Magenta (.jpg, gif, bmp, png, tif)

source:

http://www.codeunit.co.za/2009/11/05/linux-ls-colour-coding-in-putty/

Create LiveUSB


aku ini mencoba pake pclinuxos 2008 yang minimi, didalamnya ada tool
untuk membuat LiveUSB. Coba aja pake pclinuxos 2008 yang minimi
caranya, pake yang livecd bisa kok. caranya :
1. Jalankan livecd pclinuxos 2008 minimi
2. setelah di desktop pilih start-system-make LiveUSB, tapi sebelum
itu kamu mount dulu file iso ke /mnt/loop caranya (sebagai root):
$mount -o loop /tempat_file iso /mnt/loop
3. Tinggal terusin aja….. udah jadi deh….
Silahkan mencoba ….. Semoga berhasil….
Sya udah mencoba dan udah berhasil.
Bravo Penguins….

copas dari:

http://groups.google.com/group/id-ubuntu/browse_thread/thread/d1fcca13d66e7ab1