Skip to content

Instantly share code, notes, and snippets.

View imod's full-sized avatar

Dominik Bartholdi imod

View GitHub Profile
@imod
imod / gist:1477820
Created December 14, 2011 18:23
missing memory monitor
Dec 14, 2011 7:09:23 PM hudson.node_monitors.AbstractNodeMonitorDescriptor$Record run
WARNING: Failed to monitor master for Free Swap Space
java.io.IOException: No suitable implementation found: os.name=Mac OS X os.arch=x86_64 sun.arch.data.model=64
at org.jvnet.hudson.MemoryMonitor.obtain(MemoryMonitor.java:60)
at org.jvnet.hudson.MemoryMonitor.get(MemoryMonitor.java:31)
at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:103)
at hudson.node_monitors.SwapSpaceMonitor$MonitorTask.call(SwapSpaceMonitor.java:99)
at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:83)
at hudson.node_monitors.SwapSpaceMonitor$1.monitor(SwapSpaceMonitor.java:81)
@imod
imod / gist:1478284
Created December 14, 2011 20:13
mailing
Today on the IRC channel we where discussing some ways we could improve Jenkins' UI.
thirst thoughts which came up where the following:
splitting config to multiple tabs, using more AJAX to update data in the page without reload
make fonts bigger and use less borders
background color changes in different regions to group things together
the handle in the config page that lets you reorder steps is apparently very hard to find
but we are sure there are many more and we would like to have your input and ideas on this.
@imod
imod / gist:1509654
Created December 22, 2011 09:23
runDumbster with web
import java.util.Iterator;
import com.dumbster.smtp.SimpleSmtpServer
import org.mortbay.jetty.Server
import org.mortbay.jetty.servlet.*
import groovy.servlet.*
import javax.servlet.http.*
@Grapes([
2016-03-21T17:18:44.32+0100 [CELL/0] OUT Exit status 0
2016-03-21T17:18:44.33+0100 [API/4] OUT Updated app with guid 7b559f08-44bc-44b3-9435-dd87454b21a0 ({"state"=>"STOPPED"})
2016-03-21T17:18:45.27+0100 [APP/0] OUT Exit status 143
2016-03-21T17:18:45.73+0100 [API/6] OUT Updated app with guid 7b559f08-44bc-44b3-9435-dd87454b21a0 ({"state"=>"STARTED"})
2016-03-21T17:18:45.95+0100 [STG/0] OUT Creating container
2016-03-21T17:18:46.42+0100 [STG/0] OUT Successfully created container
2016-03-21T17:18:46.42+0100 [STG/0] OUT Downloading app package...
2016-03-21T17:18:51.23+0100 [STG/0] OUT Downloaded app package (89.1M)
2016-03-21T17:18:51.23+0100 [STG/0] OUT Downloading build artifacts cache...
2016-03-21T17:18:53.42+0100 [STG/0] OUT Downloaded build artifacts cache (58.8M)
Archive: yooture.admin.web.war
testing: META-INF/ OK
testing: META-INF/MANIFEST.MF OK
testing: css/ OK
testing: js/ OK
testing: WEB-INF/ OK
testing: WEB-INF/classes/ OK
testing: WEB-INF/classes/yooture/ OK
testing: WEB-INF/classes/yooture/admin/ OK
testing: WEB-INF/classes/yooture/admin/web/ OK
@imod
imod / grid.css
Created November 10, 2017 07:08
column grid in css
.container {
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-gap: 5px;
}
.navigation {
grid-column: span 3;
}
@imod
imod / Scdf2Application.java
Last active September 4, 2019 04:54
failing example of a custom Spring Cloud Dataflow Server
package ch.jobtool.scdf;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.session.SessionAutoConfiguration;
import org.springframework.cloud.common.security.CommonSecurityAutoConfiguration;
import org.springframework.cloud.dataflow.server.EnableDataFlowServer;
@SpringBootApplication(exclude = {
SessionAutoConfiguration.class,
{
"AWSTemplateFormatVersion": "2010-09-09",
"Parameters": {
"HostedZoneName": {
"Description": "The route53 HostedZoneName. For example, 'mydomain.org.' Don't forget the period at the end. (must exist!)",
"Default": "mydomain.net.",
"Type": "String"
},
"Subdomain": {
"Description": "The subdomain of the dns entry. For example, build -> jenkins.mydomain.org, 'build' is the subdomain.",
@imod
imod / custom_domain_with_managed_certificate.tf
Last active September 16, 2020 19:45
A terraform configuration generate a managed certificate and bind it to a custom domain on azure
resource "azurerm_app_service_custom_hostname_binding" "app_domain" {
hostname = "dummy.mydomain.com"
app_service_name = "my_app_name"
resource_group_name = "my_resource_group"
provisioner "local-exec" {
command = "./ensure_cert_for_domain.sh"
environment = {
RG_NAME = azurerm_app_service_custom_hostname_binding.app_domain.resource_group_name
APP_NAME = azurerm_app_service_custom_hostname_binding.app_domain.app_service_name
@imod
imod / shellCommand.ts
Created November 20, 2020 07:26
Pulumi resource to execute a shell command localy
import * as pulumi from "@pulumi/pulumi";
// Use like this:
// var command = "docker ps -a"
// const myResource = new ShellCommand("List Files", {command: command, env: {'FOO': 'bar'}, runAllways: false});
export interface ShellCommandArgs {
uniqueId?: pulumi.Input<string>;
command: pulumi.Input<string>;
env: object;