Skip to content

Instantly share code, notes, and snippets.

View marktyers's full-sized avatar

Mark Tyers marktyers

View GitHub Profile
@marktyers
marktyers / iplayer.md
Last active April 14, 2017 16:29
Downloading iPlayer content on MacOS

Instructions

Start by installing Homebrew and use this to install ffmpeg:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install ffmpeg

Now install the TamperMonkey plugin for your Chrome browser and install the questo script

# setting up latest version of python on Ubuntu.
# following line needed if not running 16.10+
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6 python3-pip
nano ~/.bashrc
# add the folling line to the end of ~/.bashrc
set -v
echo "startup-script.sh has run" >> working.txt
apt-get update
apt-get install -yq ca-certificates git nodejs build-essential supervisor
curl https://nodejs.org/dist/v5.9.1/node-v5.9.1-linux-x64.tar.gz | tar xvzf - -C /opt/nodejs --strip-components=1
ln -s /opt/nodejs/bin/node /usr/bin/node

make sure you ssh into the correct IP address (not hostname)

Resize Partition

df -h
fdisk /dev/mmcblk0
# options p (note start of partition 2) d 2 n p 2 (enter start value, default end) w
reboot
resize2fs /dev/mmcblk0p2
@marktyers
marktyers / cloud9_rpi.sh
Last active February 24, 2021 06:43
Installing Cloud9 on a Raspberry Pi
# use base image of minibian (mac install)
wget https://sourceforge.net/projects/minibian/files/2016-03-12-jessie-minibian.tar.gz/download
diskutil list
diskutil unmountDisk /dev/disk4
sudo dd bs=1m if=2016-03-12-jessie-minibian.img of=/dev/disk4
# make sure you ssh into the correct IP address (not hostname)
Resize Partition
df -h
fdisk /dev/mmcblk0
import UIKit
import CoreBluetooth
class ViewController: UIViewController, CBCentralManagerDelegate, CBPeripheralManagerDelegate {
var centralManager:CBCentralManager!
var peripheralManager:CBPeripheralManager = CBPeripheralManager()
let uuid:CBUUID = CBUUID(string: "DCEF54A2-31EB-467F-AF8E-350FB641C97B")
@marktyers
marktyers / ubuntu.sh
Last active August 17, 2016 13:58
Ubuntu Software Installation
add-apt-repository ppa:webupd8team/atom
Disabling keys on keyboard:
http://ubuntuforums.org/showthread.php?t=1798947
xev to find out key codes, then create a .Xmodmap file in home directory.
Process: Xcode [999]
Path: /Applications/Xcode-beta.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 7.0 (8208.9)
Build Info: IDEFrameworks-8208009000000000~2
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [999]
User ID: 501