Skip to content

Instantly share code, notes, and snippets.

View nhitze's full-sized avatar

Nils Hitze nhitze

View GitHub Profile
@nhitze
nhitze / monit
Created August 8, 2017 08:40 — forked from rahul286/monit
Monit
#!/bin/sh
# move this file to /etc/init.d/monit
### BEGIN INIT INFO
# Provides: monit
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start: $all
# Should-Stop: $all

Keybase proof

I hereby claim:

  • I am nhitze on github.
  • I am kojote (https://keybase.io/kojote) on keybase.
  • I have a public key whose fingerprint is 9AA6 A245 25D1 AC75 9BF8 9E92 7634 6298 8CF6 29B5

To claim this, I am signing this object:

Verifying that +kojote is my blockchain ID. https://onename.com/kojote
@nhitze
nhitze / thingieverse.categories.xml
Created June 13, 2012 15:04
YQL Thingieverse Table for Categories
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Nils Hitze</author>
<documentationURL>http://silberkind.de/+</documentationURL>
<sampleQuery>select * from {table} where category='toys-and-games'</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="XML">
<urls>
@nhitze
nhitze / gtug-chapter-event.xml
Created March 22, 2011 15:00
extracting Data from a GTUGs.org Directory Page
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Nils Hitze</author>
<description>extracting Data from a GTUGs.org Directory Page</description>
<documentationURL>http://munich.gtugs.org</documentationURL>
<sampleQuery>SELECT * FROM {table} WHERE chapter_id=1011</sampleQuery>
</meta>
<bindings>
<select itemPath="" produces="JSON">
{"chapters":[{"id":7,"status":"active","website":"http://www.sp-gtug.org/","name":"SP-GTUG","longitude":-46.6388182,"latitude":-23.5489433,"url":"http://www.gtugs.org/chapter.jsp?id=7"},{"id":11,"status":"active","website":"http://guangzhou-gtug.org","name":"Guangzhou GTUG","longitude":114.933553,"latitude":25.829209,"url":"http://www.gtugs.org/chapter.jsp?id=11"},{"id":12,"status":"active","website":"","name":"Shanghai GTUG","longitude":121.472916,"latitude":31.230708,"url":"http://www.gtugs.org/chapter.jsp?id=12"},{"id":13,"status":"active","website":"http://xian-gtug.org","name":"Xi'an GTUG","longitude":108.944265,"latitude":34.26488,"url":"http://www.gtugs.org/chapter.jsp?id=13"},{"id":14,"status":"active","website":"https://sites.google.com/site/duesseldorfgtug/home","name":"Düsseldorf GTUG","longitude":6.7756524,"latitude":51.2249429,"url":"http://www.gtugs.org/chapter.jsp?id=14"},{"id":15,"status":"active","website":"http://www.frankfurt-gtug.org/","name":"Rhein-Main GTUG","longitude":8.6805059,"latit
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Go to Photo Album" height="250" scaling="false" />
<Content type="html">
<![CDATA[
<script src="http://www.gmodules.com/ig/ifr?url=http://code.google.com/apis/kml/embed/embedkmlgadget.xml&amp;up_kml_url=&amp;up_view_mode=earth&amp;up_earth_2d_fallback=1&amp;up_earth_fly_from_space=1&amp;up_earth_show_nav_controls=0&amp;up_earth_show_buildings=1&amp;up_earth_show_terrain=0&amp;up_earth_show_roads=0&amp;up_earth_show_borders=1&amp;up_earth_sphere=earth&amp;up_maps_zoom_out=0&amp;up_maps_default_type=satellite&amp;synd=open&amp;w=700&amp;h=400&amp;title=GTUG+World+Tour&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>
]]>
</Content>
</Module>
@nhitze
nhitze / googlegadget-gtug-directory-list
Created March 18, 2011 14:19
a Gadget for listing all GTUGs from gtugs.org/directory includes using YQL
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="GTUGs Directory Grabber" />
<Content type="html">
<![CDATA[
<div id="content_div"></div>
<script type="text/javascript">