Skip to content

Instantly share code, notes, and snippets.

View obrientimothya's full-sized avatar

Timothy O'Brien obrientimothya

  • CodeBigger
  • Australia
View GitHub Profile
@obrientimothya
obrientimothya / testapp-install-tmux
Created December 20, 2017 14:56
Testapp install tmux
sudo yum install tmux
@obrientimothya
obrientimothya / Gemfile
Created December 20, 2017 15:01
Testapp Install Guard
# --- snip
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'guard'
gem 'guard-rspec'
@obrientimothya
obrientimothya / testapp-install-guard
Created December 20, 2017 15:04
Testapp init guard
bundle install
guard init
@obrientimothya
obrientimothya / .vimrc
Created July 6, 2019 23:07
vim-plug base
" vim-plug
call plug#begin('~/.vim/plugged')
" plugin section
" end vim-plug
call plug#end()
@obrientimothya
obrientimothya / .vimrc
Created July 6, 2019 23:31
vim-plug React, Javascript and Typescript
" vim-plug
call plug#begin('~/.vim/plugged')
" plugin section
Plug 'pangloss/vim-javascript'
Plug 'leafgarland/typescript-vim'
Plug 'maxmellon/vim-jsx-pretty'
" end vim-plug
@obrientimothya
obrientimothya / Dockerfile
Last active August 29, 2021 16:04
secure-docker-image
# The following digest is alpine:3.10.6
# This image has known security issues.
# Therefore, it can be used to test the scan in the GitHub Actions pipeline.
FROM alpine@sha256:abd435b2a549002f78ec235cca4677237e6b8cfa9f7d15a2ea1e644596ff71d2
ARG GOSS_VERSION
ARG TF_VERSION
ARG TFLINT_VERSION
ARG TFSEC_VERSION
@obrientimothya
obrientimothya / docker-compose.yaml
Last active August 29, 2021 13:59
secure-docker-image
version: '3'
services:
hadolint:
image: docker.io/hadolint/hadolint:v2.4.1-alpine
working_dir: /opt/app
volumes:
- .:/opt/app
localbuild:
image: localbuild/${IMAGE_NAME}:latest
@obrientimothya
obrientimothya / .hadolint.yaml
Last active August 29, 2021 14:00
secure-docker-image
ignored:
- DL3059 # Multiple consecutive RUN statements
trustedRegistries:
- docker.io
- ghcr.io
@obrientimothya
obrientimothya / Makefile
Created August 29, 2021 13:51
secure-docker-image
RUNNER = docker-compose run --rm
RUNNER-HADOLINT = $(RUNNER) hadolint
PWD = $(shell pwd)
# check_defined determines if an environment variable is defined
check_defined = \
$(strip $(foreach 1,$1, \
$(call __check_defined,$1,$(strip $(value 2)))))
__check_defined = \
$(if $(value $1),, \
@obrientimothya
obrientimothya / goss.yaml
Created August 29, 2021 13:54
secure-docker-image
# gossfile loads all goss tests from goss.d
gossfile:
./goss.d/*.yaml: {}