Skip to content

Instantly share code, notes, and snippets.

View pzskc383's full-sized avatar

Alexander D. pzskc383

View GitHub Profile
@marcbelmont
marcbelmont / gist:5259298
Created March 28, 2013 00:01
Extract Skype chats / conversations from preferences (main.db file), convert them to html and send them to an email using Gmail stmp.
# -*- coding: utf-8 -*-
"""
Skype database access functionality.
@author Erki Suurjaak
@created 26.11.2011
@modified 07.03.2013
"""
import copy
import csv
@fxposter
fxposter / gist:1301190
Created October 20, 2011 13:51
DO NOT EVER DO THIS AT HOME
Application.Views.Network.RelationControl = (function () {
var view = { events: {} };
var toggleMap = [
[['accept_profile', 'decline_profile'], ['friendship_request_block']],
[[{ post: 'friend_profile' }, { ajaxDelete: 'unfriend_profile' }], ['trust_block', 'distrust_block']],
[[{ post: 'subscribe_profile' }, { ajaxDelete: 'unsubscribe_profile' }], ['subscribe_block', 'unsubscribe_block']],
[['accept_employment', 'decline_employment'], ['employment_request_block']],
[[{'post':'create_employment'}, {'ajaxDelete':'remove_employment'}], ['employment_block']],
[['promote_to', 'demote_from'], ['employment_role_block']]
];
#!/bin/sh
# More correct version in ruby: https://gist.github.com/725094
# Instant timesheet - straight from yo git log!
# ...now with commit times as well
git log --committer=`git config --get user.email` --format="%ad %s" --simplify-merges --date=iso --since="1 week ago" --reverse | uniq -w 11 --all-repeated=prepend | sed "s/^\(.\{11\}\)\(.\{5\}\).\{9\}/\1\2/" | sed "s/^$//;ta;s/^.\{11\}//;bend;:a;n;s/ /\\n===========\\n\\n/;:end" |grep -iv "merge branch"