Skip to content

Instantly share code, notes, and snippets.

View lbr88's full-sized avatar

Lars Bo Rasmussen lbr88

  • AiO-IT
  • Taastrup, Denmark
View GitHub Profile
@lbr88
lbr88 / rundeck_executions_cleanup.sh
Created July 27, 2018 08:40 — forked from shamil/rundeck_executions_cleanup.sh
Rundeck executions cleanup
#!/bin/bash
# see related issue: https://github.com/rundeck/rundeck/issues/357
# import vars
source ~/.rd/rd.conf
# make sure rd & jq commands are in the PATH
which -- rd jq >/dev/null || exit 1
del_executions() {
local project=$1
while true; do
@lbr88
lbr88 / timeout.php
Created March 29, 2018 17:30 — forked from avalanche123/timeout.php
timeouts in php
<?php
class TimeoutException extends RuntimeException {}
class Timeout
{
private $active;
public function set($seconds)
{