Skip to content

Instantly share code, notes, and snippets.

View jarekdziedzic's full-sized avatar

Jarek Dziedzic jarekdziedzic

  • Kraków, Poland
View GitHub Profile
# multi monitor workspaces:
gsettings set org.gnome.shell.overrides workspaces-only-on-primary false
# kill se linux for good
edit /etc/selinux/config
@jarekdziedzic
jarekdziedzic / lambda_witchcraft.cpp
Last active November 10, 2015 11:37
Lambda std function witchcraft
#include <iostream>
#include <functional>
using namespace std;
template<typename T> struct memfn_ptr_to_fn_ptr { };
template<typename C, typename R, typename... A>
struct memfn_ptr_to_fn_ptr<R(C::*)(A...)> { using type = R(A...); };
template<typename C, typename R, typename... A>
struct memfn_ptr_to_fn_ptr<R(C::*)(A...) const> { using type = R(A...); };
https://github.com/thibauts/node-castv2 <- cast v2 implementation in nodejs. Client OK, server fails on authentication
https://github.com/thibauts/node-castv2/issues/2 <- problem description of receiver authentication
https://chromium.googlesource.com/chromium/chromium/+/8a6c33a47fa2986cfce9895829246f366804883e/chrome/browser/extensions/api/cast_channel/cast_auth_util.h
<- Google cast plugin to chromium, probably part of what we're supposed to get from google
https://chromium.googlesource.com/chromium/chromium/+/8a6c33a47fa2986cfce9895829246f366804883e/chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc
<- authentication of receivers in cast plugin to chromium. Reason why we need google blessing to have any form of receiver
https://github.com/dz0ny/leapcast
https://github.com/EiNSTeiN-/chromecast-widevine-tools - CA API
#Generate part of configuration.xml in netbeans project that defines include paths.
echo -e "<ccTool>\n\t<incDir>\n"; for i in `find . -name include | cut -c 3- - `; do echo -e "\t\t<pElem>$i</pElem>";done; echo -e "\t</incDir>\n</ccTool>\n";
#breakpoint in the code:
import ipdb; ipdb.set_trace()
#print local variable names:
locals().keys()