Posts

Showing posts from January, 2014

Change email contents display font size of Thunderbird

Thunderbird email contents display appears to act similarly to a web brower, so hitting Ctrl and the '-'/'+' signs shrinks/enlarges the font size.

Note: this is not explained anywhere, and the preferences all change a different setting, AFAIK

MacBook and Openbox: mimic keyboard shortcut Cmd-tab application switcher

<keybind key="W-Tab">
      <action name="NextWindow">
        <allDesktops>yes</allDesktops>
        <finalactions>
          <action name="Focus"/>
          <action name="Raise"/>
          <action name="Unshade"/>
        </finalactions>
      </action>
    </keybind>
    <keybind key="W-S-Tab">
      <action name="PreviousWindow">
        <finalactions>
          <action name="Focus"/>
          <action name="Raise"/>
          <action name="Unshade"/>
        </finalactions>
      </action>
    </keybind>

Macbook Air and Openbox: copy the Spotlight(TM) keyboard shortcut

<keybind key="W-space">
      <action name="Execute">
        <command>dmenu_run</command>
      </action>
    </keybind>

apt-get install suckless-tools

LXC and Puppet dev env in 60 seconds

lxc-create -n puppetmaster01 -t debianlxc-create -n puppetclient01 -t debian/etc/default/lxc-netfind subnet defined by LXC_NETWORKvi /var/lib/lxc/puppetmaster01/configadd ip addr ending in .100 to subnetfor example, lxc.network.ipv4 = 10.0.1.100/24vi /var/lib/lxc/puppetclient01/configadd ip add ending in .101 to subnetfor example, lxc.network.ipv4 = 10.0.1.101/24lxc-start -d -n puppetmaster01don't forget the "-d" or you'll be stuck in tty sessionlxc-start -d -n puppetclient01lxc-attach -n puppetmasterapt-get install puppetmasterlxc-attach -n puppetclient01apt-get install puppetvi /etc/hosts and add entry "puppet" to point at pmaster WARNING: for distro "saucy" as your container/host system, dnsmasq is broken, vms can not get DHCP IP address from dnsmasq. To attempt to fix, try:
sudo iptables -t mangle -A POSTROUTING -o lxcbr0 -p udp --dport bootpc -j CHECKSUM --checksum-fillrefresh vm IPstop and start vm, or kill existing dhclient process on vm, an…

Macbook Air and Openbox: Raise/Lower Volume, Up/Down Brightness

<keybind key="XF86KbdBrightnessUp">
      <action name="Execute">
        <command>xbacklight +10</command>
      </action>
    </keybind>
    <keybind key="XF86KbdBrightnessDown">
      <action name="Execute">
        <command>xbacklight -10</command>
      </action>
    </keybind>
    <keybind key="XF86AudioRaiseVolume">
      <action name="Execute">
        <command>amixer -c 0 set Master 2dB+</command>
      </action>
    </keybind>
    <keybind key="XF86AudioLowerVolume">
      <action name="Execute">
        <command>amixer -c 0 set Master 2dB-</command>
      </action>
    </keybind>