Skip to content

Instantly share code, notes, and snippets.

View palikar's full-sized avatar
🙃
Develpoing

Stanislav Arnaudov palikar

🙃
Develpoing
  • Karlsruhe, Germnay
View GitHub Profile
@rofirrim
rofirrim / minipool.hpp
Last active March 7, 2022 10:14
Very simple memory pool
#ifndef MINIPOOL_H
#define MINIPOOL_H
#include <cassert>
#include <cstddef>
#include <memory>
#include <new>
#include <utility>
/*
@kissge
kissge / emacs26.sh
Created December 3, 2017 13:24
Compile Emacs 26 on Ubuntu 16.04 on Windows Subsystem for Linux (WSL, aka Bash on Ubuntu on Windows)
mkdir emacs
cd emacs
git init
git remote add origin https://github.com/emacs-mirror/emacs.git
git fetch --depth 1 origin emacs-26
git reset --hard FETCH_HEAD
sudo apt install autoconf make gcc texinfo libgtk-3-dev libxpm-dev libjpeg-dev libgif-dev libtiff5-dev libgnutls-dev libncurses5-dev
./configure
make
sudo make install
@ndrplz
ndrplz / opencv_skin_segmentation.cpp
Created November 1, 2017 08:45
Simple hand segmentation from the webcam streaming.
#include <opencv2\opencv.hpp>
using namespace cv;
using std::cout;
/*--------------- SKIN SEGMENTATION ---------------*/
int main () {
VideoCapture cap(0);
if(!cap.isOpened())
@dreikanter
dreikanter / encrypt_openssl.md
Last active June 20, 2024 10:15 — forked from crazybyte/encrypt_openssl.txt
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@F43nd1r
F43nd1r / webinscribe2ics.js
Last active October 22, 2017 10:13 — forked from phiresky/compiled
Export ICS file from KIT Webinscribe. Paste into web console
var today = new Date();
var date = prompt("Datum des Montags in der ersten Tutorienwoche (Format TT.MM.JJJJ)",('0' + today.getDate()).slice(-2)+"."+('0' + (today.getMonth()+1)).slice(-2)+"."+today.getFullYear());
var count = prompt("Anzahl der Wiederholungen","13");
if(date != null && count != null) {
var temp = date.split(".");
var year = temp[2];
var month = temp[1];
var day = parseInt(temp[0]);
var out = "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//phiresky.de//tools\n";
var t = $("table.piTable>tbody").children;
@pgorczak
pgorczak / imgmatrix.py
Last active March 21, 2023 16:48
Arrange images of equal dimensions in a grid, using Python and OpenCV.
#! /usr/bin/env python
import argparse
import itertools
import cv2
import numpy as np
if __name__=='__main__':
parser = argparse.ArgumentParser(
@christophercrouzet
christophercrouzet / multidimensionalarray.h
Last active November 30, 2018 12:35
Nested initializer lists for multidimensional arrays in C++11.
#ifndef MULTIDIMENSIONALARRAY_H
#define MULTIDIMENSIONALARRAY_H
#include <array>
#include <cstddef>
#include <type_traits>
// https://github.com/christophercrouzet/m3ta
#include <m3ta/nestedinitializerlists>
#include <m3ta/pass>
@Fonserbc
Fonserbc / Easing.cs
Last active June 16, 2024 23:00
Compact and simple easing functions for Unity
using UnityEngine;
/*
* Most functions taken from Tween.js - Licensed under the MIT license
* at https://github.com/sole/tween.js
* Quadratic.Bezier by @fonserbc - Licensed under WTFPL license
*/
public delegate float EasingFunction(float k);
public class Easing
@fd0
fd0 / gist:6951577
Created October 12, 2013 15:54
i3 multi monitor config snippet
# assign workspaces to screens
workspace 1 output DVI-I-1
workspace 2 output DVI-I-1
workspace 3 output DVI-I-1
workspace 4 output DVI-I-1
workspace 5 output DVI-I-1
workspace 6 output HDMI-0
workspace 7 output HDMI-0
workspace 8 output HDMI-0
workspace 9 output HDMI-0
@crazybyte
crazybyte / encrypt_openssl.txt
Created November 25, 2012 10:10
File encryption using OpenSSL
For symmetic encryption, you can use the following:
To encrypt:
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt
To decrypt:
openssl aes-256-cbc -salt -a -d -in encrypted.txt -out plaintext.txt
For Asymmetric encryption you must first generate your private key and extract the public key.