Prepare SD Card
- flash raspbian lite on micro sd card using etcher
- setup wireless and ssh, desribed here
setup raspberry
- passwd # set new password
- set authorized keys
- sudo raspi-config: set password, timezone, locale, enable spi
import 'package:flutter/material.dart'; | |
import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | |
// to generate this, locate font_awesome_flutter.dart in console, and then: | |
// awk ' | |
// /IconData/ && !skip { print } | |
// { skip = /Deprecated/ } | |
// ' font_awesome_flutter.dart | rg -o 'static const IconData ([^ ]+)' -r ' "$1": FontAwesomeIcons.$1,' | nocolor > /tmp/fa.txt | |
/// Icon data map for FontAwesome |
import 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
const apiKey = 'my-secret-api-key'; | |
class Weather { | |
final int temp; | |
final int condition; | |
final String city; |
pi@raspberrypi:~/sonos-lcd $ pip3 install -U --force-reinstall pillow-simd | |
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple | |
Collecting pillow-simd | |
Using cached https://files.pythonhosted.org/packages/a0/6a/30d21c886293cca3755b8e55de34137a5068b77eba1c0644d3632080516b/Pillow-SIMD-7.0.0.post3.tar.gz | |
Building wheels for collected packages: pillow-simd | |
Running setup.py bdist_wheel for pillow-simd ... error | |
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-c7i2f9uv/pillow-simd/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\ | |
n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-7fv32_j6 --python-tag cp37: | |
running bdist_wheel | |
running build |
hg-data-public
)#!/usr/bin/env python3 | |
import flatten_json | |
import sys | |
import json | |
if __name__ == '__main__': | |
if len(sys.argv) < 3: | |
print(f'usage: {sys.argv[0]} in.csv out.csv') | |
f_out = open(sys.argv[2], 'w') |
These instructions are for Amazon Linux Version 2
sudo yum update -y
sudo yum install python3 -y
Mappings: | |
RegionMap: | |
ap-south-1: | |
"AMALINUX" : "ami-531a4c3c" | |
eu-west-3: | |
"AMALINUX" : "ami-8ee056f3" | |
eu-west-2: | |
"AMALINUX" : "ami-403e2524" | |
eu-west-1: | |
"AMALINUX" : "ami-d834aba1" |
/* | |
* $Id: scanbd.conf 213 2015-10-05 06:52:50Z wimalopaan $ | |
* | |
* scanbd - KMUX scanner button daemon | |
* | |
* Copyright (C) 2008 - 2015 Wilhelm Meier (wilhelm.meier@fh-kl.de) | |
* | |
* 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 2 of the License, or |
global { | |
# log to console. put to 'false' once you're done with testing | |
debug = true | |
# 1=error, 2=warn, 3=info, 4-7=debug | |
# 3 was sufficient for me (shows when script is triggered) | |
debug-level = 3 | |
scriptdir = /etc/scanbd/scripts | |