Skip to content

Instantly share code, notes, and snippets.

View forksofpower's full-sized avatar
:shipit:

Patrick Jones forksofpower

:shipit:
View GitHub Profile
[
{
"keys": ["command+shift+r"], "command": "browser_refresh", "args": {
"auto_save": true,
"delay": 0.5,
"activate_browser": true,
"browser_name" : "Google Chrome"
}
}
{ "keys": ["ctrl+k", "ctrl+i"], "command": "gist" },

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
# Add Docker PPA and install latest version
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get install lxc-docker -y
# Install fig
sudo sh -c "curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig"
sudo chmod +x /usr/local/bin/fig
@forksofpower
forksofpower / README.md
Created August 9, 2016 07:22 — forked from learncodeacademy/README.md
Running a High Availability Service on CoreOS using Docker, Fleet, Flannel, Etcd, Confd & Nginx

Running a High Availability Service on CoreOS using Docker, Fleet, Flannel, Etcd, Confd & Nginx

Tools used:

  • coreos: server machine clustering via a shared cloud-config.yml
  • etcd: key value store for service registration and discovery
  • fleet: scheduling/failover of docker containers across coreos cluster
  • flannel: Gives each docker container a unique ip that allows you to access the internal port (i.e. port 80 not 32679)
  • confd: watch etcd for nodes arriving/leaving - template nginx configuration files / reload nginx on change
@forksofpower
forksofpower / fullscreen-youtube-video-background-in-pure-css.markdown
Created September 13, 2016 15:57
FullScreen YouTube Video Background In Pure CSS
@forksofpower
forksofpower / cloud-config.yml
Created September 21, 2016 05:35 — forked from socketwiz/cloud-config.yml
CoreOS cloud-config for DigitalOcean with iptables firewall
#cloud-config
coreos:
etcd2:
# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
# specify the initial size of your cluster with ?size=X
discovery: https://discovery.etcd.io/<token>
# multi-region and multi-cloud deployments need to use $public_ipv4
advertise-client-urls: http://$private_ipv4:2379,http://$private_ipv4:4001
initial-advertise-peer-urls: http://$private_ipv4:2380
@forksofpower
forksofpower / campaign-funnel.gs
Created January 23, 2017 23:56
Not fully implemented. Missing components in comments at the bottom.
function sortNewRowsToSheet() {
// basic sheet info
var sourceSpreadSheetName = 'CampaignFunnel'
, sourceSheetName = "Sheet1"
, sortColumnName = "Campaigns"
, dateColumnName = "Date"
;
/**
* If a destination sheet does not exist then there are two options:
@forksofpower
forksofpower / The Technical Interview Cheat Sheet.md
Last active January 27, 2017 04:07 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@forksofpower
forksofpower / for_vs_while_vs_do-while.cpp
Last active February 8, 2017 04:25
FOR vs WHILE vs DO-WHILE
// Iteration
// The FOR, WHILE and DO-WHILE structures are similar in that they both allow you to repeatedly
// run code in a loop until a condition is met.
// FOR loops iterate a give number of times, represented here by the variable 'i'
// the variable is set to 0 and the FOR loop is told to increment 'i' by one (i++)
// until the condition (i < 100) is met.
int age = 50;
@forksofpower
forksofpower / linux startup sounds.md
Last active August 18, 2023 04:53
startup sounds in linux

How to add startup sound to linux

I use this implementation on my RuneAudio player to play a sound when the raspberry pi is powered on.

  1. Place your audio file in /var/local/

    cp startupsound.mp3 /var/local/
  2. Create /usr/bin/startupsound.sh with these contents: