Skip to content

Instantly share code, notes, and snippets.

Avatar

Anne Stellingwerf astellingwerf

View GitHub Profile
@astellingwerf
astellingwerf / pgp-merge-drv
Created Jun 21, 2021 — forked from ewa/pgp-merge-drv
Git merge driver to decrypt (and re-encrypt) files before merging.
View pgp-merge-drv
#!/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
View install-docker-mint.sh
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 / bulk-change-remmina-passwords.sh
Created Jul 7, 2017
Change passwords in Remmina in bulk
View bulk-change-remmina-passwords.sh
# 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
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
}