db.votes.aggregate([{
$lookup: {
from: "users",
localField: "createdBy",
foreignField: "_id",
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bson | |
from pymongo import MongoClient | |
def dump(collections, conn, db_name, path): | |
""" | |
MongoDB Dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docs for more information see the official HPLIP project site here. | |
# https://developers.hp.com/hp-linux-imaging-and-printing | |
# Step 1. Update Fedora Linux | |
# Simply run dnf command: | |
$ sudo dnf upgrade | |
# Step 2. Search for HPLIP software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# -*- MAINTAINER -*- Lasha Gogua Lh4cKg@gmail.com | |
# -*- RUN -*- $ bash install.sh | |
# system update and install epel package | |
yum install epel-release | |
# or | |
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[innotec@innotec ~]$ locate teamviewerd | |
/etc/init/teamviewerd.conf | |
/opt/teamviewer8/logfiles/install_teamviewerd.log | |
/opt/teamviewer8/tv_bin/teamviewerd | |
/opt/teamviewer8/tv_bin/script/teamviewerd.conf | |
/opt/teamviewer8/tv_bin/script/teamviewerd.service | |
/opt/teamviewer8/tv_bin/script/teamviewerd.sysv | |
/opt/teamviewer8/tv_bin/script/teamviewerdMint.conf | |
[innotec@innotec ~]$ sudo /opt/teamviewer/tv_bin/teamviewerd start | |
[innotec@innotec ~]$ teamviewer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _*_ coding: utf-8 _*_ | |
""" | |
IPC | |
Created on Apr 24, 2017 | |
@author: lasha gogua | |
""" | |
from django import forms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing.managers import BaseManager | |
class QueueManager(BaseManager): | |
pass |
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:
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)
NewerOlder