Skip to content

Instantly share code, notes, and snippets.

View bmaximenko's full-sized avatar

Bohdan Maksymenko bmaximenko

View GitHub Profile
@tsenger
tsenger / CardDav2GrandstreamXML.py
Created December 20, 2018 08:25
Converter for CardDav phonebook to Grandstream DP720 / DP750 XML phonebook
#Convert CardDav contacts to GrandStream DP720 / DP750 XML phonebook
import vobject
vcf_path = "./contacts.vcf"
xml_path = './xml_contacts.xml'
# phone number: CardDav to Grandstream
map_number_types = {
"work": "Work",
@jtdp
jtdp / xdebug-snippets.js
Last active February 10, 2021 18:57
XDebug Snippets
// From http://www.jetbrains.com/phpstorm/marklets/
// Start XDebug Debug Session
javascript:(function(){document.cookie='XDEBUG_SESSION='+'PHPSTORM'+';path=/;';})()
// Stop XDebug Debug Session
javascript:(function(){document.cookie='XDEBUG_SESSION='+''+';expires=Mon, 05 Jul 2000 00:00:00 GMT;path=/;';})()
// Debug Current Page
javascript:(function(){document.cookie='XDEBUG_SESSION='+'PHPSTORM'+';path=/;';document.location.reload();document.cookie='XDEBUG_SESSION='+''+';expires=Mon, 05 Jul 2000 00:00:00 GMT;path=/;';})()