Skip to content

Instantly share code, notes, and snippets.

View Lh4cKg's full-sized avatar
🐍
Working

Lasha Gogua Lh4cKg

🐍
Working
View GitHub Profile
@Lh4cKg
Lh4cKg / kerio-kvc.conf
Created August 12, 2025 06:42
How To Install And Configure Kerio VPN Client On Redhat/Fedora Linux
<config>
<connections>
<connection type="persistent">
<server>vpn.mydomain.ge</server>
<port>4090</port>
<username>my_username</username>
<password>my_password</password>
<fingerprint>36:09:24:65:23:53:C7:F8:06:8D:C9:35:82:5D:12:F2</fingerprint>
<active>1</active>
</connection>
@Lh4cKg
Lh4cKg / JenkinfileAgent.groovy
Last active August 6, 2025 05:59
Jenkins Pipeline Configuration
// Pipeline For Specified Agent Node
pipeline {
agent { label 'Scheduler Agent Node' }
parameters {
string(name: 'cache', defaultValue: 'cache-buster-req', description: 'Enter the cache buster and build.')
}
stages {
@Lh4cKg
Lh4cKg / locker_callback_examples.md
Last active May 26, 2025 19:03
Example of Locker Callback Responses

open locker box api

{
    "device_id": "2100017334",
    "lock_address": "",
    "lock_status": "",
    "msg_style": "2",
    "msg_data": {
        "status_num": 1,
 "lock_status_list": [
@Lh4cKg
Lh4cKg / merger.py
Created August 27, 2024 13:12
Merge Pdf Files & Merger & Python
from pathlib import Path
from PyPDF2 import PdfMerger, PdfWriter, PdfReader
OUTPUT_FILE_NAME = 'Out File Name'
PDF_FILES = Path(f'/absolue_path/{OUTPUT_FILE_NAME}/').resolve()
PDF_FILE = PDF_FILES / f'{OUTPUT_FILE_NAME}.pdf'
def sort_by_enumeration(file):
@Lh4cKg
Lh4cKg / colors.css
Created November 25, 2021 21:47 — forked from robodl/colors.css
Wagtail - Draftail - Multiple color highlighter
.cm-green {
background-image: linear-gradient(30deg,#16d6d9,#96cc29);
}
.cm-blue {
background-image: linear-gradient(30deg,#009cf3,#16d6d9);
}
.cm-pink {
background-image: linear-gradient(30deg,#ff2277,#7a288c);
@Lh4cKg
Lh4cKg / managers.py
Created May 25, 2020 10:15
Python Multiprocessing Workers Architecture
from multiprocessing.managers import BaseManager
class QueueManager(BaseManager):
pass

Keybase proof

I hereby claim:

  • I am lh4ckg on github.
  • I am lh4ckg (https://keybase.io/lh4ckg) on keybase.
  • I have a public key whose fingerprint is FE29 4BC3 ECD7 C92F 67D2 8FE6 D66B 607C E774 A3FA

To claim this, I am signing this object:

@Lh4cKg
Lh4cKg / bug-en.md
Last active February 10, 2020 18:47
Django casing bug, Georgian Script Casing in Python 3.7 and Unicode 11

Georgian Script Casing in Python 3.7 and Unicode 11

The problem is in all versions starting with python 3.7, let's go back a little and follow what happened. So with the new version of Unicode 11 (June 5, 2018) we have some major changes for the Georgian script. Georgian was considered a monocameral (non-casing) script. Therefore, Georgian letters were gc=Lo (Letter, Other) and starting from the version Unicode 11.0, those Georgian letters are now gc=Ll (Letter, Lowercase). In python 3.7 first release (June 27, 2018), we have implementation of Unicode 11 and manipulation on the Georgian scripts (capitalize, titlecasing, uppercase) gives us strange symbols on the output.

ex. shown below

Python 3.7.5 (default, Oct 17 2019, 12:21:00) 
@Lh4cKg
Lh4cKg / numberformat.py
Last active January 23, 2020 11:17
Convert an integer to a string
from django.template import Library
register = Library()
@register.filter(is_safe=True)
def intdivide(value, separator=','):
"""
Convert an integer to a string containing specific separator every three digits.
@Lh4cKg
Lh4cKg / mongodb_backup.py
Created January 22, 2020 07:50
MongoDB Dump And Restore Database With Python PyMongo Driver
import bson
from pymongo import MongoClient
def dump(collections, conn, db_name, path):
"""
MongoDB Dump