Skip to content

Instantly share code, notes, and snippets.

View Maddin2Code's full-sized avatar

Martin Rudloff Maddin2Code

  • moebel.de Einrichten & Wohnen GmbH
  • Hamburg, Germany
View GitHub Profile
@dvoiss
dvoiss / podcast-feed-generator.sh
Created March 19, 2012 07:37
Made this for a friend - generates an xml feed for a podcast directory, didn't exactly finish it...reads id3v1 tags (id3v2 requires external libraries), runs applescript to open iTunes and load feed for testing, serves feed over http (iTunes required)
#!/bin/bash
# generate an xml podcast file for a directory of files
#
# I parse id3v1 tags but only for the artist and track title,
# most of the samples did not have reliable meta-data, so the
# file-name is used.
#
# I don't process id3v2 tags because an external library would be needed
# such as id3lib.
@hofmannsven
hofmannsven / README.md
Last active July 16, 2024 01:30
Git CLI Cheatsheet
@markhorrocks
markhorrocks / test_google_sheets_apiV4.rb
Last active July 23, 2024 14:34
Editing Google Sheets with the Google::Apis::SheetsV4 Ruby Client
#! /usr/bin/ruby
require 'google/apis/sheets_v4'
require 'googleauth'
require 'googleauth/stores/file_token_store'
require 'fileutils'
OOB_URI = 'urn:ietf:wg:oauth:2.0:oob'
APPLICATION_NAME = 'Google Sheets API Test'
@sivers
sivers / podcast.rb
Created October 29, 2019 21:30
Podcast RSS generator in Ruby
#!/usr/bin/env ruby
require 'date'
require 'xml'
def htmlit(infile)
lines = File.readlines(infile)
/<!--\s+(.+)\s+-->/.match lines.shift
lines.unshift('<h2>%s</h2>' % $1)
html = ''
lines.each do |line|
@alexdelprete
alexdelprete / nuki_card_callback.yaml
Last active October 14, 2022 17:46
Nuki Card v11.0
######################################
# #
# -= Nuki Card v11.0 =- #
# #
# by #
# @alexdelprete #
# #
# contributions from: #
# @spokin #
# #