Skip to content

Instantly share code, notes, and snippets.

Building JSON manifest...
up to date in 0.149s
...Done
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.
You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
@bbinet
bbinet / resin host contamination
Created March 1, 2018 08:36
resin host contamination
Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal-4.9"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "genericx86-64"
DISTRO = "resin-os"
DISTRO_VERSION = "2.9.7"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
@bbinet
bbinet / weekday_in_month.sh
Created September 27, 2017 07:40
Get dates for Nth weekday in month: eg. get every 3rd tuesday of next 12 months
#!/bin/bash
if [ $# -lt 2 ]
then
echo "Usage: $0 <day_in_week> <week_in_month> [<nb_months>]"
echo " day_in_week: [0-6] (Sun=0 Mon=1 Tue=2 Wed=3 Thu=4 Fri=5 Sat=6)"
echo " week_in_month: [1-5]"
fi
day_in_week=$1
@bbinet
bbinet / pepper_format.py
Last active March 15, 2021 14:13
Use salt outputters to format pepper output, see https://github.com/saltstack/pepper/issues/3
#!/home/bruno/.virtualenvs/salt/bin/python
"""
This script formats pepper output using salt outputters.
It can both format sync and async jobs, and can be used in the following ways:
```
$ pepper \* state.sls core | pepper_format.py -o highstate
$ pepper --client=local_async \* state.highstate | pepper_format.py
$ pepper_format.py 20170504160400750792
```
hindsight_hl_test
@bbinet
bbinet / heka-report-fail.txt
Created May 18, 2015 16:43
Heka report after idle packs
2015/05/18 16:20:07 Diagnostics: 38 packs have been idle more than 120 seconds.
2015/05/18 16:20:07 Diagnostics: (input) Plugin names and quantities found on idle packs:
2015/05/18 16:20:07 Diagnostics: Trwebclient1sLastAggregateMetricFilter: 38
2015/05/18 16:20:07 Diagnostics: MainRegexDispatchFilter: 32
2015/05/18 16:20:07
2015/05/18 16:20:07 Diagnostics: 25 packs have been idle more than 120 seconds.
2015/05/18 16:20:07 Diagnostics: (inject) Plugin names and quantities found on idle packs:
2015/05/18 16:20:07 Diagnostics: 3sLastAggregateMetricFilter: 23
2015/05/18 16:20:07 Diagnostics: 60sMinAggregateMetricFilter: 1
2015/05/18 16:20:07 Diagnostics: 60sLastAggregateMetricFilter: 24
@bbinet
bbinet / heka-report-ok.txt
Created May 18, 2015 16:42
Heka report before idle packs
root@test-mc-9-dev:/home/helioslite/tracker# HEKA_HL_DIR="/usr/share/heka-hl-sandboxes" CARBON_OUT_DIR="/var/local/stats" hekad -config /etc/heka/toml
2015/05/18 15:18:06 Pre-loading: [DashboardOutput]
2015/05/18 15:18:06 Pre-loading: [TrserverInput]
2015/05/18 15:18:06 Pre-loading: [TrserverDecoder]
2015/05/18 15:18:06 Pre-loading: [CarbonEncoder]
2015/05/18 15:18:06 Pre-loading: [CarbonFileOutput]
2015/05/18 15:18:06 Pre-loading: [Trwebclient1sLastAggregateMetricFilter]
2015/05/18 15:18:06 Pre-loading: [TrwebclientOutput]
2015/05/18 15:18:06 Pre-loading: [TrwebclientEncoder]
2015/05/18 15:18:06 Pre-loading: [NoAggregateMetricFilter]
@bbinet
bbinet / normalize-import.lua
Last active August 29, 2015 14:20
Darktable plugin to normalize directory path of imported images
--[[
Normalize Import
A simple plugin to normalize directory path (film) of imported images.
When a new image is imported, the plugin immediately moves the new image to the
following normalized directory path:
<photos_path>/YYYY/MM/DD/<image.jpg>
AUTHOR
Bruno Binet <[email protected]>
@bbinet
bbinet / PlatformDevs.toml
Last active August 29, 2015 14:16
Heka v0.9.0 - Dynamic sandboxes
ip_address = ":5565"
[signer]
name = "PlatformDevs"
hmac_hash = "md5"
hmac_key = "Platform devs signing key"
version = 1
@bbinet
bbinet / influxdb stack trace
Created October 2, 2014 13:22
influxdb stack trace
root@influxdb:/var/log/circus# /usr/bin/influxdb -config=/etc/influxdb/config.toml
[10/02/14 13:12:53] [INFO] Loading configuration file /etc/influxdb/config.toml
[10/02/14 13:12:53] [INFO] Redirectoring logging to /opt/influxdb/shared/log.txt
[10/02/14 13:12:53] [INFO] Starting Influx Server bound to 0.0.0.0 ...
[10/02/14 13:12:53] [INFO]
+---------------------------------------------+
| _____ __ _ _____ ____ |
| |_ _| / _| | | __ \| _ \ |
| | | _ __ | |_| |_ ___ _| | | | |_) | |
| | | | '_ \| _| | | | \ \/ / | | | _ < |