Skip to content

Instantly share code, notes, and snippets.

View devsecfranklin's full-sized avatar
🎯
time to make the donuts

Franklin D. devsecfranklin

🎯
time to make the donuts
View GitHub Profile

April 18th, 2025

Technology is not the exclusive province of corporations.

Coding can be recreational, even enjoyable when it is done for reasons other than pure profit and away from the frenetic pace of commercial software development teams.

Mathematics is the language we use to describe the Universe.

These machines ("computers") are a window into a modeling construct where these mathematical frameworks can represent all the worlds humanity can ever imagine.

#!/bin/bash
# Date: 01/20/2023
# [email protected]
#set -eu
#Black 0;30 Dark Gray 1;30
#Red 0;31 Light Red 1;31
#Green 0;32 Light Green 1;32

Demo Outline

In this quick demo we will take a look at a "Cloud Native" and security-focused lab in GCP.

You can click here to see the reference diagram for the demo.

A Bit About "On Boarding"

  • cloudbot-call.yml file is added to repo as a GH action
  • GCP creds are added to the Settings for the repo.

I don't feel the way about making breakfast that I feel about mowing the lawn, at least, once I've started mowing the lawn. Starting mowing the lawn is all about getting motivated to commit a couple hours to getting it done. Making breakfast has a built in motivator....hunger of course. Once these activities are underway though, they're a lot a bit alike as far as mental effort required, though I would argue that making breakfast has many more steps and a vital temporal component.

Timing is everything when making breakfast. The sausage or bacon has to come first, always, because they take the longest and you don't to eat or feed undercooked pork products to anyone. Always second I do the eggs, or maybe pancakes. This can turn out to be quite an undertaking if the people I am cooking for all want their eggs different styles. Of course scrambled and fried eggs go quickest and omelets take a bit longer. For the past few years I

@devsecfranklin
devsecfranklin / raspi_cross_compile.md
Last active February 24, 2018 22:07
compile for raspberry pi with tool chain

sudo apt-get install git rsync cmake lib32z1 lib32ncurses5

git clone git://github.com/raspberrypi/tools.git sudo mv tools /opt/raspi-toolchain

  • add line to .bashrc export PATH=$PATH:/opt/raspi-toolchain/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
arm-linux-gnueabihf-gcc -v

How to add pictures to the raspi

Manually

  • Open terminal window
  • scp picture-name.jpg [email protected]:/media/pi/Lexar/pictures
    • You can copy in a single picture or a whole folder

With SFTP CLient

Navigate to:

code/environments/production/modules/role/manifests

Create a new role manifest

Just copy the old one because we're lazy. We can always add/remove profile manifests from the role later if needed.

* Create a new file in iac_workshop/puppetlabs/code/environments/production/modules/profile/templates
* Let's call it issue.erb
```
<%# Non-printing tag ↓ -%>
<% if @keys_enable -%>
<%# Expression-printing tag ↓ -%>
keys <%= @keys_file %>
<% unless @keys_trusted.empty? -%>

Edit file common.yaml

iac_workshop/puppetlabs/code/environments/production/data/common.yaml needs two new lines.

dnsserver    :  ‘8.8.4.4’
searchdomain : ‘amazonaws.com’

Create new Puppet Manifest