Skip to content

Instantly share code, notes, and snippets.

View calvinchengx's full-sized avatar
:octocat:
Focusing

Calvin Cheng calvinchengx

:octocat:
Focusing
View GitHub Profile
@calvinchengx
calvinchengx / lsmod
Created August 6, 2020 05:08
raspbian
pi@raspberrypi:/boot/overlays $ lsmod
Module Size Used by
fuse 110592 3
binfmt_misc 20480 1
rfcomm 49152 4
cmac 16384 1
bnep 20480 2
hci_uart 40960 1
btbcm 16384 1 hci_uart
serdev 20480 1 hci_uart
pi@raspberrypi:~/flutter-pi $ sudo find / -name libGL*
find: '/run/user/1000/gvfs': Permission denied
/opt/vc/lib/libGLESv2_static.a
/usr/lib/chromium-browser/swiftshader/libGLESv2.so
/usr/lib/arm-linux-gnueabihf/libGLX.so.0
/usr/lib/arm-linux-gnueabihf/libGLX_mesa.so.0.0.0
/usr/lib/arm-linux-gnueabihf/libGLdispatch.so.0.0.0
/usr/lib/arm-linux-gnueabihf/libGL.so.1
/usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.1.0
/usr/lib/arm-linux-gnueabihf/libGLESv2.so.2
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
${HOME}/poky-zeus/meta \
${HOME}/poky-zeus/meta-poky \
@calvinchengx
calvinchengx / local.conf
Created July 21, 2020 05:50
This works
# Local configuration for meta-rpi images
# Yocto Project 3.1 Poky distribution [dunfell] branch
# This is a sysvinit system
# mask wireguard from meta-openembedded/meta-networking
# use version in meta-jumpnow to support kernels < 5.6
# with wireguard-linux-compat
BBMASK = "meta-networking/recipes-kernel/wireguard"
LICENSE_FLAGS_WHITELIST = "commercial"
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
${HOME}/poky-zeus/meta \
${HOME}/poky-zeus/meta-poky \
# Local configuration for meta-rpi images
# Yocto Project 3.1 Poky distribution [dunfell] branch
# This is a sysvinit system
# mask wireguard from meta-openembedded/meta-networking
# use version in meta-jumpnow to support kernels < 5.6
# with wireguard-linux-compat
BBMASK = "meta-networking/recipes-kernel/wireguard"
LICENSE_FLAGS_WHITELIST = "commercial"
@calvinchengx
calvinchengx / exampleconfig.yml
Last active May 20, 2020 14:28
direct deployment to git repo
version: 2
jobs:
build:
machine: true
steps:
- run:
name: Clone repo
working_directory: ~/workdir
command: |
git clone --depth 1 https://${REPO_GITHUB_TOKEN}@github.com/namespace/repo.git
@calvinchengx
calvinchengx / dashboard.qml
Created May 4, 2020 05:13
Dashboard example
import QtQuick 2.2
import QtQuick.Window 2.1
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
import QtQuick.Extras 1.4
Window {
id: root
visible: true
width: 1024
resource "google_compute_address" "static" {
name = "ipv4-address"
}
data "google_compute_image" "debian_image" {
family = "debian-9"
project = "debian-cloud"
}
resource "google_compute_instance" "instance_with_ip" {
expect <<EOF
set timeout -1
spawn ./hedera -X setup
expect "default account does not exist\r"
expect "Start the setup process\r"
expect "account ID in the format of 0.0.xxxx that will be used as default operator: \r"