<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://wiki.hackerzhou.me/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.hackerzhou.me/feed.php">
        <title>hackerzhou&#039;s wiki - dev:tricks</title>
        <description></description>
        <link>http://wiki.hackerzhou.me/</link>
        <image rdf:resource="http://wiki.hackerzhou.me/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-04-27T04:55:38+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.hackerzhou.me/dev/tricks/linux?rev=1591486367&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.hackerzhou.me/dev/tricks/macos?rev=1591486367&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.hackerzhou.me/dev/tricks/other?rev=1591486367&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.hackerzhou.me/dev/tricks/windows?rev=1591486367&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.hackerzhou.me/_media/wiki/dokuwiki.svg">
        <title>hackerzhou's wiki</title>
        <link>http://wiki.hackerzhou.me/</link>
        <url>http://wiki.hackerzhou.me/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="http://wiki.hackerzhou.me/dev/tricks/linux?rev=1591486367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-06T23:32:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux</title>
        <link>http://wiki.hackerzhou.me/dev/tricks/linux?rev=1591486367&amp;do=diff</link>
        <description>Linux Tricks

Linux Common

XML beautiful format command


cat xxx.xml |  xmllint --format -


Remount filesystem as read-write


mount -o rw,remount /


Useful tools to monitor linux


iostat
meminfo/free
mpstat
netstat
nmon
pmap
ps/pstree
sar
strace
tcpdump
top
uptime
vmstat
wireshark</description>
    </item>
    <item rdf:about="http://wiki.hackerzhou.me/dev/tricks/macos?rev=1591486367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-06T23:32:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>macos</title>
        <link>http://wiki.hackerzhou.me/dev/tricks/macos?rev=1591486367&amp;do=diff</link>
        <description>Mac OS Tricks

Change the hostname


sudo scutil --set HostName testhostname.local
hostname


Create a bootable OS X USB installation disk


sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction</description>
    </item>
    <item rdf:about="http://wiki.hackerzhou.me/dev/tricks/other?rev=1591486367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-06T23:32:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>other</title>
        <link>http://wiki.hackerzhou.me/dev/tricks/other?rev=1591486367&amp;do=diff</link>
        <description>Other Tricks

Control Dell iDrac via SSH


ssh root@{idrac_ip_addr} &lt;&lt;EOF
​racadm racreset #soft reset idrac
racadm serveraction {powerdown|powerup|powercycle|powerstatus|hardreset}
racadm getsysinfo #get current system information
​EOF</description>
    </item>
    <item rdf:about="http://wiki.hackerzhou.me/dev/tricks/windows?rev=1591486367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-06T23:32:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>windows</title>
        <link>http://wiki.hackerzhou.me/dev/tricks/windows?rev=1591486367&amp;do=diff</link>
        <description>Windows Tricks

Disk

Fast create big file


fsutil file createnew C:\large_file.tmp 1024000000


Fast wipe disk securely


cipher /w:&lt;drive_letter&gt;:\


Activation

Windows 7/2008 R2 KMS Activation


slmgr.vbs /skms KMS_SERVER:1688
slmgr.vbs /ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
# Can be found at http://technet.microsoft.com/en-us/library/ff793421.aspx
slmgr.vbs /ato</description>
    </item>
</rdf:RDF>
