Skip to content

Instantly share code, notes, and snippets.

Avatar

Till Wegmüller Toasterson

View GitHub Profile
@Toasterson
Toasterson / FRAOSUG-Cloud_Init-2021-05-18.org
Last active May 22, 2021
Presentation in FRAOSUG on the 18th of Mai 2021
View FRAOSUG-Cloud_Init-2021-05-18.org

Was ist es?

  • Dateiformat zum Automatisieren von Installationen in einer Cloud Umgebung
  • Script ausfuehrungs umgebung nach firstboot
  • Framework zum custom images vorbereiten (appliance vendor)

Wo findet man das normalerweise?

  • Cloud Umgebungen AWS, Azure, DigitalOcean, OpenStack, Alibaba…

Konzepte

  • Datasources
  • Metadata
  • userData
View 2
cd oi-userland/components/print/cups/build/prototype/i386/ws/toasty/oi-userland/components/print/cups/build/prototype/i386/
toasty@oibuild:~/oi-userland/components/print/cups/build/prototype/i386/ws/toasty/oi-userland/components/print/cups/build/prototype/i386$ ls -alh
total 9
drwxr-xr-x 6 toasty builders 6 Apr. 17 18:51 .
drwxr-xr-x 3 toasty builders 3 Apr. 17 18:51 ..
drwxr-xr-x 4 toasty builders 4 Apr. 17 18:51 etc
drwxr-xr-x 3 toasty builders 3 Apr. 17 18:51 lib
drwxr-xr-x 7 toasty builders 7 Apr. 17 18:52 usr
drwxr-xr-x 6 toasty builders 6 Apr. 17 18:51 var
toasty@oibuild:~/oi-userland/components/print/cups/build/prototype/i386/ws/toasty/oi-userland/components/print/cups/build/prototype/i386$
View gmake_test.txt
vagrant@openindiana:/vagrant/components/developer/golang-116$ gmake test
(cd /vagrant/components/developer/golang-116/build/amd64/src ; \
/usr/bin/env PATH="/vagrant/components/developer/golang-116/build/amd64/bin::/usr/bin/amd64:/usr/bin:/usr/gnu/bin:/usr/sbin/amd64:/usr/sbin:/usr/perl5/5.22/bin" GOROOT="/vagrant/components/developer/golang-116/build/amd64" \
./run.bash \
)
##### Building packages and commands.
##### Testing packages.
# embed/internal/embedtest
@Toasterson
Toasterson / service_bundle.xsd
Created Apr 15, 2020
illumos smf converted to xsd
View service_bundle.xsd
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
CDDL HEADER START
The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.
@Toasterson
Toasterson / main.go
Created Apr 5, 2020
registry custom main file
View main.go
package main
import (
"github.com/docker/distribution/registry"
_ "github.com/docker/distribution/registry/auth/htpasswd"
_ "github.com/docker/distribution/registry/auth/token"
_ "github.com/docker/distribution/registry/proxy"
_ "github.com/docker/distribution/registry/storage/driver/azure"
_ "github.com/docker/distribution/registry/storage/driver/filesystem"
View go.mod
module code.gitea.io/gitea
require (
code.gitea.io/git v0.0.0-20190411170847-63b74d438b29
code.gitea.io/sdk v0.0.0-20190303183416-e4effe4df2b8
git.wegmueller.it/toasterson/go-billy v4.2.0+incompatible // indirect
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/PuerkitoBio/goquery v0.0.0-20170324135448-ed7d758e9a34
github.com/RoaringBitmap/roaring v0.4.7 // indirect
github.com/Unknwon/cae v0.0.0-20160715032808-c6aac99ea2ca
@Toasterson
Toasterson / solaris_zone.yaml
Last active Sep 14, 2016
Solaris Zone Ansible Sample with sysding
View solaris_zone.yaml
tasks:
- name: Zone Dataset
zfs: "name=rpool/SHARED/zones/{{ zone_name }} state=present mountpoint={{ zone_path }}"
- name: Zone VNIC
dladm_vnic: "name={{ zone_vnic }} link=stub0 state=present"
- name: Zone creation
solaris_zone:
name: "{{ zone_name }}"
state: present
path: "{{ zone_path }}"
@Toasterson
Toasterson / main.dart
Last active Aug 29, 2015
Dart cant calculate 007 times 100
View main.dart
main() {
List<double> vals = const[
0.07,
0.08,
0.17,
0.017,
0.072,
0.007,
0.00725,
0.72,