Skip to content

Instantly share code, notes, and snippets.

View givemelove's full-sized avatar

Nicky Parseghian givemelove

  • SADA Systems, Inc.
  • Nashville, TN
View GitHub Profile
@givemelove
givemelove / bitbucketToGithub.txt
Created January 8, 2019 16:13
Instructions to migrate Bitbucket Repos to Github sequentially
# Pull up BitBucket and Github side by side
# The assumption is that you have git installed on your command line and are authenticated to both Bitbucket and Github.
# For Each bitbucket repo, do the following using the command line:
# 1 - Clones the Bitbucket repo to your working directory
# 2 - Change the working directory
# 3 - Rename the Bitbucket repo from origin to bitbucket & add the Github repo as the new Origin
# 4 - Push the repo to the Origin (Github), Remove the Bitbucket reference and leave the working directory
git clone git@bitbucket.org:<Bitbucket User>/<Repo>
gem 'json', '= 1.1.3'
require 'json'
module Watchdox
class API
BASE_URL = "https://api.watchdox.com"
API_VERSION = "1.0"
attr_accessor :ssid

Install raspbian, set up your users however you would like, so long as you have sudo access on the user you are running this with. You probably want to resize the image so it fills the SD card as well.

  1. Copy this entire gist to your raspberry pi
  2. Do chmod +x step1.sh step2.sh iptables.sh in the gist folder (so that
  3. Run step1.sh a) This script does a few things - it first updates your raspberry pi, then it installs a few needed utilities, then it upgrades the firmware on your raspberry pi
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'