Archive for July, 2011

MTD-Utils for Android

git clone git://git.infradead.org/mtd-utils.git mtd-utils

[to do]

Leave a comment

Linux Wake on Lan

Check if your interface has support and if the BIOS configuration is OK.

ethtool ethx | grep -i 'support'

hamilton@saygon:~$ sudo ethtool eth0 | grep -i 'support'
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
Supports auto-negotiation: Yes
Supports Wake-on: pumbg

Available options  are:

wol p|u|m|b|a|g|s|d...
Sets Wake-on-LAN options. Not all devices support this. The argument to this option is a string of characters specifying which options to enable.
p Wake on phy activity
u Wake on unicast messages
m Wake on multicast messages
b Wake on broadcast messages
a Wake on ARP
g Wake on MagicPacket(tm)
s Enable SecureOn(tm) password for MagicPacket(tm)
d Disable (wake on nothing). This option clears all previous options.

If "g" option is not ok, please run:

ethtool -s eth0 wol g

Get your MAC addrees before rebooting:

hamilton@saygon:~$ ifconfig | grep HWaddr
eth0      Link encap:Ethernet  HWaddr 00:1c:c0:c3:ed:fd  

To wake your PC, make sure that you are running this command from another PC inside the same network

etherwake 00:1c:c0:c3:ed:fd

Leave a comment

Cisco Console Cable

RJ45 -> DB9 F
1 -> 8
2 -> 9
30 -> 2
4 -> 5
6 -> 3
7 -> 4
8 -> 7

Leave a comment

CrossOver cat 5 “Gigabit” cable pinout


Pin Connector #1  Connector #2
1 white/orange     white/green
2 orange                green
3 white/green       white/orange
4 blue                    white/brown
5 white/blue         brown
6 green                  orange
7 white/brown     blue
8 brown                white/blue

Leave a comment

Maintaining Git

Ensuring good performance

On large repositories, git depends on compression to keep the history information from taking up too much space on disk or in memory.

This compression is not performed automatically. Therefore you should occasionally run git gc:

$ git gc

to recompress the archive. This can be very time-consuming, so you may prefer to run git-gc when you are not doing other work.
Ensuring reliability

The git fsck command runs a number of self-consistency checks on the repository, and reports on any problems. This may take some time. The most common warning by far is about “dangling” objects:

$ git fsck
dangling commit 7281251ddd2a61e38657c827739c57015671a6b3
dangling commit 2706a059f258c6b245f298dc4ff2ccd30ec21a63
dangling commit 13472b7c4b80851a1bc551779171dcb03655e9b5
dangling blob 218761f9d90712d37a9c5e36f406f92202db07eb
dangling commit bf093535a34a4d35731aa2bd90fe6b176302f14f
dangling commit 8e4bec7f2ddaa268bef999853c25755452100f8e
dangling tree d50bb86186bf27b681d25af89d3b5b68382e4085
dangling tree b24c2473f1fd3d91352a624795be026d64c8841f

Dangling objects are not a problem. At worst they may take up a little extra disk space. They can sometimes provide a last-resort method for recovering lost work.

Check original at http://book.git-scm.com/4_maintaining_git.html

Leave a comment