Skip to content

Instantly share code, notes, and snippets.

Karol Dzitkowski dzitkowskik

  • Poland, Warsaw
Block or report user

Report or block dzitkowskik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dzitkowskik
dzitkowskik / SeleniumGridTutorial.md
Last active Nov 9, 2019
A simple tutorial of using selenium grid in python unittests
View SeleniumGridTutorial.md

Prepare files & libraries

  1. Download selenium standalone server from: http://goo.gl/rQhaxb, Create local folder at ~/selenium and copy or move jar to that path:
$ mkdir ~/selenium
$ cd ~/selenium
$ wget http://goo.gl/rQhaxb
$ mv selenium-server-standalone-2.49.1.jar ~/selenium/
View ramsey_robert.py
def fun(tab, pos, col, depth):
rtab = []
if depth == 9:
return check(tab), rtab
tab.insert(pos, col)
for j in range(depth):
r=0
for i in [1,2,3]:
[ret, rtab] = fun(list(tab), j, i, depth+1)
@dzitkowskik
dzitkowskik / LdapConnect.cs
Last active Jan 23, 2020
How to authenticate user in Ldap / OpenLdap using C# (user: test in domain ghashd.servebeer.com, server on ip 192.168.0.12 port 389)
View LdapConnect.cs
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
View gist:e8e330e24000b06c9fe2
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
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
View lightweight_compresion.cu
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cuda.h>
#define ELEMENTS_COUNT 10
#define DATA_SIZE (ELEMENTS_COUNT * sizeof(storeElement))
struct storeElement
{
You can’t perform that action at this time.