Skip to content

Instantly share code, notes, and snippets.

View jfrazee's full-sized avatar

Joey jfrazee

View GitHub Profile
@jfrazee
jfrazee / fcron.init.sh
Last active August 14, 2021 05:39
fcron init script
#!/bin/sh
# This is based on the cron init script for vixie cron from Ubuntu 20.04 and the
# fcron.init.suse init script included with fcron which are licensed under the
# GPLv2 license.
### BEGIN INIT INFO
# Provides: fcron
# Required-Start: $remote_fs $syslog $time
# Required-Stop: $remote_fs $syslog
@jfrazee
jfrazee / tuple_to_args.scala
Created August 19, 2013 16:37
Convert tuples to scala arguments
// Just an ordinary function
def sum(x: Int, y: Int, z: Int) = x + y + z
// A tuple of arguments
val args = (1, 2, 3)
// Convert the function to a (partial) Function, which has a tupled method
// that takes tuples up to arity 5
(sum _).tupled(args)