This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find the modules/folders with highest number of changes | |
git rev-list --objects --all | awk '$2' | sort -k2 | uniq -cf1 | sort -rn | head | |
# find the files with the highest number of changes | |
git rev-list --objects --all | awk '$2' | sort -k2 | uniq -cf1 | sort -rn | | |
while read frequency sample path | |
do | |
[ "blob" == "$(git cat-file -t $sample)" ] && echo "$frequency\t$path"; | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service("blStateService") | |
public class StateServiceImpl implements StateService { | |
@Resource(name="blStateDao") | |
protected StateDao stateDao; | |
public List<State> findStates() { | |
return stateDao.findStates(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service("blActivityStateManager") | |
public class ActivityStateManagerImpl implements ActivityStateManager { | |
private static ActivityStateManager ACTIVITY_STATE_MANAGER; | |
public static ActivityStateManager getStateManager() { | |
return ACTIVITY_STATE_MANAGER; | |
} | |
@PostConstruct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
based on | |
<dependency> | |
<groupId>org.eclipse.jetty</groupId> | |
<artifactId>jetty-runner</artifactId> | |
<version>9.2.3.v20140905</version> | |
</dependency> | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.sample</groupId> | |
<artifactId>testwebserver</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.web; | |
import com.google.common.base.Strings; | |
import com.google.common.net.HttpHeaders; | |
import org.springframework.web.filter.OncePerRequestFilter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn rm https://svn.example.com/myproject/tags/last-successful-ci/mytag -m "Remove existing Test Tag" --no-auth-cache --non-interactive --username eeichinger --password pass1234 | |
svn copy https://svn.example.com/myproject/trunk@246 https://svn.example.com/myproject/tags/last-successful-ci/mytag -m "Test Tag" --no-auth-cache --non-interactive --username eeichinger --password pass1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wrap raw AAC files in MP4 container and copy ID3v2 tags to MP4 metadata. Original files are not touched, new files appear besides them with .m4a extension | |
# requires MP4Box and kid3 (install via homebrew. You may need to install MP4Box manually from http://gpac.wp.mines-telecom.fr/downloads/gpac-nightly-builds/. Homebrew had troubles installing mp4box. The executable is found inside the osmo4.app, see below) | |
# kid3 also has problems with full qualified filepaths as well as spaces in the filenames | |
for fic in Music/**/*.aac | |
do | |
echo processing $fic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh <user>@<server> "tar -cvzf - -C /home/jenkins/ . --exclude 'maven-repositories' --exclude 'jobs/*/builds' --exclude 'backup' --exclude 'workspace' " > jenkins_backup.tar.gz |