Skip to content

Instantly share code, notes, and snippets.

@bgaid
bgaid / create-50-states-md-files-windows-cmd.cmd
Created December 30, 2015 03:59
In Windows, create individual .md files in the current dir for each of the 50 states
for %A in (Alabama, Alaska, Arizona, Arkansas, California, Colorado, Connecticut, Delaware, Florida, Georgia, Hawaii, Idaho, Illinois, Indiana, Iowa, Kansas, Kentucky, Louisiana, Maine, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, Missouri, Montana, Nebraska, Nevada, "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", Ohio, Oklahoma, Oregon, Pennsylvania, "Rhode Island", "South Carolina", "South Dakota", Tennessee, Texas, Utah, Vermont, Virginia, Washington, "West Virginia", Wisconsin, Wyoming) do type nul > %A.md
@bgaid
bgaid / SW3_GPS_Support_Ticket
Created May 13, 2015 23:52
Support Ticket Email to Google about Sony SW3 GPS Issues
Details about my support request:
I ordered my Sony Smartwatch 3 at release on November 10th of 2014. I was very happy with the device and used it often for tracking my runs using the GPS. Unfortunately, sometime in the spring (around late February to early March) the GPS began to perform significantly worse on the exact same tracks. I run in a heavily populated area near x without much in the way of tall buildings and mountains to block signal.
My issues include:
-GPS taking extremely long periods of time
-GPS working for 2 miles or 30 minutes on a sunny day and then no longer finding a signal for the next hour or 4 more laps.
-GPS never finding a signal after standing still on a sunny day in a parking lot for 30 minutes.
These are all things that used to work from November through February but the GPS then began to perform worse as stated.

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

#!/usr/bin/env bash
# ---------------------------------------
# Virtual Machine Setup
# ---------------------------------------
# Adding multiverse sources.
cat > /etc/apt/sources.list.d/multiverse.list << EOF
deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates multiverse
@bgaid
bgaid / Sony_SW3_Tetra_shell_commands
Created December 2, 2014 17:54
Sony SW3 commands for QuantaIdle
ls -l /sys/class/thermal/*
lrwxrwxrwx root root 2014-12-02 08:05 cooling_device0 -> ../../devices/virtual/thermal/cooling_device0
lrwxrwxrwx root root 2014-12-02 08:05 thermal_zone0 -> ../../devices/virtual/thermal/thermal_zone0
lrwxrwxrwx root root 2014-12-02 08:05 thermal_zone1 -> ../../devices/virtual/thermal/thermal_zone1
ls -l /sys/class/thermal/*/*
-rw-r--r-- root root 4096 2014-12-02 12:50 cur_state
-r--r--r-- root root 4096 2014-12-02 12:50 max_state
-rw-r--r-- root root 4096 2014-12-02 12:50 autosuspend_delay_ms
-rw-r--r-- root root 4096 2014-12-02 12:50 control