Skip to content

Instantly share code, notes, and snippets.

View dirkmueller's full-sized avatar

Dirk Mueller dirkmueller

View GitHub Profile
#!/usr/bin/python
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
#!/bin/bash
cd $(dirname $0)
ghs=$(dirname $0)/github-status/github-status.rb
mode=unseen
#mode=forcerebuild
lst=$(mktemp)
#!/usr/bin/python
from jinja2 import Environment, PackageLoader
def generate_spec(settings, input_template):
The main service configuration (/etc/$project/$project) can still be used
for configuration but the preferred way is to add config file snippets into
/etc/$project/$project.conf.d/ instead.
As part of the packaging, the package itself installs a config snippet at
/etc/$project/$project.conf.d/010-$project.conf with basic configuration. This
file should not be modified. In case there is a need to overwrite or add
settings, a XXX-$project.conf (XXX being a 3 digit number) should be created
instead.
!1 Requirements
Before you even start working with mkcloud, you should be aware that you will need:
* a lot of patience ;)
* installation DVD iso for SLE-12-SP2 (https://download.suse.com/Download?buildid=sl4IW_HRfKs%7E) (if link does not work, please use official beta program web site: https://www.suse.com/de-de/support/beta-program/beta)
* installation DVD iso for SUSE-CLOUD-7 (you can find link here: http://beta.suse.com/private/SUSE-CLOUD/beta/)
* qcow2 image with SLE-12-SP2 installed (more details will follow)
* qcow2 image file with manila-service-image (https://github.com/uglide/manila-image-elements/releases/download/0.1.0/manila-service-image.qcow2)
* mkcloud script (https://github.com/SUSE-Cloud/automation)
#!/bin/bash
fpn=/usr/share/osc-plugin-factory/factory-package-news/factory-package-news.py
dosend=1
cd ~/src/Cloud/provo/media-announcer
announce_new_media() {
local dir=$1
#!/bin/bash
fpn=/usr/share/osc-plugin-factory/factory-package-news/factory-package-news.py
cd ~/src/Cloud/provo/media-announcer
save_new_media() {
local dir=$1
local media=$2
<!DOCTYPE html>
<html>
<head>
<title>Konfiguration</title>
<meta name='viewport' content='width=device-width'>
<style type='text/css'>
body {
font-family: Arial;
margin: 0
#!/bin/bash
lb=$1
test -n "$1" || { echo 'need lbaas id'; exit 1; }
set -x
set -e
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
// esp8266 code size using double's: 223 bytes
// esp8266 code size using floats: 204 bytes
float datasheet_calc(int stemp) {
float temp = (stemp * 175.0f) / 65535.0f - 45.0f;
return temp;
}