Well that explains the low cost

A co-worker recommended Vizio as a top notch TV a while back and the price was ridiculously cheap when I shopped around to price one out. It was only for an occasionally used room and I figured even if it went bad after a couple of years it was worth the cost. Now I understand why the price tag is so low despite appearing to be a quality TV and I’ve turned as much of the default settings as I could find off since it’s used with an external device.

Its watching you (ArsTechnica) http://arstechnica.com/security/2015/11/own-a-vizio-smart-tv-its-watching-you/

Shell Script for Apt-Get Security Based Updates

I’ve been slowly working this script into a cheap method of notifying me of updates available for Linux instances (Ubuntu specific) instead of purchased product or managed solution. It’s not fancy, flashy, API driven, cloud hosted, OAuth authenticating, or any other buzzwords. It does work though…


#- Name....: checkSecurityupdates.sh
#- Notes...:

# create fresh securities file each run
grep "-security" /etc/apt/sources.list | sudo grep -v "#" > /etc/apt/security.sources.list
echo "created security specific source list"

# Create the security file list
echo 'n' | apt-get upgrade -o Dir::Etc::SourceList=/etc/apt/security.sources.list >> /root/securities-to-update.txt
echo "created list of security updates"

# What's the mimetype
  # warning: assumes that the passed file exists
  file --mime-type "$1" | sed 's/.*: //'

# some variables

body="Please see attached"
declare -a attachments
attachments=( "securities-to-update.txt" )

# Build headers

printf '%s\n' "From: $from
To: $to
Subject: $subject
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=\"$boundary\"

Content-Type: text/plain; charset=\"US-ASCII\"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


# now loop over the attachments, guess the type
# and produce the corresponding part, encoded base64
for file in "${attachments[@]}"; do

  [ ! -f "$file" ] && echo "Warning: attachment $file not found, skipping" >&2 && continue

  mimetype=$(get_mimetype "$file")

  printf '%s\n' "--${boundary}
Content-Type: $mimetype
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=\"$file\"

  base64 "$file"

# print last boundary with closing --
printf '%s\n' "--${boundary}--"

} | sendmail -t -oi   
echo "sent security updates list"

# cleanup security files
rm /etc/apt/security.sources.list
rm /root/securities-to-update.txt

Amazon.com: Technics SL1200M3D Turntable (Discontinued by Manufacturer): Electronics

This iconic and extremely popular Tech12. I have one, I love mine and I’ve known about this for some time but there’s still the finality of seeing it in black and white on Amazon that a product has been discontinued….


Oracle Java Chef Recipe

There are a number of Java recipes out there that are quite good but I really had a need for a lightweight one with minimal fuss and for Ubuntu only. I would wrap this up as a solo cookbook but there really isn’t a point since it’s a grand total of 45 lines and requires 1 attribute defined. Check it out and see what you think.

# Cookbook Name:: opsworks
# Recipe:: jdk-install
# Author:: John Lawson
# Email:: jlawson@scriobha.im

log "...::: opsworks::jdk-install :::..."

# Install JDK repo
execute "apt-get install -y software-properties-common; add-apt-repository -y ppa:webupd8team/java;" do
    user "root"
    action :run
    not_if { ::File.exists?("/tmp/configured.jdk") }

# Update apt-get now that we have the JDK repo added
execute "apt-get update;" do
    user "root"
    action :run
    not_if { ::File.exists?("/tmp/configured.jdk") }

# Set our debconf settings for oracle license
execute "echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections; echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections;" do
    user "root"
    action :run
    not_if { ::File.exists?("/tmp/configured.jdk") }

#- Install JDK version based on the jdk_version attribute from attributes/default.rb
if ! node['java']['jdk_version'].nil?
    execute "apt-get install -y oracle-java#{node['java']['jdk_version']}-installer;" do
        user "root"
        action :run
        not_if { ::File.exists?("/tmp/configured.jdk") }
    log "!!!! No JDK Version set in attributes !!!!";

#- A Guard to ensure we only execute this once
file '/tmp/configured.jdk'

Maldivian Girl with Aquablue Eyes

Maldivian girl, originally sourced http://i.imgur.com/TlMY3ao.jpg

This picture is eye popping and as one of the comments points out is very much like the National Geographic Afghan girl photo and was my first thought as well. The great number of quotes that follow just kept me occupied for the last 15 minutes or more and now I’m off to find my copy of Dune… and I have to agree with the third post, that is an awesome quote:

I’ll miss the sea, but a person needs new experiences. They jar something deep inside, allowing him to grow. Without change something sleeps inside us, and seldom awakens. The sleeper must awaken


Reddit source

Posted from WordPress for Android