Skip to content

Instantly share code, notes, and snippets.

View cl0ne's full-sized avatar
👁️
Loading...

Vladislav Glinsky cl0ne

👁️
Loading...
  • Kyiv, Ukraine
View GitHub Profile
@cl0ne
cl0ne / csr.schema.json
Created December 1, 2021 11:01
CFSSL JSON Schemas
{
"CN": "dev/cl0ne/CA",
"key": {
"algo": "ecdsa",
"size": 384
},
"names": [
{
"C": "UA",
"L": "Kyiv",
@cl0ne
cl0ne / README.md
Last active August 1, 2021 14:57
Restore ability of Gajim to ignore TLS errors

This patch reverts commit b9d17352 that removed possibility to ignore TLS errors other than "certificate expired" and "UNKNOWN_CA". Updated for compatibility with Gajim 1.3.2.

Relevant issues:

@cl0ne
cl0ne / README.md
Last active July 20, 2020 13:33
Oldschool GitHub as userstyle
import bpy
import bpy.types
class ParamSet(bpy.types.PropertyGroup):
column_count: bpy.props.IntProperty(min=1, max=50, default=2, name="column", description="Displayed column count")
class OBJECT_PT_IconEnum(bpy.types.Panel):
bl_label = "Icon Enumeration"
@cl0ne
cl0ne / PKGBUILD
Created December 6, 2019 22:10
r8168-dkms PKGBUILD
_pkgbase=r8168
pkgname=${_pkgbase}-dkms
pkgver=8.047.05
pkgrel=2
pkgdesc="A kernel module for Realtek 8168 network cards"
url="http://www.realtek.com.tw"
license=("GPL")
arch=('i686' 'x86_64')
depends=('glibc' 'dkms')
conflicts=("${_pkgbase}")

TL;DR: Use ldd -r libHello.so to find unresolved symbols in your libHello.so. Another option is to make your linker complain about theese symbols (with --no-undefined for ld). Or look for linking/loading errors later.

For example, you have:

// a.cpp
namespace X {
int someExternValue = 0;
}

// b.cpp
@cl0ne
cl0ne / PKGBUILD
Last active November 21, 2019 17:38
movim-desktop PKGBUILD
pkgname=movim-desktop
pkgver=0.15.90
pkgrel=1
pkgdesc='Movim is a decentralized social network'
arch=('x86_64')
url='https://movim.eu/'
license=('Copyright (c) 2013-2018 GitHub Inc.')
options=('!strip')
provides=($pkgname)
@cl0ne
cl0ne / word2pdf.ps1
Created May 4, 2019 21:01
Small PowerShell snippet for converting .doc(x) files to PDF, tested with Word 2010
function Word2PDF {
$src_path = $args[0]
if($src_path -eq $null){
Write-Host "Usage: Word2PDF source-files-dir"
return
}
if(!(Test-Path $src_path -PathType Container)){
throw "Path $src_path doesn't exist or is not a directory."
}
import re
import shutil
import argparse
from os import path
from sys import stderr
#
# Author: Daxda
# Date: 02.04.2014
# WTF: This is a quick tool I've hacked together to easily remove the meta
@cl0ne
cl0ne / arch-adv.php
Created July 31, 2011 20:21
Simple "HLTV Demos archive" script pack
<?php
/*
Simple "HLTV Demos archive" databaseless script
Copyright (C) 2011 CL0NE
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.