Skip to content

Instantly share code, notes, and snippets.

@cyroxx
cyroxx / jitsi.md
Last active April 3, 2020 13:00
Install jitsi
@cyroxx
cyroxx / StringMatch.py
Created November 19, 2019 21:50 — forked from black-tea/StringMatch.py
StringMatch: A class for matching one list of strings to another
# Load libraries
import re
import time
import operator
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from scipy.sparse import csr_matrix
import pandas as pd
@cyroxx
cyroxx / README.rst
Last active December 22, 2015 07:29
[JRE] How to extend the list of trusted CAs
[JRE] How to extend the list of trusted CAs in the Java Runtime Environment
or: How to resolve 'SunCertPathBuilderException: unable to find valid certification path to requested target'

Above exception is thrown when you try to open a HTTPS connection to a website whose certificate is not signed by a trusted certificate authority (CA).

What you should do:

  1. Download/Export the CA certificate for the desired website (not the certificate of the website itself).
  2. Open up an administrator shell.
  3. Type the following:
@cyroxx
cyroxx / gen_wsp.py
Created December 19, 2012 08:05
Generator for WinShell project files (.wsp) Copy this into your LaTeX project and run _python gen_wsp.py main_document.tex_. This will create a project file named main_document.wsp that contains the main_document.tex and all other tex files in the same or any subdirectory.
import sys
import os
import string
PREFIX = '.tex'
def main(args):
try:
main_document = args[1] # [1] might be machine-specific
print main_document, '\n'
@cyroxx
cyroxx / XmlCardReader.py
Created March 26, 2012 00:37
Quick and dirty XMLCard parser. Converts the base64-encoded word salad into a human-readable log.
from lxml import etree
from time import *
import base64
TIME_FORMAT = '%d.%m.%y %H:%M'
FILENAME = 'XMLCard.xml'
f = open(FILENAME)
a = etree.parse(f)
@cyroxx
cyroxx / Google_Play_QR_Code.user.js
Created March 12, 2012 14:24
Userscript: Show a QR code in order to easily open up the same page on your mobile device.
// ==UserScript==
// @name Google Play QR Code
// @namespace Google Play
// @description Show a QR code in order to easily open up the same page on your mobile device.
// @include https://play.google.com/store/apps/details?id=*
// ==/UserScript==
(function() {
findxpath = function(root, xpath) {
return document.evaluate(xpath, root, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
}