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 inspect | |
from typing import Union | |
from pydantic import BaseModel | |
from pydantic.fields import Field | |
from app.db.base_class import Base | |
def _get_field_model(field: Field): | |
""" | |
Returns the BaseModel of this field if it's associated to one. |
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
ssh -D 9999 root@REMOTE_IP | |
google-chrome --proxy-server="socks5://127.0.0.1:9999" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE 127.0.0.1" |
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
[List.Generic:dynamic_8180] | |
Expression=sha1($p.CONST1) | |
CONST1=mysaly | |
Flag=MGF_INPUT_20_BYTE | |
Flag=MGF_FLAT_BUFFERS | |
Func=DynamicFunc__clean_input_kwik | |
Func=DynamicFunc__append_keys | |
Func=DynamicFunc__append_input1_from_CONST1 | |
Func=DynamicFunc__SHA1_crypt_input1_to_output1_FINAL | |
Test=$dynamic_8180$4f2c19f885eae0886b526fda968234874f51be34:mypassword |
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
<?php | |
/** | |
* This entity manager configuration works with doctrine 2.1.x and 2.2.x | |
* versions. Regarding AnnotationDriver setup it most probably will be changed into | |
* xml. Because annotation driver fails to read other classes in same namespace | |
*/ | |
// connection args, modify at will | |
$connection = array( | |
'host' => '127.0.0.1', | |
'port' => 3306, |
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
<?php | |
use Doctrine\ORM\Query; | |
use Gedmo\Translatable\TranslatableListener; | |
$executionStart = microtime(true); | |
$memoryStart = memory_get_usage(true); | |
$em = include 'em.php'; |