Skip to content

Instantly share code, notes, and snippets.

@bfritscher
bfritscher / index.html
Created April 9, 2015 09:37
JS Bin test description // source http://jsbin.com/fosaxo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="test description">
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
@bfritscher
bfritscher / echo.php
Created October 1, 2014 13:06
php service that shows headers of POST and GET
<?php
function keyArrayToLi($key, $array){
return keyValOrArrayToLi($key, isset($array[$key]) ? $array[$key] : "");
}
function keyValOrArrayToLi($key, $val, $escape_key=true, $escape_val=true){
if(is_array($val)){
$html = "";
foreach($val as $sub_val){
import os
import sys
import subprocess
import xml.etree.ElementTree as ET
import glob
ZBAR = ".\\lib\\ZBar\\bin\\zbarimg.exe"
SEJA = ".\\lib\\sejda-console-1.0.0.M9\\bin\\sejda-console.bat"
WORKING_DIR = ".\\split\\"
<?php
Class PubliBike {
const ONLINE = 1;
const OFFLINE = 3;
const CONSTRUCTION = 0;
const CACHE_FILE = "/home/www/804dba0db44da871b3b97d6441c7ff89/web/getvelo/cache";
public function getNetworks(){
$networks = $this->cache_fetch();
if(!$networks){
@bfritscher
bfritscher / index.html
Created December 23, 2013 12:25
Bici svg visualization
<html>
<head>
<title>Bici Visual</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.svg.pack.js"></script>
<script type="text/javascript" src="jquery.svgdom.pack.js"></script>
<script type="text/javascript" src="main.js"></script>
<style type="text/css">
.hidden{
visibility:hidden;
@bfritscher
bfritscher / check_wp_versions.php
Created December 22, 2013 17:09
Nagios check plugin for wordpress
#!/usr/bin/env php
<?php
/**
source: http://www.monitoringexchange.org/inventory/Check-Plugins/Software/HTTP-%2526-FTP/Check-Wordpress-Versions
modified by: Boris Fritscher
**/
if($argc != 2) {
print "usage: check_wp_versions.php <path to wp installation>\n";
exit(1);