Skip to content

Instantly share code, notes, and snippets.

View dzitkowskik's full-sized avatar

Karol Dzitkowski dzitkowskik

View GitHub Profile
#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
{
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>
@dzitkowskik
dzitkowskik / LdapConnect.cs
Last active January 11, 2024 09:07
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)
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
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 / SeleniumGridTutorial.md
Last active May 8, 2024 06:51
A simple tutorial of using selenium grid in python unittests

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/