References:
From man page: man apt_preferences
import ssd1306 | |
from machine import I2C, Pin | |
i2c = I2C(sda=Pin(4), scl=Pin(5)) | |
display = ssd1306.SSD1306_I2C(64, i2c) | |
display.fill(0) | |
display.text('Hallo',20,20) | |
display.show() |
References:
From man page: man apt_preferences
#!/usr/bin/env python | |
import argparse | |
import tempfile | |
import subprocess | |
import traceback | |
def u(somebytes): | |
return None if somebytes is None else somebytes.decode('utf-8') |
Here's my setup:
Complete up to the "Generate the cert" section in this gist
/** | |
* Marlin 3D Printer Firmware | |
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] | |
* | |
* Based on Sprinter and grbl. | |
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or |
#!/bin/bash | |
## Pass local .tar.gz path as first argument | |
# Update the following variables | |
# This will be created if it does not exist | |
ACCOUNT_NAME="philrocheubuntu" | |
# This will be created if it does not exist | |
CONTAINER="philrocheubuntuimages" | |
# Customize this as all vm resouces with this group will be cleaned up. This will be created if it does not exist |
#!/usr/bin/env python3 | |
"""Generate a presigned URL to download an S3 object | |
<cmd> bucket_name key_name [expiration_days]""" | |
import sys | |
import boto3 | |
from botocore.client import Config |
backdoor-image can be used to easily add user with passwordless sudo access to a image or a root filesystem.
Operating on an image requires the 'mount-image-callback' tool from
cloud-utils. That can be installed on ubuntu via apt-get install -qy cloud-image-utils
.