Skip to content

Instantly share code, notes, and snippets.

package main
import (
"os"
"os/exec"
"fmt"
"net"
"io"
"time"
@johanneswuerbach
johanneswuerbach / gist:a0de3f5fced04ea545c4
Created October 28, 2014 22:12
fleetctl journal -f deis-builder.service
-- Logs begin at Mon 2014-10-20 19:00:49 UTC. --
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [bc258e8a] -job acceptconnections() = OK (0)
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [info] GET /v1.15/images/progrium/cedarish/history
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [bc258e8a] +job history(progrium/cedarish)
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: No such id: progrium/cedarish
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [bc258e8a] -job history(progrium/cedarish) = ERR (1)
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [error] server.go:1207 Handler for GET /images/{name:.*}/history returned error: No such id: progrium/cedarish
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: [error] server.go:110 HTTP Error: statusCode=404 No such id: progrium/cedarish
Oct 28 22:02:11 ip-10-21-2-187.ec2.internal sh[3649]: Loading cedarish...
Oct 28 22:02:12 ip-10-21-2-187.ec2.internal sh[3649]: [info] POST /v1.15/images/load
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
@johanneswuerbach
johanneswuerbach / sauce_connect_setup.sh
Last active August 29, 2015 14:13 — forked from santiycr/sauce_connect_setup.sh
Setup a Sauce Connect 3 tunnel
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
@johanneswuerbach
johanneswuerbach / sauce-connect.sh
Last active August 29, 2015 14:16
connect test
#!/bin/bash
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then
echo "This script can't run without your Sauce credentials"
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables"
echo "export SAUCE_USERNAME=ur-username"
echo "export SAUCE_ACCESS_KEY=ur-access-key"
exit 1
fi
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)"
<?php
echo "hallo welt";
?>
function getOpenXBannerCode(oXZones,plingaApi) {
var oXLoc=(location.protocol=='https:'?'https':'http') + "://lbopx.plinga.de/www/delivery/spc.php";
var oXZoneIds ='';
$.each(oXZones, function(key, value) {
oXZoneIds += escape(key+'=' + value + "|");
});
oXLoc += "?zones="+oXZoneIds;
oXLoc += (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
var OA_output = new Array();
OA_output['applifier_bar'] = '';
OA_output['applifier_bar'] += "<"+"div id=\'ox_789690cfb745a99a6d31e30dec8311b2\' style=\'display: inline;\'><"+"img src=\'https://lbopx.plinga.de/www/images/1x1.gif\' alt=\'\' title=\'\' border=\'0\' /><"+"/div>\n";
OA_output['applifier_bar'] += "<"+"script type=\'text/javascript\'><"+"!--// <"+"![CDATA[\n";
OA_output['applifier_bar'] += "var ox_swf = new FlashObject(\'https://plopx.s3.amazonaws.com/120301_FB_FF_120x520_ag.swf\', \'Advertisement\', \'120\', \'520\', \'4\');\n";
OA_output['applifier_bar'] += "ox_swf.addParam(\'allowScriptAccess\',\'always\');\n";
OA_output['applifier_bar'] += "ox_swf.write(\'ox_789690cfb745a99a6d31e30dec8311b2\');\n";
OA_output['applifier_bar'] += "if (ox_swf.installedVer.versionIsValid(ox_swf.getAttribute(\'version\'))) { document.write(\"<"+"div id=\'beacon_4aeeb2a197\' style=\'position: absolute; left: 0px; top: 0px; visibility: hidden;\'><"+"img src=\'https://lbopx.plinga.de/www/delivery/lg.php?bannerid=5473&a
@johanneswuerbach
johanneswuerbach / confixx-backup.php
Created May 7, 2012 08:27
Start Confixx backups
<?php
// Start Confixx backups
// Created by Johannes Würbach
// http://nerd20.de
/* SETTINGS */
$confixx_user = "web123"; // Your username
$confixx_password = "your_password"; // Your password
$confixx_host = "your_host"; // Host of your confixx installation
@johanneswuerbach
johanneswuerbach / dvd_fix.rb
Created October 15, 2012 19:32
Fix OS X DVD Playback
#!/usr/bin/env ruby
#
# Forked from http://pastebin.com/WpRpaLAn
require 'fileutils'
# Settings
dvdLibPath = "/System/Library/Frameworks/DVDPlayback.framework/Versions/A/DVDPlayback"
search = "Internal"
replace = "External"