Skip to content

Instantly share code, notes, and snippets.

View ribtoks's full-sized avatar

Taras ribtoks

View GitHub Profile
<!DOCTYPE html>
<html lang="en-US"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="max-image-preview:large, noindex, follow">
<script id="wc-dependency-detection">(()=>{"use strict";const e=["client/","assets/","build/","vendor/"],n=/\/plugins\/woocommerce\/(client|assets|build|vendor)\//;function t(t,r=""){if(!t)return!1;if(!r)return n.test(t);if(!t.startsWith(r))return!1;const s=t.substring(r.length);for(let n=0;n<e.length;n++)if(s.startsWith(e[n]))return!0;return!1}function r(e){if(!e)return"unknown";const n=e.split("/").pop();if(!n)return"unknown";return n.split("?")[0].split("#")[0]||"unknown"}function s(e,n){return!!e.includes(n+":")||!!e.includes("webpack://")}function i(e){if(!e||"string"!=typeof e)return"v8";const n=e.split("\n");for(let e=0;e<n.length;e++){const t=n[e];if(/@https?:\/\//.test(t))return"spidermonkey";if(/^\s*at\s/.test(t))return"v8"}retu
@ribtoks
ribtoks / index.html
Created March 14, 2026 19:42
Private Captcha Local e2e tutorial (Node.js version)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Private Captcha Example</title>
<style>
body {
display:flex;
flex-direction: column;
min-height: 100vh;
}
@ribtoks
ribtoks / index.html
Last active March 14, 2026 19:41
Private Captcha Local e2e tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<title>Private Captcha Example</title>
<style>
body {
display:flex;
flex-direction: column;
min-height: 100vh;
}
@ribtoks
ribtoks / main.cpp
Created September 6, 2020 18:44
Parent is null for ListView delegate in Qt 5.15
#include <QAbstractListModel>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtGlobal>
#include <QQmlContext>
#include <iostream>
void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) {
QString logLine = qFormatLogMessage(type, context, msg);
@ribtoks
ribtoks / SS-earnings.ipynb
Created July 30, 2020 12:14
Shutterstock earnings trend evaluation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ribtoks
ribtoks / Shutterstock.ipynb
Created May 29, 2020 05:52
Analysis of Shutterstock earnings restructuring in 2020
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ribtoks
ribtoks / docker-compose-kanboard-tdg.yml
Created April 28, 2020 09:03
Kanboard TDG dockerfile
version: '3'
services:
kanboard:
image: kanboard/kanboard:v1.2.14
ports:
- "4580:80"
- "45443:443"
volumes:
- kanboard_data:/var/www/app/data
- kanboard_plugins:/var/www/app/plugins
@ribtoks
ribtoks / .vimrc
Created July 25, 2019 17:16
C++ .vimrc
filetype plugin on
filetype indent on
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)
set nocompatible
" allow to change buffer with unsaved changes
set hidden
@ribtoks
ribtoks / Database.cpp
Created July 26, 2017 12:14
BerkeleyDB Qt wrappers
#include "database.h"
#include <QDir>
#include <cstring>
#include <cmath>
#include <db.h>
#include "../Common/defines.h"
#include "constants.h"
#define DEFAULT_PAGESIZE (1024)
#define DEFAULT_CONCURRENT_TRANSACTIONS (100)
@ribtoks
ribtoks / Makefile
Created September 29, 2016 11:31
exiv2 threading crash test
EXIV2_INCLUDEPATH =../xpiks/src/exiv2-0.25/include
DEFINES =
CXXFLAGS = $(DEFINES) -Zi -MDd -EHa
INCPATH = -I. -I$(EXIV2_INCLUDEPATH)
SOURCES = main.cpp
OBJDEPS = libexiv2.lib libexpat.lib
LINKFLAGS =
.PHONY: debug
debug: test_exiv2