Skip to content

Instantly share code, notes, and snippets.

View astellingwerf's full-sized avatar

Anne Stellingwerf astellingwerf

View GitHub Profile
@astellingwerf
astellingwerf / pgp-merge-drv
Created June 21, 2021 10:43 — forked from ewa/pgp-merge-drv
Git merge driver to decrypt (and re-encrypt) files before merging.
#!/bin/bash
# WARNING: This creates and manipulates clear text copies of the
# encrypted files. It tries to clean up afterwards, but lots can go
# wrong. If you are seriously worried about the secrecy of the files,
# don't trust this!
ANCESTOR=$1
MINE=$2
OTHER=$3
@astellingwerf
astellingwerf / install-docker-mint.sh
Created March 29, 2018 16:22 — forked from Simplesmente/install-docker-mint.sh
Install docker Linux Mint 18.2
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main >> /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install linux-image-extra-$(uname -r) -y
sudo apt-get install docker-engine cgroup-lite apparmor -y
sudo usermod -a -G docker $USER
sudo service docker start
// Add a new configuration
configurations {
fortify { extendsFrom compile }
}
// pull in the fortify libs for the new configuration
dependencies {
// fortify 'com.fortify:sourceanalyzer:3.90' // Ideally
fortify files('/home/astellin/fortify/HP_Fortify_SCA_and_Apps_4.10/Core/lib/sourceanalyzer.jar') // For now
}