source code
VIM highlight to HTML
VIM can output hightligh with HTML tag In command mode :TOHtml If it is not worked. You will need python module called Pygments at “http://pygments.org”.
source code
VIM can output hightligh with HTML tag In command mode :TOHtml If it is not worked. You will need python module called Pygments at “http://pygments.org”.
pluging
Install a plugin called Alex Gorbatchev’s SyntaxHighlighter which can search plugin “SyntaxHighlighter Evolved” and then active it. New a post and define “Shortcode Parameters” in [Text] tab. Example language base Some example shortcodes: [ php ]your code here[ /php ] [ css autolinks=”false” classname=”myclass” collapse=”false” firstline=”1″ gutter=”true”
source code
#!/bin/bash date2stamp () { date --utc --date "$1" +%s } stamp2date () { date --utc --date "1970-01-01 $1 sec" "+%Y-%m-%d %T" } dateDiff (){ case $1 in -s) sec=1; shift;; -m) sec=60; shift;; -h) sec=3600; shift;; -d) sec=86400; shift;; *) sec=86400;; esac dte1=$(date2stamp
configuration
http://www.grounation.org/?post/2008/07/04/8-how-to-use-a-tpm-with-linux Dell R720 support Intel TPM 2.0 轉載內文 How to use a TPM with Linux By webmaster – Security – Permalink The goal of the article is to offer a simple tutorial to use your onboard TPM to secure your system. The TPM
後來發現用NAT方式來轉送Wifi AP封包到Ethernet Port會有連線不連續的問題,所以又查了一下Debain/Ubuntu 平台下,正確的方法為何? 首先要設定/etc/network/interface , 設定系統將wlan0(ap)與 eth0透過虛擬的橋接介面br0 作router,這樣一來就可把NAT的script給拿掉了。以下設定要重開機才會生效。 vi /etc/network/interface auto lo br0 iface lo inet loopback # wireless wlan0 allow-hotplug wlan0 iface wlan0 inet manual iface eth0 inet manual iface br0 inet static bridge_ports wlan0 eth0 address
長期以來一直使用Adaptec AAR-2410SA PCI SATA 4channel 作為 Linux File System Server硬硬資料保護,不過很困擾的是他的硬碟錯誤偵測不是很強還滿常需要人為介入作進一步問題的檢查,比如說硬碟壞軌,硬碟離線等。 必需加入遠端Monitor機制才能提早發現硬碟問題,在作了些功課後決定使用SNMP(sample network manager protocol)。 Drive部份直到CentOS6.3都還有內建aacraid的module。 Download appliance部份 http://ftp.dell.com/scsi-raid/afa-apps-snmp.2807420-a04.tar.gz Download ucd-snmp source code http://nchc.dl.sourceforge.net/project/net-snmp/ucd-snmp/4.2.7.1/ucd-snmp-4.2.
PowerCLI
Purpose This article provides a method for obtaining and displaying a list of registered virtual machines that have attached Raw Device Mappings (RDMs) using vSphere PowerCLI. This method cannot identify virtual machine disks that are unregistered, or for RDM files that are not associated with a virtual machine. For more
configuration
Debian / Ubuntu Linux: Setup Wireless Access Point (WAP) with Hostapd by NIX CRAFT on AUGUST 25, 2012 · 16 COMMENTS· LAST UPDATED AUGUST 25, 2012 in DEBIAN / UBUNTU I've got a spare USB Wireless Adapters (WIFI adapter/dongle) and my ISP router does not support wireless option. How do
openssl req -new -nodes -out req.pem -keyout key.pem openssl rsa -in key.pem -out new.key.pem openssl x509 -in req.pem -out ca-cert -req -signkey new.key.pem -days 999 mkdir /var/imap cp new.key.pem /etc/pki/cyrus-imapd/server.pem rm new.key.pem cat
It looks like someone has made a CUPS/Google Cloud Print tool here: * http://www.niftiestsoftware.com/cups-cloud-print/ And it appears the author provides a PPA: * Packages: https://launchpad.net/~simon-cadman/+archive/cups-cloud-print * Source code: https://github.com/simoncadman/CUPS-Cloud-Print To install it and configure it: sudo add-apt-repository ppa:simon-cadman/
To Get all the MsExchange Services Startup Type to Disabled State Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Disabled’ To Get all the MxExchange Services Startup Type to Automatic State Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Automatic’ (Starting and Stopping all Service in one Shot differs , scenario to scenario
When we do upgrade from 3.6.x to 3.7 that encounter problem with below error message. The WordPress.org certificate lists '*.wordpress.org' as it's Common name in the SSL cert, 'wordpress.org' is added as an extra domain in the SSL