Skip to content

Instantly share code, notes, and snippets.

@gitaarik
gitaarik / git_submodules.md
Last active July 22, 2024 08:56
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@steinwaywhw
steinwaywhw / client.js
Last active April 20, 2022 11:47
A minimal term.js server/client demo. To be used with node.js
var client = {};
client.run = function (options) {
options = options || {};
var socket = io.connect(options.remote || "http://localhost:8080");
socket.on('connect', function() {
var term = new Terminal({
@mbrownnycnyc
mbrownnycnyc / quick_sense_API_ref.txt
Created July 21, 2017 15:19
Quick intro reference for the Sense Home Energy Monitor thus far undocumented API. This was taken from the Sense Android app version 1.3.7-9be446d, which was available in Google Play store on February 6th, 2017.
-- Authentication --
URL: https://api.sense.com/apiservice/api/v1/authenticate
Method: POST
Fields:
email (your email)
password (your password)
response JSON:
{
@dale3h
dale3h / speck
Last active September 24, 2018 18:39
Hass.io Local Add-on Reloader
#!/bin/bash
readonly BACKUP_DIR=/backup/speck
usage() {
echo "usage: $(basename "$0") addon_name" 2>&1
exit 1
}
addon_install() {
@johnjeffers
johnjeffers / ubuntu-20.04-macbook-pro.md
Created May 31, 2020 00:21
Ubuntu 20.04 on a 15" Retina MacBook Pro (Mid-2014)

Ubuntu 20.04 on a 15" Retina MacBook Pro (Mid-2014)

These are notes from my efforts to get Ubuntu 20.04 installed on my older MacBook Pro. I'm making this gist public in the hopes that it's helpful to others.

I did a Minimal install, but selected the option to install additional 3rd-party drivers.

Wifi doesn't work during the install (because it requires a 3rd-party driver), so you won't be able to choose to download updates while installing. No big deal, run a software update after the install.

The installer takes about 25 minutes to complete. Post-install, most things work. The only driver I had to manually install was for the FaceTime camera. More on that below.

@darconeous
darconeous / rect-starlink-cable-hack.md
Last active July 1, 2024 01:37
Hacking the Rectangular Starlink Dishy Cable