Skip to content

Instantly share code, notes, and snippets.


Anne Stellingwerf astellingwerf

View GitHub Profile
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.
View pgp-merge-drv
# 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!
astellingwerf /
Created March 29, 2018 16:22 — forked from Simplesmente/
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:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo deb 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
astellingwerf /
Created July 7, 2017 11:35
Change passwords in Remmina in bulk
# Change passwords in Remmina in bulk
# Inspiration:
ret_path=`pwd` && cd ~/.remmina && ls -t `grep -li "username=astellin" *.remmina | xargs grep -l "domain=OPENTEXT"` | grep -m 2 "^.*$" | xargs sed -nr 's/(password=)(.*)/\2/p' | sed -r 's/([\x24\x27-\x2B\x2E\x2F\x3F\x5B-\x5E\x7B\x7C\x7D])/\\\\\1/g' | xargs bash -c 'sed -ri s/$1/$0/ *.remmina' && cd $ret_path
View build.gradle
// 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