Skip to content

Instantly share code, notes, and snippets.

View sbe-arg's full-sized avatar
👨‍💻

Santiago Bernhardt sbe-arg

👨‍💻
View GitHub Profile
name: validator
on:
push:
branches-ignore:
- master
defaults:
run:
@sbe-arg
sbe-arg / gist:b0631957ea6d8419e38b4fafd6ff0c7c
Created September 12, 2023 00:43
oidc-hardened-cloudformation.yml
---
AWSTemplateFormatVersion: 2010-09-09
Description: CI OIDC for account.
Parameters:
GitHubOrg:
Description: Name of GitHub organization/user (case sensitive)
Default: "myorg"
Type: String
RepositoryName:
@sbe-arg
sbe-arg / github-actions-compose-notifier.yaml
Last active February 8, 2023 01:52
Dirty compose scanner that checks if there are new images that require updating, runs weekly
on:
workflow_dispatch: # manual option
jobs:
compose-versions:
name: compose-pincher
runs-on: ubuntu-22.04
timeout-minutes: 3
@sbe-arg
sbe-arg / docker-sonarqube.sh
Last active May 3, 2022 10:17
Docker SonarQube community scanner for local repositories.
#!/bin/bash
# to change password probably advised to nuke container and start fresh?
# the password must be basic as who cares?
SONAR_PASS="newAdminPassword"
SONAR_VERSION="9.3.0"
SONAR_VERSION_TYPE="community"
# fyi sonar community does not support swift so you should use mobsf
# sudo docker run --detach --restart no --name mobsf -p 7000:8000 --add-host host.docker.internal:127.0.0.1 opensecurity/mobile-security-framework-mobsf:latest \ # no auth
@sbe-arg
sbe-arg / podman-wordpress-mariadb.sh
Created March 28, 2022 09:03
Wordpress + MariadDB with podman local development
podman pod create --publish 8080:80 --name demo.wp.1
podman run -d --name wp.db --pod demo.wp.1 \
-e MARIADB_USER=mariadb \
-e MARIADB_PASSWORD=mariadb \
-e MARIADB_ROOT_PASSWORD=mariadb \
docker.io/library/mariadb
podman exec -it wp.db \
mysql -e "CREATE DATABASE wordpress;" --user=root --password=mariadb
@sbe-arg
sbe-arg / keybase.md
Created October 17, 2018 09:25
keybase-santiagob

Keybase proof

I hereby claim:

  • I am sbe-arg on github.
  • I am santiagob (https://keybase.io/santiagob) on keybase.
  • I have a public key ASBKKpq9_8zGqpOjL4BxyO1DmL3hQyyE3SgO-U3xg-JIIAo

To claim this, I am signing this object: