Skip to content

Instantly share code, notes, and snippets.

/* Automatically generated nanopb header */
/* Generated by nanopb-0.3.6 at Thu Nov 9 22:08:54 2017. */
#ifndef PB_SENSOR_PB_H_INCLUDED
#define PB_SENSOR_PB_H_INCLUDED
#include <pb.h>
/* @@protoc_insertion_point(includes) */
#if PB_PROTO_HEADER_VERSION != 30
#error Regenerate this file with the current version of nanopb generator.
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.3.6 at Thu Nov 9 22:08:54 2017. */
#include "sensor.pb.h"
/* @@protoc_insertion_point(includes) */
#if PB_PROTO_HEADER_VERSION != 30
#error Regenerate this file with the current version of nanopb generator.
#endif
@kke
kke / install.sh
Created October 11, 2018 11:16
an installer script for a kontena classic node
#!/bin/sh
# # Kontena "Bring your own node" install script
#
# This script will configure and run Kontena Agent on a variety of systems, including MacOS and most Linux distributions and join it to a grid
#
# ## Requirements
#
# * A working Docker installation (`docker run` should work from the command line)
@kke
kke / FoneFinder.rb
Created November 30, 2018 13:27
FoneFinder rubygem full sources, related to https://stackoverflow.com/q/53557964/681520
# bin/FoneFinderTest.rb
#!/usr/bin/env ruby
require 'FoneFinder'
puts "Please enter a phone number!"
object = FoneFinder.new(STDIN.gets.chomp)
unless object.invalid
puts "City: #{object.city}"
vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/lazy]])
local package_root = '/tmp/nvim/lazy'
local plugin_folder = function()
local host = os.getenv('HOST_NAME')
if host and (host:find('Ray') or host:find('ray')) then
return [[~/github/ray-x]] -- vim.fn.expand("$HOME") .. '/github/'
else
return ''