security dump-keychain -d login.keychain > keychain.txt
-- account : username
-- data : password
case class Channel(name: String,
deviceIds: List[String])
object Channel {
def copy(c: Channel, newDevicesIds: List[String]) = c.copy(deviceIds = if(c.deviceIds == newDevicesIds) c.deviceIds else c.deviceIds ::: newDevicesIds)
}
def mergeDevices(channels: List[Channel]): Channel = { channels.foldLeft(channels.head) ((r, c) => Channel.copy(r, c.deviceIds)) }
OlderNewer