Skip to content

Instantly share code, notes, and snippets.

View frastel's full-sized avatar

Frank Stelzer frastel

View GitHub Profile
@frastel
frastel / build-lock.xml
Created February 20, 2013 09:42
Ant target for executing composer.lock vulnerability check provided by SensioLabs https://security.sensiolabs.org without using the CLI command. The command "ant lock_check" will do everything you need for this check. The definition assumes existing folder structure from http://jenkins-php.org/, you may want to modify those paths.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Project-name-here" default="build" basedir=".">
<target name="lock_check" description="Checks for vulnerabilities through a SensioLabs web service"
depends="lock_reset,lock_get,lock_show">
<local name="vulnerabilities.clean"/>
<loadfile property="vulnerabilities.clean"
srcfile="${basedir}/build/logs/check_lock.log">
<filterchain>
@frastel
frastel / acl.pp
Created October 1, 2013 08:48
Hacked acl puppet module for adding acl to the main partition of a precise64 vagrant box. This manifest is quite dangerous because you could break your complete box when used in the wrong way.
class acl(
$needle = '/precise64-root',
) {
package { "acl":
ensure => installed,
}
# https://gist.github.com/4595997
exec { "add_fstab_acl":
@frastel
frastel / script.sh
Last active April 11, 2019 07:13
Test Bash
echo "hello world"
touch /tmp/foo