Skip to content

Instantly share code, notes, and snippets.

@stefan-wolfsheimer
stefan-wolfsheimer / irods_password_obfuscation.py
Last active November 25, 2020 10:49
irods password obfuscation with python
#!/usr/bin/env python3
# ######################################################
# irods password obfuscation on system without icommands
#
# Usage:
# 1. install irods python client with
# pip3 install python-irodsclient
# (see https://github.com/irods/python-irodsclient )
# 2. execute script
#
@stefan-wolfsheimer
stefan-wolfsheimer / Socket-C++.md
Created November 1, 2019 10:45
Socket programming pattern C++

Makefile

CPP=g++ -std=c++14

all:server client
	echo "ok"

server: server.cpp config.h socket.o 
	${CPP} server.cpp socket.o -o server
@stefan-wolfsheimer
stefan-wolfsheimer / move.cpp
Created January 13, 2019 16:52
C++ move semantics in a nutshell
#include <iostream>
#include <string>
using namespace std;
class A
{
public:
A(const string & a) : value(a)
{