Skip to content

Instantly share code, notes, and snippets.

View basmussen's full-sized avatar

Ben Asmussen basmussen

View GitHub Profile
find . -type d -maxdepth 1 -exec zip -r {}.zip {} \;
find . -type d -maxdepth 1 -exec tar cfvz {}.tar.gz {} \;
@basmussen
basmussen / affirmation
Created March 28, 2015 09:45
MuleSoft Contributor Agreement Acceptance by Ben Asmussen
I, Ben Asmussen, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Sat Mar 28 2015 10:45:10 GMT+0100 (Mitteleuropäische Zeit)
@basmussen
basmussen / resolve_mvn.sh
Created April 15, 2014 20:51
Resolve artifacts from maven repository
#!/bin/bash
# resolve artifacts from maven repository
wget -r -l50 -q -Nc --no-parent -A .jar,.xml,.sha1,.md5 -e robots=off <url>
ProxyPreserveHost on
ProxyPass /artifactory http://localhost:8081/artifactory
RewriteEngine On
RewriteRule ^/$ /artifactory/ [R]
@basmussen
basmussen / settings.xml
Last active January 1, 2016 22:29
Maven Settings XML
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<!-- mirror of * -->
<mirror>
<id>central</id>
<name>Repository name</name>
<url>http://yourhost/path/to/repo</url>
@basmussen
basmussen / install_jenkins_plugins.sh
Created December 30, 2013 14:36
Install Jenkins plugins
#!/bin/bash
host=http://localhost:8080
url=/pluginManager/installNecessaryPlugins
# git plugin https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
curl -X POST -d '<jenkins><install plugin="[email protected]" /></jenkins>' --header 'Content-Type: text/xml' $host$url
# artifactory plugin https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin
curl -X POST -d '<jenkins><install plugin="[email protected]" /></jenkins>' --header 'Content-Type: text/xml' $host$url
@basmussen
basmussen / install_jenkins.sh
Last active January 1, 2016 18:09
Install Jenkins (Debian)
#!/bin/bash
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
echo "deb http://pkg.jenkins-ci.org/debian binary/" >> /etc/apt/sources.list
apt-get update
apt-get -y install jenkins
# scm clients