Skip to content

Instantly share code, notes, and snippets.

View arronmabrey's full-sized avatar

Arron Mabrey arronmabrey

View GitHub Profile
@arronmabrey
arronmabrey / hidpi.txt
Created August 11, 2012 02:20 — forked from simX/hidpi.txt
Enable HiDPI mode in Mountain Lion w/o Quartz Debug
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES;
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled;
// by the way, you need to logout and log back in for this to take effect. Or at least that's what
// Quartz Debug says. Who knows, maybe it's lying?
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from.

found at: http://fascinated.fm/post/2379188731/getting-a-motorola-sbg6580-into-bridge-mode-on

Getting a Motorola SBG6580 into “Bridge” mode on TimeWarner Wideband

  1. Unplug coax cable from Motorola
  2. Hold down the white reset button on the back panel with a pen for 30s.  This resets all settings to factory defaults. The modem will be auto-reconfigured once you plug in the coax cable.
  3. When modem is back on plug in a computer with an Ethernet cable into the modem.
  4. Connect to http://192.168.0.1 and login with “admin” / “motorola”
  5. Now you will make some changes:
 
  • Wireless -> Primary Network -> Disabled
setData: -> $.each @badge.data(), (key, value) => @data[key] = value
For actually making the SuperDrive work in clean and easy way, just read on (but note: while has proven to be a quite safe method, still you’ll be doing this entirely on your own risk! Using sudo and editing system files incorrectly can damage things severely!):
Apparently, Apple engineers had the need to test the superdrive with non-MacBookAir computers themselves, so the driver already has an option built-in to work on officially unsupported machines! All you need to do is enable that option, as follows:
The driver recognizes a boot parameter named “mbasd” (Mac Book Air Super Drive), which sets a flag in the driver which both overrides the check for the MBA and also tweaks something related to USB power management (the superdrive probably needs more power than regular USB allows). So just editing /Library/Preferences/SystemConfiguration/com.apple.Boot.plist and inserting the “mbasd=1″ into the “Kernel Flags” does the trick:
open a terminal
type (on a single line)
sudo pico /Library/Preferences/SystemConfig
@arronmabrey
arronmabrey / gist:7213561
Last active December 26, 2015 21:09
Api::NotificationsController JSON Examples
// General System Notifications
{
"data":[
{
"id":1,
"message":"Lumentus Social will be offline for maintenance.",
"problem_resolution_url":null,
"problem_id":null,
"user_id":100,
"client_id":null,
@arronmabrey
arronmabrey / livereload-hotjsloader.js
Created January 27, 2016 20:29
livereload-hotjsloader.js
"use strict";
(function() {
window.LiveReloadPluginHotJSLoader = (function() {
LiveReloadPluginHotJSLoader.identifier = 'livereload-hotjsloader';
LiveReloadPluginHotJSLoader.version = '1.0';
function LiveReloadPluginHotJSLoader(window, host) {
this.window = window;
this.host = host;
@arronmabrey
arronmabrey / shasum-snippet.txt
Last active February 29, 2016 13:51
shasum snippet
find . -type f -print0 | xargs -0 shasum -a 256 | tee shasum256-check.txt
shasum -a 256 -c shasum256-check.txt | tee shasum256-scan.txt
@arronmabrey
arronmabrey / graph.dot
Last active July 17, 2016 12:58
graphviz hello world
digraph {
hello [color=red]
world [shape=box color=green]
hello -> gist1
a [color=purple]
b [shape=box color=pink]
c [color=blue]
@arronmabrey
arronmabrey / ios-type2phone-cli.swift
Created September 16, 2016 16:11
ios-type2phone-cli.swift
#!/usr/bin/env swift
import Foundation
print("Enter keycode to send: ", terminator: "")
if let keycode = readLine() {
print("set keycode = \(keycode)")
@arronmabrey
arronmabrey / rbenv-install-system-wide.sh
Created April 18, 2017 21:26 — forked from endersonmaia/rbenv-install-system-wide.sh
rbenv install and system wide install on Ubuntu 12.04
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path: