Skip to content

Instantly share code, notes, and snippets.

View astellingwerf's full-sized avatar

Anne Stellingwerf astellingwerf

View GitHub Profile
// 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
}
@astellingwerf
astellingwerf / bulk-change-remmina-passwords.sh
Created July 7, 2017 11:35
Change passwords in Remmina in bulk
# Change passwords in Remmina in bulk
# Inspiration: https://community.spiceworks.com/scripts/show/2059-mass-change-of-passwords-in-remmina-profiles
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
@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
@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