View NotificationService.java
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
/** | |
* | |
* @author Sebastian Sdorra | |
*/ | |
public class NotificationService | |
{ | |
private static final Logger logger = LoggerFactory.getLogger( | |
NotificationService.class); | |
private MailService mailService; |
View ReportContextListener.java
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
@Extension | |
public class ReportContextListener implements ServletContextListener { | |
private final AdministrationContext adminContext; | |
private final SchedulerFactory schedulerFactory; | |
@Inject | |
public ReportContextListener(AdministrationContext adminContext, | |
SchedulerFactory schedulerFactory){ | |
this.adminContext = adminContext; |
View server-config-v1.xml
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
<Arg> | |
<New class="org.eclipse.jetty.http.ssl.SslContextFactory"> | |
<Set name="excludeProtocols"> | |
<Array type="java.lang.String"> | |
<Item>SSLv2Hello</Item> | |
<Item>SSLv3</Item> | |
</Array> | |
</Set> | |
</New> | |
</Arg> |
View docker-sample.sh
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
# run the latest scm-manager version | |
docker run sdorra/scm-manager | |
# expose scm-manager http port | |
docker run -p 8080:8080 sdorra/scm-manager | |
# run a specific scm-manager version | |
# version 1.42 is currently the only available version | |
docker run -p 8080:8080 sdorra/scm-manager:1.42 |
View Listener.java
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
@EagerSingleton | |
public class Listener { | |
@Subsribe | |
public void handleEvent(PostReceiveRepositoryHookEvent event){ | |
// handle event | |
} | |
} |
View adf.html
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
<div> | |
<h3>angular-dashboard-framework</h3> | |
<p>Dashboard framework with Angular.js and Twitter Bootstrap.</p> | |
</div> |
View app.go
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 main | |
import ( | |
"io" | |
"strconv" | |
"time" | |
"github.com/gin-gonic/gin" | |
) |
View keys.go
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
/* | |
* Genarate rsa keys. | |
*/ | |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" |
View App.java
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
public class App { | |
public static void main(String[] args) { | |
Type type = new Type("hg", "Mercurial"); | |
Repository repository = new Repository("42", "scm", type, "SCM-Manager", "SCM-Manager Repository Hosting"); | |
System.out.println(JSON.asString(repository)); | |
System.out.println(JSON.asString(repository, "id", "desc")); | |
System.out.println(JSON.asString(repository, "id", "name", "type", "type.name", "displayName")); | |
} |
View cert.go
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 main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"log" | |
"math/big" |
OlderNewer