Skip to content

Instantly share code, notes, and snippets.

View noqcks's full-sized avatar
🏠
Working from home

Benji Visser noqcks

🏠
Working from home
View GitHub Profile
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v7.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v7.0": {
"MyWebApp/1.0.0": {
"dependencies": {
@noqcks
noqcks / gist:87a683727f472b58cf8822e95cbca4ad
Created September 9, 2023 19:50
projects.assets.json
{
"version": 3,
"targets": {
"net7.0": {
"Microsoft.AspNetCore.Authentication.Abstractions/2.2.0": {
"type": "package",
"dependencies": {
"Microsoft.AspNetCore.Http.Abstractions": "2.2.0",
"Microsoft.Extensions.Logging.Abstractions": "2.2.0",
"Microsoft.Extensions.Options": "2.2.0"
@noqcks
noqcks / sbom.json
Created July 21, 2023 04:54
sbom.json
This file has been truncated, but you can view the full file.
{
"$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json",
"bomFormat": "CycloneDX",
"specVersion": "1.4",
"serialNumber": "urn:uuid:36ded7b4-8fa9-4caf-8b47-507c0acd6751",
"version": 1,
"metadata": {
"timestamp": "2023-07-20T21:53:19-07:00",
"tools": [
{
@noqcks
noqcks / o.json
Created March 11, 2023 18:14
syft v0.74.0 - python:3.4
This file has been truncated, but you can view the full file.
{
"artifacts": [
{
"id": "55b15606ad877995",
"name": "adduser",
"version": "3.115",
"type": "deb",
"foundBy": "dpkgdb-cataloger",
"locations": [
{
@noqcks
noqcks / o.json
Created March 11, 2023 18:12
syft v0.74.1 - python:3.4
This file has been truncated, but you can view the full file.
{
"artifacts": [
{
"id": "55b15606ad877995",
"name": "adduser",
"version": "3.115",
"type": "deb",
"foundBy": "dpkgdb-cataloger",
"locations": [
{
#!/bin/sh
sudo apt-get -y install awscli
export AWS_DEFAULT_REGION=$( curl -s http://169.254.169.254/latest/meta-data/placement/region )
EFS_ID=$( aws ssm get-parameter --name dev_efs_id --output text --query 'Parameter.Value' )
ACCESS_POINT_DATA=$( aws ssm get-parameter --name dev_efs_data_ap --output text --query 'Parameter.Value' )
EFS_MOUNT_AZ=$( aws ssm get-parameter --name dev_efs_az --output text --query 'Parameter.Value' )
IP_ALLOC_ID=$( aws ssm get-parameter --name dev_ip_allocation_id --output text --query 'Parameter.Value' )
SSH_PUBLIC_KEY=$( aws ssm get-parameter --name dev_ssh_key --output text --query 'Parameter.Value' )
@noqcks
noqcks / README.md
Created May 26, 2022 13:25
Add growl notifications when a long running command fails or succeeds
  1. Add this to your .rc file
preexec () {
   (( $#_elapsed > 1000 )) && set -A _elapsed $_elapsed[-1000,-1]
   typeset -ig _start=SECONDS
}

# Notify about long running commands
function precmd() {
{"test":"cool"}
@noqcks
noqcks / decrypt.sh
Last active January 6, 2019 19:59
This is a script to be added to a Docker ENTRYPOINT for secret decryption using ejson-kms.
#!/bin/sh
# This is a secret decryption script that will decrypt ejson-kms secrets and
# export them to the shell environment.
#
# It expects two sane defaults:
# 1. That $ENV has been set already, so that we know which environment we're in
# and what secrets to export.
# 2. That the location of your secrets are either relative at
# _infra/secrets/$ENV.json or absolutely located at /opt/_infra/secrets/$ENV.json.
@noqcks
noqcks / ejson2env
Last active December 24, 2018 17:43
This file has been truncated, but you can view the full file.