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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event": "catalog", | |
"type": "service-request", | |
"timestamp": "2024-07-22T04:54:26.512255", | |
"uuid": "4c766f38-be8a-436e-9dac-7f795182472a", | |
"service_properties": { | |
"hostname": "ip-172-31-8-95.ec2.internal", | |
"version": "0.1.0+186-c0dc18f", | |
"instance_uuid": "dfa0d38a-6d8a-4b97-a4c8-63ca596f2351" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
NewerOlder