Skip to content

Instantly share code, notes, and snippets.

View manuelgruber's full-sized avatar

Manuel manuelgruber

View GitHub Profile
@czekaj
czekaj / Synology-find-too-long-filenames.sh
Created February 23, 2019 00:37
Synology NAS has filename limits for encrypted shares. If the name of a file has more than 143 characters it will fail the write operation. This short script will let you find all these files.
#!/bin/bash
find . -maxdepth 15 | perl -nle'print if m{\/[^\/]{143,}[^\/]}'
@katemonkeys
katemonkeys / gist:e17580777b57915f5068
Last active April 28, 2024 02:09
Everything Wrong With The Withings API

Top Six Things You Need To Know About The Withings API*

*where “you” is probably a developer, or at least a strange user

I should preface this by saying that I got a Withings Smart Body Analyzer for Christmas last year and I’ve been generally happy with it. It purports to be able to take my heart rate through my bare feet and that seems not to work for my physiology, but overall I’m a fan. If if their Wikipedia page is to be believed they are having a pretty rad impact on making the Quantified Self movement more for normal people and they only have 20 full time employees. Also they try hard to use SI units, which I can get behind. Anyway, on to the rant.

I originally called this post “Everything wrong with the Withings API” and I meant it. For every useful field I can extract from their “award winning” app, I have spent an hour screaming at the inconsistencies in their implementation or inexplicable holes in their data

@stuartwakefield
stuartwakefield / yml2json.rb
Last active November 4, 2015 11:05
Ruby script pipe YML files through to convert them to JSON
#!/usr/bin/env ruby
# Simple usage
# yml2json < my.yml > my.json
require 'yaml'
require 'json'
puts JSON.pretty_generate(YAML.load(ARGF.read))