From ThirdMartini



[edit] Mac Devices

 00:23:EB:22:C3:EF  Sony Vita
 00:04:20:E1:13:23  Logitech Remote
 00:19:1D:E4:84:21  Nintendo Wii 
 18:B4:30:04:38:A4  Nest (Master Bedroom)
 18:B4:30:05:25:04  Nest (Main)
 70:18:8B:D0:91:39  Sony TV (Sebs Office)
 7C:4F:B5:06:5B:46  Sharp Aquos TV (LivingRoom) Arcadyan Technologies
 7C:6D:62:C3:49:EA Apple  [Marcus iPad]
 88:CB:87:E3:6A:F8  Apple [Andrea iPad Mini]
 40:FC:89:16:E0:EC  Motorola Zoom
 AC:22:0B:41:F2:9C Nexus 7 (seb)
 B0:EE:45:69:03:D6  ???
 B8:8d:12:0a:bb:b6  Apple ( Andreas Air )
 BC:F5:AC:F7:50:36  Nexus One
 CC:08:E0:06:09:F2 Apple [Andrea iPhone]
 C8:E0:EBL30:04:35 iMac 2013 (Seb Basement)
 D0:E7:82:7C:EB:FA  Azurewave Technologies
 F8:8F:CA:24:F2:39  Google Glass (Seb)

[edit] Tidbit Tips:

[edit] Compiling Win32 Gaim


[edit] Compiling binaries WRT54G Firmware

export PATH=/opt/brcm/hndtools-mipsel-linux/bin:/opt/brcm/hndtools-mipsel-uclibc/bin:$(PATH)
mipsel-uclibc-gcc -I.. -I../.. -I../../include -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer xxx.c

[edit] Mounting a large samba shares with >2GB file limit

  • Requires:
    • smbmount3
    • samba 3.x backend
    • 2.6 Kernel ( 2.6.12+ works )
smbmount3 //"server"/"share" -o username="username",lfs

[edit] Dumping a DVD Stream

mplayer dvd://2 -dumpstream terminator2.vob -dumpfile terminator2.vob

[edit] Ripping DVD's under Linux

  • find the Audio stream id
 mplayer dvd://2 -dvd-device GOLD_PS/ -v 
    • Now search for:
[open] audio stream: 0 audio format: ac3 (stereo) language: en aid: 128
[open] audio stream: 1 audio format: ac3 (stereo) language: fr aid: 129
[open] audio stream: 2 audio format: ac3 (stereo) language: es aid: 130
[open] audio stream: 3 audio format: ac3 (5.1) language: en aid: 131

  • Figure out what the crop parameters of the DVD are
mencoder dvd://2 -dvd-device GOLD_PS/ -aid 131 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vpass=1:autoaspect -vf cropdetect -oac copy
  • Run a quick test with the resulting crop settings
mencoder dvd://2 -dvd-device GOLD_PS/ -aid 131 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vpass=1:autoaspect -vf crop=704:352:8:64 -oac copy

[edit] Discovering all Network Devices

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <netinet/in.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>

int find_interface(char *find)
    int sockfd  = -1;
    int ifr_count = 255;
    struct ifconf ifc;
    ifc.ifc_buf = NULL;

    sockfd = socket(AF_INET, SOCK_DGRAM, 0);

   if( sockfd >= 0 )
       int ret;
       ifc.ifc_len = sizeof(struct ifreq) * ifr_count;
       ifc.ifc_buf = (char *)malloc(ifc.ifc_len);
       ret = ioctl(sockfd, SIOCGIFCONF, &ifc);
       close( sockfd );
       if ( ret < 0) {
           return 0;
       ifr_count = ifc.ifc_len / sizeof(struct ifreq);

    for( int idx = 0; idx < ifr_count; idx++ )
       struct ifreq *ifr = &ifc.ifc_req[idx];
       printf("Device: %s\n",ifr->ifr_name);
   return ifr_count;;

[edit] Rsync over ssh

rsync --progress -av -e "ssh -p 2022 -l ssh-user" rsync-user@localhost:/exit14/home/ssobolew/esx310/esx310/seb.c .

[edit] Filtering a specific source Ip address

iptables -t filter -A INPUT -s [IP] -j DROP

[edit] VI vs. VIM in (K)ubuntu

When invoked as vi, vim.tiny sources /etc/vim/vimrc.tiny, which sets compatible so that the vi command runs like the original vi. According to several people on -devel, this is the desired behaviour for vim when invoked as vi, and the behaviour makes sense.

However, when another variant of vim, such as vim-full or vim-gnome is installed, the vi command sources /etc/vim/vimrc, which among other things sets nocompatible, so, for example, arrow keys work in insert mode. This is not the intended behaviour.

Ripped from [2]

Copy /etc/vim/vimrc /etc/vim/vimrc.tiny

[edit] BURN DVD

cdrecord -scanbus
cdrecord -v -eject speed=16 dev=ATA:1,0,0 RedHat-7.0-i386-powertools.iso

[edit] NVidia KDE 4.1

if [ -x /usr/bin/nvidia-settings ]; then /usr/bin/nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1

Also: For the record: I managed to sort out all my nvidia speed issues by loading XGL instead of AIGLX. Because XGL masks away the card itself and presents a generic interface, it worked around the nvidia driver issues very well. None of the other tricks made much difference for me.

[edit] VMWare Workstation 6.x

1.  cd /usr/lib/vmware/modules/source
2. cp vmmon.tar vmmon.tar.orig
3. sudo tar xvf vmmon.tar
4. cd vmmon-only/include/
5. sudo vi vcpuset.h
6. change line 74 from: #include “asm/bitops.h” to: #include “linux/bitops.h”
7. rm vmmon.tar
8. sudo tar cvf vmmon.tar vmmon-only/
9. sudo rm -rf vmmon-only/
10. sudo

[edit] Fixing broken CTRL/ALT/SHIFT


[edit] Home Requirements

  • 4 Bedroom ( 3bedroom + office )
    • 2 Masters
    • Large Shower in Master / Steam SHower
  • If Septic
    • Leechfield
    • Gray water recycling system
  • Tankless water heaters?
  • No Formal Living Room ( Only single great room )
  • Mud Room
  • Separate Laundry ( IE: not in mudroom or walk way to garage )
    • Oversized with ironing board?
  • Home Center? ( Little Area for computer by kitchen )
  • Hardwood on the first floor
  • Large Baseboards
  • Hand Troweled walls.
  • Deck from Master bedroom
  • 3 car garage.
  • Loop driveway.
  • Walk in pantry

[edit] Scons

rootEnv = Environment()


  1. LINKFLAGS=['-rdynamic'],
  1. Setup any special builder paths
  2. One special builder we use here is the ".mobj" -> C++ ".h" code generator for managed objects

bld = Builder(action = 'Builders/mobj/ $SOURCE',

             suffix = '.h',
             src_suffix= '.mobj' )

rootEnv.Append(BUILDERS = {'MakeManagedObject' : bld})

  1. Export our build environment for everyone else



        ## UNIT TESTS

[edit] iSCSI Setup, portal:,3261

  1. NFS Mounts /mnt/nfs-1 nfs rw,bg,tcp,soft,intr,rsize=8192,wsize=8192 /mnt/backup nfs rw,bg,tcp,soft,intr,rsize=8192,wsize=8192

Personal tools