Skip to content

Instantly share code, notes, and snippets.

@adamwads
adamwads / BBB_burningImage.md
Created September 12, 2024 18:19
BeagleBone Black: Burning an OS image to a microSD card and installing

#BeagleBone Black: Burning an OS image to a microSD card and installing

Your BBB may already come with an OS installed. Check this. If this is good enough for you, you're done.

We are currently installing Debian Jessie 8.3 at the Exploratorium, except for Eyal who has a Wheezy install image for reasons of his own.

Check to see whether we already have a current installation image on a MicroSD card for you to use. If not, burn your own. Note that this can take up to an hour of your time or more if things don't go as planned.

Procedure

@adamwads
adamwads / Promises-under-the-hood.md
Created September 11, 2018 16:42 — forked from gvergnaud/Promises-under-the-hood.md
Promises, under the hood.

Promises, under the hood

You all know that to create a new Promise you need to define it this way:

  new Promise((resolve, reject) => {
    ...
    resolve(someValue)
  })

You are passing a callback that defines the specific behavior of your promise.

@adamwads
adamwads / rpi-hdmi.sh
Created September 6, 2018 14:42 — forked from AGWA/rpi-hdmi.sh
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off. X is properly reinitialized when re-enabling.
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in
@adamwads
adamwads / docker-cheat-sheat.md
Created July 26, 2018 18:20 — forked from dwilkie/docker-cheat-sheat.md
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

@adamwads
adamwads / jdk_download.sh
Created July 25, 2018 20:02 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.