Eso, y otras yerbas...
Trololo
Buscar
martes, 16 de octubre de 2012
Blogger and Syntax Highlighter extra lines
If you have problems with Google Chrome while using Syntax Highlighter integrated in blogger with a few extra lines, then you should check this question in Stack Overflow.
Extra lines are added because line numbering is done in 1 character space. Adding the style tag prior the pre tag in your html code as mentioned in stack overflow should do the trick.
Etiquetas:
blogger,
google chrome,
syntax highlighter
lunes, 15 de octubre de 2012
Parse wireless scan output
I wrote a little script for sed that takes a wireless scan output and prints in human readable form the essid and the MAC address. It's useful when you have a lot of wifis around you to identify each other easily, and for the case I'm using it: connect only to desired hosts from a file with the same format as the output.
Basically, this sed script outputs something like this:
As you can see it works with ESSID:"" too. Enough talk, here are these lines:
Basically, this sed script outputs something like this:
[essid1] Address=00:E4:55:66:16:71 [essid2 with spaces available] Address=00:E4:55:66:16:72 [essid2-whatever] Address=00:E4:55:66:16:73 [] Address=00:E4:55:66:16:71
As you can see it works with ESSID:"" too. Enough talk, here are these lines:
# Copyright (c) 2010 Sebastián Treu. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # Author: # Sebastian Treu # sebastian.treu (at) gmail.com # #!/bin/bash sed -n ' '/ESSID/' !{ '/Cell/' !{ d } '/Cell/' { s/^[ ]*//g s/Cell [0-9]\ - Address: /Address=/g x d } } '/ESSID/' { s/^[ ]*//g s/ESSID:\"\(.*\)\"/[\1]/g p x p }'
Etiquetas:
parse,
sed,
wifi,
wireless,
wireless scan
10-pin to 6-pin AVR ISP Adapter
This is a sequence of photos on how I made a 10-pin to 6-pin AVR ISP Adapter. All the credits are for Nard Awater who guided me in the construction (and in many
more electronics stuff) of this adapter.
One thing you should notice is that this adapter was made for a parallel programmer with 10-pin female header, so what you only need is a 10-pin male header, some cables, shrinktubing, and two strips of 3 pins each one.
more electronics stuff) of this adapter.
One thing you should notice is that this adapter was made for a parallel programmer with 10-pin female header, so what you only need is a 10-pin male header, some cables, shrinktubing, and two strips of 3 pins each one.
Etiquetas:
10 pin,
6 pin,
AVR,
AVR Adapter,
AVR Dongle,
AVR ISP Adapter,
Dongle
Suscribirse a:
Entradas (Atom)