Skip to content

Instantly share code, notes, and snippets.

View bkbilly's full-sized avatar
🎃
Let's Build a Better World Together

Vasilis Koulis bkbilly

🎃
Let's Build a Better World Together
View GitHub Profile
@bkbilly
bkbilly / vcard_skidoosh.rb
Created October 18, 2016 17:35 — forked from rmm5t/vcard_skidoosh.rb
vCards -> Asterisk commands for improved caller id
#!/usr/bin/env ruby
# usage: ruby vcard_skidoosh.rb vcard.vcf
# outputs a bunch of asterisk commands to stdout.
# taste it.
# Tested for VCARD version 2.1 & 3.0
ARGV.collect{ |f| open(f).readlines }.flatten.each do |line|
if line =~ /^N:(.*)$/
$name = $1.chomp