Skip to content

Instantly share code, notes, and snippets.

View bramford's full-sized avatar

Bramford Horton bramford

View GitHub Profile

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts

@bramford
bramford / chromeos-devmode-crosh-base16-chroot-tmux-vim.md
Last active November 9, 2016 05:13
Chrome OS Dev Mode + Crosh + Base16 + chroot + tmux + vim

Pre-requisities

Developer Mode

Your Chromebook must be in developer mode before you attempt any of this.

To put your Chromebook in developer mode, follow the instructions under the 'Entering' section on this page. Note that the instructions work for most hardware types, not just the Acer C720. That said, it's worth a quick google search to see if there are any instructions specifically for your model of Chromebook.

Secure Shell and Crosh extensions installed

@bramford
bramford / devops-warmup.md
Created July 25, 2017 05:57
A list of tasks to do when preparing to start a DevOps role (Ansible, AWS, docker, Jenkins, Debian, Python)

DevOps warmup

  1. Create a cloudformation template that provisions the following AWS resources:
  • VPC
  • Subnet
  • Internet gateway (with route table entry)
  • Security Group (to allow your IP in for SSH)
  • IAM role that allows full AWS Route53 access
  1. Write an Ansible playbook that
@bramford
bramford / increment-tuples.ml
Last active February 14, 2018 01:40
OCaml increment tuples recursively in order and add to list - Compiler error
(*
I am attempting to create a 2d 'map' for a simple ncurses game.
The map should consist of a list of coordinates (tuples of int * int)
For example: [(0,0);(0,1);(0,2);(1,0);(1,1);(1,2);(2,0);(2,1);(2,2);]
would be the list that represents all coordinates in the 3x3 'map':
2###
y1###
0###
012
@bramford
bramford / cohttp-lwt-tls-error.ml
Created April 26, 2018 11:56
A TLS error using cohttp-lwt and cohttp-lwt-unix. How can I debug it further?
(* Paste this source file in to your toplevel *)
(* There is some attribute of the TLS connection to remoteok.io that causes
a fatal Tls_alert (HANDSHAKE_FAILURE). `curl` has no trouble connecting to
this same host. I assume there's a difference between the defaults used by
`Cohttp_lwt_unix.Client.get` and those used by`curl`.
site.
How can I debug it further? I've tried to establish a TLS connection directly with Tls_lwt.connect but it's too complex to use without more reading.
*)
@bramford
bramford / mikrotik-rb750gr3-dnsmasq-dhcp-bootp-tftp-install.sh
Last active July 8, 2023 00:01
Install OpenWRT on Mikrotik hEX (RB750Gr3) using dnsmasq to provide DHCP/BOOTP/TFTP server
# These instructions assume the user is following the TL;DR guide for Mikrotik install:
# https://openwrt.org/toh/mikrotik/common
# 'Step-By-Step OpenWrt Installation Process on Routerboard'
# 'TL;DR: simple way for all supported models'
# Complete steps 1-4 of the guide
# On Debian host (in my case, a Lenovo Thinkpad running Debian Buster)
## Ensure WiFi is connected (as assumed) to an existing network with a WAN connection
## Take down the Wired connection