Skip to content

Instantly share code, notes, and snippets.

View metaskills's full-sized avatar
🐙
Being Inkcellent to Each Other

Ken Collins metaskills

🐙
Being Inkcellent to Each Other
View GitHub Profile
@metaskills
metaskills / failure.txt
Created January 22, 2023 19:33
GitHub Devcontainer w/Docker-in-Docker Action: Random Failure
2023-01-22T19:18:48.0957839Z Requested labels: ubuntu-latest
2023-01-22T19:18:48.0957881Z Job defined at: customink/crypteia/.github/workflows/test.yml@refs/heads/MultiPlatform
2023-01-22T19:18:48.0957914Z Waiting for a runner to pick up this job...
2023-01-22T19:18:48.5509306Z Job is waiting for a hosted runner to come online.
2023-01-22T19:18:53.1417633Z Job is about to start running on the hosted runner: GitHub Actions 8 (hosted)
2023-01-22T19:18:55.8052163Z Current runner version: '2.300.2'
2023-01-22T19:18:55.8084326Z ##[group]Operating System
2023-01-22T19:18:55.8085007Z Ubuntu
2023-01-22T19:18:55.8085356Z 22.04.1
2023-01-22T19:18:55.8085727Z LTS
@metaskills
metaskills / failure.txt
Last active January 22, 2023 19:32
GitHub Devcontainer w/Docker-in-Docker Action: Success
2023-01-22T19:18:48.0957839Z Requested labels: ubuntu-latest
2023-01-22T19:18:48.0957881Z Job defined at: customink/crypteia/.github/workflows/test.yml@refs/heads/MultiPlatform
2023-01-22T19:18:48.0957914Z Waiting for a runner to pick up this job...
2023-01-22T19:18:48.5509306Z Job is waiting for a hosted runner to come online.
2023-01-22T19:18:53.1417633Z Job is about to start running on the hosted runner: GitHub Actions 8 (hosted)
2023-01-22T19:18:55.8052163Z Current runner version: '2.300.2'
2023-01-22T19:18:55.8084326Z ##[group]Operating System
2023-01-22T19:18:55.8085007Z Ubuntu
2023-01-22T19:18:55.8085356Z 22.04.1
2023-01-22T19:18:55.8085727Z LTS
@metaskills
metaskills / project-Dockerfile
Created September 16, 2021 12:16
Custom Ink Common Strap Codespaces Examples
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:14
VOLUME [ "/var/lib/docker" ]
@metaskills
metaskills / talk.md
Created November 7, 2022 16:05
Lambda Sidecar Talk Proposal

Introducing the “Lambda Sidecar” Pattern for K8s Event-Driven Architecture

Description

In this session we are going to share a top to bottom (architecture → tooling) story on how we at Custom Ink are using real cloud-native & serverless solutions for our Kubernetes workloads during our migration from AMQP to EventBridge. Like many teams, we are slowly marching to a more event-driven architecture (EDA) and we cant wait to share how Lambda, SQS, & EventBridge are a key part of our journey. In our time together, we want to explore the following topics.

  1. A product review on the current state of open-soruce solutions for containerized event handling.
  2. What does the “Lambda Sidecar” architecture pattern look like and where can it be used? Background jobs?
  3. How using Lambda’s functional command interface helps avoid costly HTTP-based software refactors.
  4. How can we use the same ECR images for our Kubernetes workloads with AWS Lambda? Secrets & Env variables?
@metaskills
metaskills / command.sh
Last active November 4, 2022 09:44
Ubuntu 16.04 Install Latest FreeTDS
$ sudo apt-get install wget
$ sudo apt-get install build-essential
$ sudo apt-get install libc6-dev
$ wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.27.tar.gz
$ tar -xzf freetds-1.00.27.tar.gz
$ cd freetds-1.00.27
$ ./configure --prefix=/usr/local --with-tdsver=7.3
$ make
$ make install
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

Learning more about Lambda Amazon Linux images:

$ cat /etc/os-release | grep LIKE
ID_LIKE="centos rhel fedora"
$ rpm -E %{rhel}
7
$ cat /proc/version
Linux version 5.4.0-1074-azure (buildd@lcy02-amd64-065) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #77~18.04.1-Ubuntu SMP Wed Mar 30 15:36:02 UTC 2022
gem 'jekyll', '~> 2.0.0.alpha'
gem 'nokogiri'
gem 'redcarpet'
gem 'rouge'
@metaskills
metaskills / rollbar.rb
Last active October 1, 2021 11:41
Safe Async Rollbar on AWS Lambda with Rails https://github.com/customink/lambda_punch
require 'rollbar/rails'
Rollbar.configure do |config|
config.use_async = true
config.async_handler = proc do |payload|
LambdaPunch.push { Rollbar.process_from_async_handler(payload) }
end
end
@metaskills
metaskills / strap-codespaces-docker.sh
Created September 16, 2021 12:06
Part of Custom Ink's `strap-codespaces` repo. Install Docker.
#!/bin/sh
set -e
if ! [ -x "$(command -v docker)" ]; then
echo "== [Custom Ink Strap Codespaces] installing 'docker' and 'docker-compose'... =="
URL="https://raw.githubusercontent.com/microsoft/vscode-dev-containers/main/script-library/docker-in-docker-debian.sh"
curl -s $URL | sudo bash /dev/stdin 1> /dev/null
fi