Skip to content

Instantly share code, notes, and snippets.

View ddewaele's full-sized avatar

Davy De Waele ddewaele

View GitHub Profile
@ddewaele
ddewaele / nifi-app.log
Last active June 24, 2016 09:24
Nifi Startup issues. Nifi started at 09:41. At 10:10 I still couldn't access the UI / API. No msg processing occured. Logging stopped at around 09:59.
2016-06-24 09:41:25,218 INFO [main] org.apache.nifi.NiFi Launching NiFi...
2016-06-24 09:41:25,252 INFO [main] org.apache.nifi.BootstrapListener Started Bootstrap Listener, Listening for incoming requests on port 57212
2016-06-24 09:41:25,266 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap
2016-06-24 09:41:47,111 INFO [main] org.apache.nifi.nar.NarClassLoaders Loaded NAR file: /Users/ddewaele/Projects/iot/nifi-1.0.0-SNAPSHOT/./work/nar/extensions/nifi-jetty-bundle-1.0.0-SNAPSHOT.nar-unpacked as class loader org.apache.nifi.nar.NarClassLoader[./work/nar/extensions/nifi-jetty-bundle-1.0.0-SNAPSHOT.nar-unpacked]
2016-06-24 09:41:47,118 INFO [main] org.apache.nifi.nar.NarClassLoaders Loaded NAR file: /Users/ddewaele/Projects/iot/nifi-1.0.0-SNAPSHOT/./work/nar/framework/nifi-framework-nar-1.0.0-SNAPSHOT.nar-unpacked as class loader org.apache.nifi.nar.NarClassLoader[./work/nar/framework/nifi-framework-nar-1.0.0-SNAPSHOT.nar-unpacked]
2016-06-24 09:41:47,120 INFO [m

Preparing the move to USB

root@Omega1:/mnt# cd /
root@Omega1:/# mkdir /mnt/sda1
root@Omega1:/# mount /dev/sda1 /mnt/sda1
root@Omega1:/# mount /dev/sda1 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt
./
./.fs_state
./work/
./work/work/
/**
* Copyright (c) 2015 Bosch Software Innovations GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.eclipse.hawkbit.mgmt.client.scenarios;
@Bean
TopicExchange exchange() {
return new TopicExchange(AmqpSettings.DMF_EXCHANGE);
}
@Bean
Binding binding(Queue queue, TopicExchange exchange) {
return BindingBuilder.bind(queue).to(exchange).with(queueName);
}

Create a bare repo somewhere

mkdir /tmp/git-bare
cd /tmp/git-bare
git init --bare

Create a project

mkdir /tmp/git-project
@ddewaele
ddewaele / questions.md
Last active January 10, 2016 18:53
Questions related to npm

Introduction

Goal : use npm to distribute a single page javascript application to a staging or production environment.

The github repo used to publish the npm package contains

  • the webapp sources (folder structure for ReactJS ES6 components)
  • a small nodeJS bootstrap server for development
  • a webpack config used to distribute the app (create single small bundle.js)

Questions

@ddewaele
ddewaele / check_pi_temp.sh
Last active December 30, 2015 21:56
Check your pi temperature
#!/bin/bash
bc -v foo >/dev/null 2>&1 || { echo >&2 "bc is required but not installed. Install using sudo apt-get install bc. Aborting."; exit 1; }
while true
do
now=$(date +"%m/%d/%Y %H:%M:%S")
t0=$(cat /sys/devices/virtual/thermal/thermal_zone0/temp)
tdiv=`echo "scale=2; $t0/1000" | bc -l`
output="$now - $tdiv"

A list of all packages installed on my UDOO Neo

ddewaele@udooneo:/tmp$ dpkg --get-selections | grep -v deinstall
abiword						install
abiword-common					install
accountsservice					install
adduser						install
alsa-base					install
alsa-utils					install
anacron						install