Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Pope map7

View GitHub Profile
View HelloWorld LCD
/*
HelloWorld.ino
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, olikraus@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
View gist:9b95936526421188126cab211a18284c
/*
HelloWorld.ino
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, olikraus@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
View gist:3dfc7ef214a48cedeef94fbce76d9011
#!/usr/bin/env python
import RPi.GPIO as GPIO # Import RPi GPIO Lib
import time
import os
def button_callback(channel):
print("Button was pushed!")
time.sleep(0.2)
View gist:9de70cb330d8864c58787a251d5ea128
********************************************************************************
Start of e2e
********************************************************************************
> @ e2e /home/map7/code/asset_management
> node ./node_modules/nativescript-dev-appium/check-dev-deps.js && tsc -p e2e && mocha --opts ./e2e/config/mocha.opts "--devMode" "false" "--runType" "device.samsung" "--verbose"
Parsed args: {"port":4723,"projectDir":"/home/map7/code/asset_management","projectBinary":"/home/map7/code/asset_management/node_modules/.bin","pluginRoot":"/home/map7/code/asset_management/node_modules/nativescript-dev-appium","pluginBinary":"/home/map7/code/asset_management/node_modules/nativescript-dev-appium/node_modules/.bin","wdaLocalPort":8410,"testFolder":"e2e","runType":"device.samsung","appiumCapsLocation":"/home/map7/code/asset_management/e2e/config/appium.capabilities.json","verbose":true,"cleanApp":false,"path":"/home/map7/code/asset_management","capabilitiesName":"appium.capabilities.json","driverCon
@map7
map7 / gist:bdcef100f7f9ecba38a439fed12bea53
Created Mar 20, 2020
debian 10 LTSP 20.3 install with chroot
View gist:bdcef100f7f9ecba38a439fed12bea53
- [-] Install *LTSP 20.3* on *debian10-ltsp*
- [X] Change to root
: su -
- [X] Configure PPA
The PPA gets updated before the repository (even debian testing)
: wget https://ltsp.org/misc/ltsp-ubuntu-ppa-bionic.list -O /etc/apt/sources.list.d/ltsp-ubuntu-ppa-bionic.list
: wget https://ltsp.org/misc/ltsp_ubuntu_ppa.gpg -O /etc/apt/trusted.gpg.d/ltsp_ubuntu_ppa.gpg
View gist:b5ca8988660dca5479b5b2247f040a30
Enter user into 'plugdev' group by editing /etc/groups on the LTSP machine
Enter chroot
: ltsp-chroot -m
Add the following to chroot:/etc/polkit-1/localauthority/50-local.d/org.freedesktop.automount.pkla
: [Allow Unauthorized mounting/Unmounting]
: Identity=unix-group:plugdev;cdrom
: Action=org.freedesktop.udisks2.filesystem-*;org.freedesktop.udisks2.eject*
: ResultAny=yes
View gist:8e5ce3adbd4b9829c10032d1795d9412
Debian 9 is '<' and this is the working chroot
Debian 10 chroot is '>' and is the one which is broken
11d10
< alsa-base
12a12
> apparmor
14d13
< apt-transport-https
20d18
View gist:f25f75457f1a6ae6995934e2c2744660
stat("/usr/local/rbenv/versions/2.3.5/lib/ruby/gems/2.3.0/gems/rails-assets-textAngular-1.5.16/app/assets/level/costing.rb", 0x7ffd6cac4de0) = -1 ENOENT (No such file or directory)
stat("/usr/local/rbenv/versions/2.3.5/lib/ruby/gems/2.3.0/gems/rails-assets-rangy-1.3.0/app/assets/level/costing.rb", 0x7ffd6cac4de0) = -1 ENOENT (No such file or directory)
stat("/usr/local/rbenv/versions/2.3.5/lib/ruby/gems/2.3.0/gems/rails-assets-font-awesome-4.3.0/app/assets/level/costing.rb", 0x7ffd6cac4de0) = -1 ENOENT (No such file or directory)
stat("/usr/local/rbenv/versions/2.3.5/lib/ruby/gems/2.3.0/gems/rails-assets-ng-country-select-0.1.4/app/assets/level/costing.rb", 0x7ffd6cac4de0) = -1 ENOENT (No such file or directory)
stat("/usr/local/rbenv/versions/2.3.5/lib/ruby/gems/2.3.0/gems/rails-assets-restangular-1.6.0/app/assets/level/costing.rb", 0x7ffd6cac4de0) = -1 ENOENT (No such file or directory)
stat("/usr/local/rbenv/versions/2.3.5/lib/ruby/gems/2.3.0/gems/rails-assets-lodash-3.10.1/app/assets/level/costing.rb", 0x
View emacs_configure
checking for xcrun... no
checking for GNU Make... make
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
View package_list.txt
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================-==================================-============-========================================================================
ii acl 2.2.51-8 i386 Access control list utilities
ii adduser 3.113+nmu3 all add and remove users and groups
ii alsa-base 1.0.25+3~deb7u1 all ALSA driver configuration files
ii alsa-utils 1.0.25-4 i386 Utilities for configuring and using ALSA
ii apt 0.9.7.9+deb7u1 i386 c