I hereby claim:
- I am ramunasd on github.
- I am ramunas (https://keybase.io/ramunas) on keybase.
- I have a public key ASAGGXnFC9bMHJJIlkOFgM_yAafp8ySJlxAaSDnap-RXGgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
error_reporting(-1); | |
ini_set('display_errors', 1); | |
$remote = isset($argv[1]) ? $argv[1] : 'tcp://google.com:80'; | |
$errorString = $errorCode = null; | |
$contextOptions = array(); | |
if (PHP_VERSION_ID >= 70100) { | |
$contextOptions['socket'] = array('tcp_nodelay' => true); |
#!/usr/bin/env bash | |
DATAFILE=${DATAFILE:=data.pbf} | |
echo "----------" | |
echo "Update started: `date +%c`" | |
# update | |
rm change.osc.gz | |
./osmupdate $DATAFILE change.osc.gz > ./log |
#!/usr/bin/env python | |
import os | |
import http.server | |
import socketserver | |
from urllib.parse import urlsplit, parse_qs | |
from PIL import Image | |
class wmsHandler(http.server.BaseHTTPRequestHandler): |
""" | |
Initialize a basic broadcast slave channel for listening to | |
an ANT+ HR monitor. | |
""" | |
import sys | |
import time | |
from ant.core import driver, node, event, message |
<?php | |
$_testStrings = array( | |
'AK' => 'Alaska', 'AZ' => 'Arizona', 'VT' => 'Vermont', | |
'VA' => 'Virginia', 'AZ' => 'West Virginia', | |
); | |
$_testIntegers = array(0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 84, 144,); | |
$_testBooleans = array(TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, TRUE,); | |
<?php | |
/* | |
GlobalMercator - part of Aggregate Map Tools | |
Version 1.0 | |
Copyright (c) 2009 The Bivings Group | |
All rights reserved. | |
Author: John Bafford | |
http://www.bivings.com/ | |
http://bafford.com/softare/aggregate-map-tools/ |
#! /bin/sh | |
################################################################################ | |
# Zabbix extensions (C) 2011-* Joseph Bueno <[email protected]> | |
# Published under GNU General Public License version 2 or later. | |
# See LICENSE.txt | |
#------------------------------------------------------------------------------- | |
# Usage: | |
# zext_msmtp.sh <recipient> <subject> <message> | |
# | |
# Description: |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Net::Jabber; | |
use POSIX qw(strftime); | |
my $recip = shift @ARGV; | |
my $mensaje = join ("\n",@ARGV); |
#!/bin/bash | |
# | |
# Downloads latest OpenStreetMap planet file and creates torrent for it. | |
# Based on http://osm-torrent.torres.voyager.hr/ scripts | |
# | |
# You should edit "WORKDIR=" line, and copy this script in your /etc/cron.daily | |
# | |
DEF_WORKDIR=. # you must change this, if nothing else... | |
DEF_FILE_TYPE=planet # "planet" or "pbfplanet" (or "changesets" for faster testing) |