Skip to content

Instantly share code, notes, and snippets.

View duhanebel's full-sized avatar

Fabio Gallonetto duhanebel

View GitHub Profile
@duhanebel
duhanebel / fanju_to_influxdb
Created March 28, 2021 18:25
Proxy service that forward everything from/to the fanju weather station, intercepting the local data and uploading it to influxDB
#!/usr/bin/env python
import argparse
import signal
import logging
import select
import socket
import datetime
from time import gmtime, strftime
from influxdb import InfluxDBClient
@duhanebel
duhanebel / gist:3385700
Created August 18, 2012 09:46
Enable/disable wireless on Mountain Lion when eth is connected
#!/bin/bash
#
# This script will turn ON AirPort only if it was turned OFF before
# by this script.
# If AirPort was turned off manually, it will not be automatically enabled
#
AIRPORT=""
@duhanebel
duhanebel / instapaperToYojimbo.rb
Created September 9, 2011 16:07
Instapaper CSV to Yojimbo importer
require 'rubygems'
require 'rss/1.0'
require 'rss/2.0'
require 'open-uri'
require 'appscript'
require 'syslog'
require 'csv'
require 'uri'
include Appscript