Skip to content

Instantly share code, notes, and snippets.

View dzitkowskik's full-sized avatar

Karol Dzitkowski dzitkowskik

View GitHub Profile
dzitkowskik /
Last active March 19, 2024 10:29
A simple tutorial of using selenium grid in python unittests

Prepare files & libraries

  1. Download selenium standalone server from:, Create local folder at ~/selenium and copy or move jar to that path:
$ mkdir ~/selenium
$ cd ~/selenium
$ wget
$ mv selenium-server-standalone-2.49.1.jar ~/selenium/
def fun(tab, pos, col, depth):
rtab = []
if depth == 9:
return check(tab), rtab
tab.insert(pos, col)
for j in range(depth):
for i in [1,2,3]:
[ret, rtab] = fun(list(tab), j, i, depth+1)
dzitkowskik / LdapConnect.cs
Last active January 11, 2024 09:07
How to authenticate user in Ldap / OpenLdap using C# (user: test in domain, server on ip port 389)
using System;
using System.Net;
using System.DirectoryServices;
using System.DirectoryServices.Protocols;
using System.Security.Permissions;
namespace LdapConnection
[DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true)]
public class LdapConnect
Compiling Log4cplus with automake using ./configure and make i got an error as below:
...@...:~/tmp/log4cplus$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/.../tmp/log4cplus/missing aclocal-1.15 -I m4
/home/.../tmp/log4cplus/missing: linia 81: aclocal-1.15: nie znaleziono polecenia
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'' or m4 files included by ''.
The 'aclocal' program is part of the GNU Automake package:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cuda.h>
#define DATA_SIZE (ELEMENTS_COUNT * sizeof(storeElement))
struct storeElement