Skip to content

Instantly share code, notes, and snippets.

View ericsmalling's full-sized avatar

Eric Smalling ericsmalling

View GitHub Profile
@ericsmalling
ericsmalling / images.sh
Created August 10, 2023 13:42
Add arch to docker images output
#!/bin/bash
# Set the IFS variable to a newline character
IFS=$'\n'
# Get the list of docker images
images=$(docker images -a)
# Loop through the list of images
for image in $images; do
@ericsmalling
ericsmalling / gist:ce4701da51c24195a04bfc35205a9bfa
Created October 11, 2022 11:45
Snyk container scan of the Chainguard nginx image with dependency tree and app-vulns flag enabled for deeper vulnerability scan
snyk container test cgr.dev/chainguard/nginx --print-deps --platform=amd64 --app-vulns 
docker-image|cgr.dev/chainguard/nginx @ latest
├─ alpine-baselayout/alpine-baselayout-data @ 3.3.0-r2
├─ aom/aom-libs @ 3.5.0-r0
├─ brotli/brotli-libs @ 1.0.9-r8
├─ busybox/busybox @ 1.35.0-r27
├─ busybox/busybox-binsh @ 1.35.0-r27
│ └─ busybox/busybox @ 1.35.0-r27
├─ bzip2/libbz2 @ 1.0.8-r3
├─ dav1d/libdav1d @ 1.0.0-r1
@ericsmalling
ericsmalling / DOSBOX-TIE.conf
Last active February 21, 2022 19:31
Config I use for Tie Fighter Collectors' CD-ROM on OS X w/ XBox One controller via bluetooth
# Config I use for Tie Fighter Collectors' CD-ROM on OS X w/ XBox One controller via bluetooth (with ISO of CD in path configed below)
# This is the configuration file for DOSBox 0.74-3-3. (Please use the latest version of DOSBox)
# Lines starting with a # are comment lines and are ignored by DOSBox.
# They are used to (briefly) document the effect of each option.
[sdl]
# fullscreen: Start dosbox directly in fullscreen. (Press ALT-Enter to go back)
# fulldouble: Use double buffering in fullscreen. It can reduce screen flickering, but it can also result in a slow DOSBox.
# fullresolution: What resolution to use for fullscreen: original, desktop or fixed size (e.g. 1024x768).

Keybase proof

I hereby claim:

  • I am ericsmalling on github.
  • I am esmalling (https://keybase.io/esmalling) on keybase.
  • I have a public key ASDOlnon9xZo99ocLFOyoG0LQTiaRJ_-ggEcsHYlImD3-Ao

To claim this, I am signing this object:

@ericsmalling
ericsmalling / gist:f34c3bec8e461e167601
Created December 11, 2014 17:25
Vagrant + Puppet facter variable question
Vagrantfile:
...
config.vm.provision "puppet" do |puppet|
puppet.module_path = "modules"
puppet.facter = {
'vpnUsername' => VPN_USERNAME,
'vpnPassword' => VPN_PASSWORD
}
puppet.options = "--verbose --debug"
end