Skip to content

Instantly share code, notes, and snippets.

```
name: Dependabot auto-approve Workflow
on: [pull_request, pull_request_target]
permissions:
pull-requests: write
jobs:
Dependabot-Auto-Approve:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
@ewascent
ewascent / Example Testing in Go
Created September 10, 2021 17:21
Example of basic unit test in Golang
// running tests
// go tool test2json -t /tmp/w4vqgd_p/T/GoLand/___go_test_temp_testing_go.test -test.v -test.paniconexit0
// example results
// === RUN TestAddition
// --- PASS: TestAddition (0.00s)
// === RUN TestBadMath
// --- PASS: TestBadMath (0.00s)
// === RUN TestSubtraction
// --- PASS: TestSubtraction (0.00s)
@ewascent
ewascent / ova-gen.sh
Created September 12, 2017 05:14 — forked from rubiojr/ova-gen.sh
Convert VMDK to OVA using VirtualBox
#!/bin/sh
#
# http://jbrazile.blogspot.com.es/2012/01/scripted-vmdkova-images-wboxgrinder-and.html
#
NAME=$1
OS=$2
IMAGE=
SZMB=384
INSTDIR=/tmp/ova-gen/boxes
BUILDDIR=/tmp/ova-gen/builds