Skip to content

Instantly share code, notes, and snippets.

View zzeroo's full-sized avatar
💤
zzeroo...

zzeroo zzeroo

💤
zzeroo...
View GitHub Profile
@zzeroo
zzeroo / dovecot-ldap.conf.ext.md
Last active August 4, 2017 15:48
Example dovecot-ldap.conf.ext
# /etc/dovecot/dovecot-ldap.conf.ext

uris = ldap://localhost:389
dn = cn=dovecot,ou=dsa,dc=example,dc=org
dnpass = ApassWD
tls = yes
tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
tls_require_cert = demand
ldap_version = 3
@zzeroo
zzeroo / auser.lookup.md
Created August 4, 2017 15:50
doveadm Output
# doveadm user -u auser
userdb: auser
  user      : auser
  mail      : maildir:/srv/vmail/[email protected]/Maildir
@zzeroo
zzeroo / log.do_rootfs
Created September 5, 2017 15:53
log do_rootfs
DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: ###### Generate rootfs #######
NOTE: Executing '/home/build/shared/build-bananapro/tmp/sysroots/x86_64-linux/usr/bin/opkg-make-index -r /home/build/shared/build-bananapro/tmp/deploy/ipk/cortexa7hf-vfp-vfpv4-neon/Packages -p /home/build/shared/build-bananapro/tmp/deploy/ipk/cortexa7hf-vfp-vfpv4-neon/Packages -m /home/build/shared/build-bananapro/tmp/deploy/ipk/cortexa7hf-vfp-vfpv4-neon' ...
NOTE: Executing '/home/build/shared/build-bananapro/tmp/sysroots/x86_64-linux/usr/bin/opkg-make-index -r /home/build/shared/build-bananapro/tmp/deploy/ipk/all/Packages -p /home/build/shared/build-bananapro/tmp/deploy/ipk/all/Packages -m /home/build/shared/build-bananapro/tmp/deploy/ipk/all' ...
NOTE: Executing '/home/build/shared/build-bananapro/tmp/sysroots/x
@zzeroo
zzeroo / bitbake.output.log
Created September 7, 2017 08:02
ERROR: Nothing PROVIDES ''
➜ easy-build git:(master) docker run -ti --volume=(pwd)/shared:/home/build/shared gmacario/build-yocto:latest 09:51:04
build@c5e5a6bc6c12:~$ source shared/poky/oe-init-build-env shared/build-bananapro/
### Shell environment set up for builds. ###
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
core-image-sato
@zzeroo
zzeroo / log.do_compile
Created September 8, 2017 13:53
oe u-boot-2017.07
DEBUG: Executing shell function do_compile
NOTE: make -j 8 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc --sysroot=/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot V=1 HOSTCC=gcc -isystem/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/usr/lib -L/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017
@zzeroo
zzeroo / log.do_compile
Created September 10, 2017 12:14
u-boot 2017.07 yocto dtc-native, swig-native
DEBUG: Executing shell function do_compile
NOTE: make -j 8 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc --sysroot=/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot V=1 HOSTCC=gcc -isystem/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/usr/lib -L/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017.07-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/build/shared/build-bananapro/tmp/work/bananapro-poky-linux-gnueabi/u-boot/1_2017
@zzeroo
zzeroo / dmesg
Created September 18, 2017 11:37
dmesg
[ 5.277214] OF: /soc@01c00000/i2c@01c2b800/edt-ft5x06@38: could not get #gpio-cells for /clocks/cpu@01c20054
[ 5.287182] edt_ft5x06 2-0038: Failed to request GPIO wake pin, error -22
[ 5.294046] edt_ft5x06: probe of 2-0038 failed with error -22
[ 5.301030] mousedev: PS/2 mouse device common for all mice
root@bananapro:~#
@zzeroo
zzeroo / readme1.rs
Created November 22, 2017 16:05
First part of relm README
/// First, add this to you Cargo.toml:
// gtk = "^0.2.0"
// relm = "^0.10.0"
// relm-derive = "^0.10.0"
/// Next, add this to your crate:
extern crate gtk;
#[macro_use]
extern crate relm;
#[macro_use]
@zzeroo
zzeroo / readme2.rs
Created November 22, 2017 16:51
Second part of the relm README example code
#![feature(proc_macro)]
/// # `#[widget] attribute`
///
/// For the nightly users, a `#[widget]` attribute is provided to simplify the creation of a widget.
///
/// This attribute does the following:
///
/// * Provide a view! macro to create the widget with a declarative syntax.
/// * Automatically create the fn root(), type Msg, type Model, type ModelParam and type Root items.
@zzeroo
zzeroo / rocketguide.md
Created April 5, 2018 13:26 — forked from belst/rocketguide.md
Deploy Rocket in production

Deploy Rocket using Letsencrypt and nginx

Information

This guide uses the domain your-domain.tld and its www. prefixed version. It starts the rocket application on 127.0.0.1:1337 and as the user www-data. The proxy listens on port 80 and 443 though.
If you need other values, update them accordingly in your nginx and systemd configs.

Prerequisites

You need to have nginx, certbot and rust installed.