Skip to content

Instantly share code, notes, and snippets.

@tim-jansen
tim-jansen / import_confluence.py
Created August 18, 2013 19:40
Script to bulk import textile files into Confluence Wiki. Very useful to convert a redmine wiki to Confluence. To export redmine wiki pages to textile you can use http://stbuehler.de/blog/article/2011/06/04/exporting_redmine_wiki_pages.html We used this and "https://bitbucket.org/simbtecnologia/github-to-jira" to migrate from github/redmine tool…
"""
Script to import multiple directories with textile files into Confluence Wikis. Can be used with OnDemand instances.
To use as redmine migration tool, you need to export wiki pages in textile format. One way is described in: http://stbuehler.de/blog/article/2011/06/04/exporting_redmine_wiki_pages.html
~/redmine $ RAILS_ENV=production ./script/console -s
def export_text(p)
c = p.content_for_version(nil)
require 'octokit'
require 'csv'
require 'date'
# Description:
# Exports Github issues from one or more repos into CSV file formatted for import into JIRA
# Note: By default, all Github comments will be assigned to the JIRA admin, appended with
# a note indicating the Github user who added the comment (since you may not have JIRA users
# created for all your Github users, especially if it is a public/open-source project:
#
@tim-jansen
tim-jansen / buildbot_flowdock_integration_main_cfg.py
Last active December 11, 2015 12:08
Pushes buildbot start and stop builds to a Flowdock room.
# Buildbot main.cfg configuration for Flowdock Alerts
#
# Copyright © 2013 SIMB Tecnnologia
# Licensed under the terms of the MIT License
# See http://www.opensource.org/licenses/mit-license.php for details
#
from buildbot.status.base import StatusReceiverMultiService
from buildbot.status.results import SUCCESS, WARNINGS, FAILURE, EXCEPTION, RETRY
from twisted.web import client
@tim-jansen
tim-jansen / xen_vms_backup.sh
Created January 22, 2013 21:26
Create backup for all Citrix Xen vms using temporary snapshots, and upload to a CIFS Share. VMs are compressed using gzip.
#/bin/sh
#
# Script to backup all vms in a Xen Server, to a CIFS Share
#
# Copyright (C) 2011 SIMB Tecnologia Ltda
# Based on post from Amador Pahim: <http://olamundo.org/posts/xenserver-backup-automatico-de-vms>
#
# This is free software, licensed under the GNU General Public License v2.
# See www.gnu.org for more information.