Skip to content

Instantly share code, notes, and snippets.

View jbaldwinroberts's full-sized avatar

Joe Roberts jbaldwinroberts

View GitHub Profile
alias vim="nvim"
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
alias vz="nvim ~/.zshrc"
alias sz="source ~/.zshrc"
alias ls="exa"
alias ll="exa -l"
alias la="exa -la"

Keybase proof

I hereby claim:

  • I am jbaldwinroberts on github.
  • I am joeroberts (https://keybase.io/joeroberts) on keybase.
  • I have a public key ASCcSyHo8l6BG76_fLw143Q-QxHElWe0qEroZvjYoM9P0Qo

To claim this, I am signing this object:

➜ swagger_hello docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \
-i /local/api/swagger.yml \
-l go \
-o /local/out/go
[main] INFO io.swagger.parser.Swagger20Parser - reading from /local/api/swagger.yml
[main] INFO io.swagger.parser.Swagger20Parser - reading from /local/api/swagger.yml
[main] ERROR io.swagger.parser.SwaggerCompatConverter - failed to read resource listing
java.lang.RuntimeException: Could not find /local/api/swagger.yml on the classpath
at io.swagger.parser.util.ClasspathHelper.loadFileFromClasspath(ClasspathHelper.java:31)
at io.swagger.parser.SwaggerCompatConverter.readResourceListing(SwaggerCompatConverter.java:206)
https://docs.google.com/document/d/1jyMiFSYNXpz7W3cNTaFtCKXKnPte6Q2tVIx-7gS0oWI/edit
https://linuxconfig.org/how-to-upgrade-debian-9-stretch-to-debian-10-buster
sudo su
apt-get update && apt-get upgrade && apt-get dist-upgrade
/etc/apt/sources.list
deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org buster/updates main
pacaur -S intltool dhclient iptables gobject-introspection-doc modemmanager dbus-glib iproute2 nss polkit wpa_supplicant libsoup systemd libgudev libmm-glib libnewt libndp libteam vala perl-yaml python-gobject git vala jansson bluez-libs glib2-docs libx11 python-dbus
PYTHON=python2 ./autogen.sh
PYTHON=python2 ./configure --with-nmcli
make
make -k check
[Build] E: Unable to locate package libvala-0.34-dev
[Build] E: Couldn't find any package by regex 'libvala-0.34-dev'
@jbaldwinroberts
jbaldwinroberts / arch-linux-install
Last active July 14, 2017 13:20 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set uk keymap
curl -X POST -H "Content-Type: application/json" -d '{"value": "1", "created_at": "1498588568783"}' "http://2b0bb070c9bfc46d3a5788b8bc190120.resindevice.io/api/publish/temp"
http://2b0bb070c9bfc46d3a5788b8bc190120.resindevice.io/api/publish/humidity
curl -X POST -H "Content-Type: application/json" -d '{"value": "36.00", "created_at:" "1499090568"}' "http://2b0bb070c9bfc46d3a5788b8bc190120.resindevice.io/api/publish/humidity"
curl -X POST -H "Content-Type: application/json" -d '{"value": "1", "created_at": "1498588568783"}' "localhost/api/publish/temp"
# provisioner
* Interactive mode from CLI, user and pass
* One shot mode from host, user and pass or api key
* Use new provisioning method
* Provision with API
* Write config.json
Unififed, unmanaged, rpi3 image
// BASE SETUP
// =============================================================================
// call the packages we need
var express = require('express'); // call express
var app = express(); // define our app using express
var bodyParser = require('body-parser');
// configure app to use bodyParser()
// this will let us get the data from a POST