Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -euo pipefail
if ! command -v aws &> /dev/null; then
echo "Error: The 'aws' CLI is not installed or not in your PATH." >&2
exit 3
fi
2024-11-04 17:11:27-06 floxbox01 Installer[59796]: @(#)PROGRAM:Install PROJECT:Install-1000
2024-11-04 17:11:27-06 floxbox01 Installer[59796]: @(#)PROGRAM:Installer PROJECT:Installer-1210
2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Hardware: Mac14,9 @ 0 MHz (x 12), 16384 MB RAM
2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Running OS Build: macOS 14.6.1 (23G93)
2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Env: PKG_CONFIG_PATH=/Users/stahnma/.cache/flox/run/stahnma/default.5d13975f/lib/pkgconfig:/Users/stahnma/.cache/flox/run/stahnma/default.5d13975f/share/pkgconfig
2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Env: PWD=/Users/stahnma
2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Env: _process_compose=/nix/store/sx88hhp63s7vvhb7i0bkzk1zk65km08w-process-compose-1.9.0/bin/process-compose
2024-11-04 17:11:27-06 floxbox01 Installer[59796]: Env: _tcsh_home=/nix/store/bq3kgjbilv466f37plh5qyaa1ly3pgxz-flox-activation-scripts/activate.d/tcsh_home
2024-11-04 17:11:27-06 floxbox01 Installer
{
"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"
},
#!/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"]
@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

# 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.