Skip to content

Instantly share code, notes, and snippets.

@arvindsv
arvindsv / README.md
Created January 3, 2022 10:39
Attempt to recreate GoCD's H2 DB by exporting and importing it

Take a backup of the GoCD DB (and everything else) before attempting this. See the documentation to find out where the DB files are.

NOTE: Make sure the GoCD server is brought down (so that it does not have a lock on the DB) before attempting this.

Risk level: Low, since this works on a copy and you can always put everything back exactly how you found them before. But, that implies that you've kept track of what you've done, carefully.

$ ls
artifacts/  bin/  config/  cruise.war  db/  felix-cache/  lib/  LICENSE  logs/  plugins/  plugins_work/  run/  work/  wrapper/  wrapper-config/
For https://github.com/ashwanthkumar/gocd-slack-build-notifier/issues/95
Built on Adopt OpenJDK 1.8.172-11.
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="115">
<server artifactsdir="artifacts" agentAutoRegisterKey="9e2fa1e1-f534-48db-98c6-a44ef5b9dd1c" webhookSecret="c4d3d5a9-5511-4ebc-8dd9-ccc81355b7ad" commandRepositoryLocation="default" serverId="43141501-63fa-4023-b1e5-9bc08966bfb5" tokenGenerationKey="3aa9edeb-e3c4-43cd-9cc3-5e68aa09b26c">
<security>
<authConfigs>
<authConfig id="jsdajsdask" pluginId="cd.go.authentication.passwordfile">
<property>
<key>PasswordFilePath</key>
<value>config/password.properties</value>
</property>
Manifest-Version: 1.0
Go-Version: 18.11.0-0
ImplementationVersion: 18.11.0-0
Go-Revision: 68ad518659756345f346b74f7aa1cfa9ffd8a501
Implementation-Title: server
Implementation-Version: 18.11.0-0
Source-Compatibility: 1.8
Target-Compatibility: 1.8
Class-Path: file:ModuleWithSomeClass.jar
[info][class,load] opened: /usr/lib/jvm/java-10-openjdk-amd64/lib/modules
@arvindsv
arvindsv / keybase.md
Created July 17, 2016 20:51
keybase.md

Keybase proof

I hereby claim:

  • I am arvindsv on github.
  • I am arvindsv (https://keybase.io/arvindsv) on keybase.
  • I have a public key whose fingerprint is B920 D8A9 77C3 B77A C1A7 E7D9 B017 9C32 92CE F757

To claim this, I am signing this object:

<hr>
<pre><%= checkout_dir = scope[:modification].materialInstance.flyweightName
h(`git --git-dir=../../../pipelines/flyweight/#{checkout_dir}/.git show #{scope[:modification].getRevision()} 2>&1`) %></pre>
@arvindsv
arvindsv / changeStatus.js
Created February 14, 2014 04:47
TamperMonkey script for showing status, on mouseover of stage bar, on the dashboard of ThoughtWorks' Go.
// ==UserScript==
// @name GoShowStatus
// @namespace http://unique.namespace.for.go/
// @version 0.1
// @description Show status on mouseover of stage bar, in ThoughtWorks Go.
// @match http://your.go.server:8153/*
// @copyright 2014, Aravind SV
// ==/UserScript==
(function() {
@arvindsv
arvindsv / changeColors.js
Created February 14, 2014 04:36
TamperMonkey script for changing the colors on the dashboard of ThoughtWorks' Go
// ==UserScript==
// @name GoChangeColor
// @namespace http://unique.namespace.for.go/
// @version 0.1
// @description Change default colors in ThoughtWorks Go.
// @match http://your.go.server:8153/*
// @copyright 2014, Aravind SV
// ==/UserScript==
(function() {