Skip to content

Instantly share code, notes, and snippets.

View rlsit's full-sized avatar

Rosa-Luxemburg-Stiftung Gesellschaftsanalyse und politische Bildung e. V. rlsit

View GitHub Profile
@rlsit
rlsit / jira2confluence.js
Last active June 2, 2019 19:25
our own crutchy solution for https://jira.atlassian.com/browse/JSDSERVER-170 linking a additional confluence space into jira issues
//
// a hackish way to link a additional confluence space into jira issues
// if you like to use this, pls search for all TODO tags and adjust at least these to your needs
//
// requires: js-combinatorics
//
// I publish this code snippet in the hope someone might find it useful and with the express note:
// * no warranty
// * use at your own risk
// * ugly code combined with cerebral diarrhea: you might risk to vomit
@rlsit
rlsit / ipsec.pl
Created January 4, 2018 12:43
sophos SG restart stalled ipsec tunnels
#! /usr/bin/perl -w
use strict;
use warnings;
use Astaro::ConfdPlRPC;
use Data::Dumper;
use Try::Tiny;
my $restartall = 0;
@rlsit
rlsit / sophosUnusedObjects.rb
Last active January 4, 2018 12:49 — forked from zerwes/sophosUnusedObjects.rb
list unused objects on a sophos SG via rest api
#! /usr/bin/env ruby
require 'sophos/sg/rest'
require "resolv"
client = Sophos::SG::REST::Client.new(
'https://$RESTAPIUSER:$TOKEN@$URL:$PORT/api/',
fingerprint: '$CERTHASH')
typelist = ['host', 'group', 'network', 'range']