Skip to content

Instantly share code, notes, and snippets.

View stahnma's full-sized avatar

Michael Stahnke stahnma

View GitHub Profile
@stahnma
stahnma / notes.md
Last active February 2, 2024 03:48
BeerCityCode2018 - Stahnke - The Home Game

Hello, I assume you found this from my talk at BeerCityCode 2018. If so, great. If not, also great. It's the internet, we can all be friends. -- @stahnma

References

Books

#!/bin/sh
#
# logstash
#
# chkconfig: - 20 80
# description: logstash
### BEGIN INIT INFO
# Provides: logstash
# Required-Start: $remote_fs $syslog
#!/bin/bash
osascript -e 'tell application "System Events" to tell process "zoom.us"' \
-e 'set frontmost to true' \
-e 'if windows is not {} then perform action "AXRaise" of item 1 of windows' \
-e 'end tell'
from alpine
run apk update && apk add cmake boost-dev make curl git curl-dev gcc g++ yaml-cpp-dev boost-static
run mkdir /workspace && cd workspace && \
git clone https://github.com/puppetlabs/leatherman
run sed -i -e 's/sys\/poll/poll/' /usr/include/boost/asio/detail/socket_types.hpp
run cd /workspace/leatherman; mkdir build; cd build; cmake -DBOOST_STATIC=OFF -DCMAKE_VERBOSE_MAKEFILE=ON ..; make -j1 ; make install
copy Dockerfile /Dockerfile
cmd ["/bin/sh"]
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
# these ones not so much
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_SYSTEM_PROCESSOR arm)
# specify the cross compiler
SET(PL_TOOLS_ROOT /usr/)
SET(PL_TOOLS_PREFIX ${PL_TOOLS_ROOT}/arm-linux-gnueabihf)
#SET(PL_TOOLS_SYSROOT ${PL_TOOLS_PREFIX}/sysroot/lib/arm-linux-gnueabihf)
@stahnma
stahnma / -
Created February 28, 2018 20:48
This file has been truncated, but you can view the full file.
the component DSL method signature #environment({Key => Value}) is deprecated
and will be removed by Vanagon 1.0.0.
Please update your project configurations to use the form:
#environment(key, value)
Value "/opt/pl-build-tools/bin:$$PATH:/opt/puppetlabs/puppet/bin" looks like it's escaping one or more shell variable names for shell interpolation.
"$$PATH" will be coerced to "$(PATH)"
All environment variables will now be resolved by Make before they're executed
by the shell. These variables will be mangled for you for now, but you should
update your project's parameters.
@stahnma
stahnma / -
Created November 14, 2017 20:13
checking limits.h presence... yes
checking for limits.h... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
@stahnma
stahnma / -
Created November 14, 2017 20:12
This file has been truncated, but you can view the full file.
the component DSL method signature #environment({Key => Value}) is deprecated
and will be removed by Vanagon 1.0.0.
Please update your project configurations to use the form:
#environment(key, value)
Value "/opt/pl-build-tools/bin:$$PATH:/opt/puppetlabs/puppet/bin" looks like it's escaping one or more shell variable names for shell interpolation.
"$$PATH" will be coerced to "$(PATH)"
All environment variables will now be resolved by Make before they're executed
by the shell. These variables will be mangled for you for now, but you should
update your project's parameters.
#!/usr/bin/env bash
# Usage example: ./get_compiles 2017-09-27 05 06 07 08
DATE="$1"
shift
for x in "$@"
do
egrep "'Compiled catalog'|'Compiled static catalog'" /var/log/puppetlabs/puppetserver/puppetserver.log | grep "^$DATE $x:" | wc -l
@stahnma
stahnma / -
Created August 24, 2017 03:29
The git source `git://github.com/puppetlabs/packaging.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.5.0
Using ast 2.2.0
Using fustigit 0.1.4 (was 0.1.3)
Using git 1.3.0
Installing json 1.8.3 with native extensions
Using redis 3.3.3 (was 3.3.1)