Skip to content

Instantly share code, notes, and snippets.

<?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 / README.markdown
Created May 16, 2012 16:43 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
@johanneswuerbach
johanneswuerbach / test_connection.rb
Created October 15, 2012 19:19
Test database connection
require "mysql"
require "json"
db_host = ""
db_user = ""
db_pass = ""
db_name = ""
# Test database conneciton
requests = 0
@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"
@johanneswuerbach
johanneswuerbach / lazy_extract.rb
Last active October 13, 2015 19:38
Lazy extract rar archives.
#!/usr/bin/env ruby
require "rubygems"
require "thor"
require "pty"
class LazyExtract < Thor
desc "extract archive", "lazy extract an archive"
method_option :password, :aliases => "-p", :desc => "Password for protected archives."
method_option :verbose, :default => false, :aliases => "-v", :desc => "Print unrar output."
@johanneswuerbach
johanneswuerbach / robot.js
Created December 17, 2012 11:37
DeathAng3l2
// Conventions:
// We use angles in degrees in clock-wise fashion
RobotHelpers = {};
MathHelpers = {};
RobotHelpers.cannon_rotation_direction = {};
RobotHelpers.shoot = {};
RobotHelpers.target = {};
RobotHelpers.moving_direction = {};
@johanneswuerbach
johanneswuerbach / gist:4328963
Created December 18, 2012 15:29
webmock trace
/home/ubuntu/payment/vendor/bundle/ruby/1.9.1/gems/webmock-1.9.0/lib/webmock/http_lib_adapters/net_http.rb:250: [BUG] Segmentation fault
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0050 p:0010 s:0214 b:0212 l:000196 d:000211 BLOCK /home/ubuntu/payment/vendor/bundle/ruby/1.9.1/gems/webmock-1.9.0/lib/webmock/http_lib_adapters/net_http.rb:250
c:0049 p:---- s:0208 b:0208 l:000207 d:000207 FINISH
c:0048 p:---- s:0206 b:0206 l:000201 d:000205 IFUNC
c:0047 p:---- s:0204 b:0204 l:000203 d:000203 CFUNC :each
c:0046 p:---- s:0202 b:0202 l:000201 d:000201 CFUNC :inject
c:0045 p:0252 s:0198 b:0197 l:000196 d:000196 METHOD /home/ubuntu/payment/vendor/bundle/ruby/1.9.1/gems/webmock-1.9.0/lib/webmock/http_lib_adapters/net_http.rb:250