Skip to content

Instantly share code, notes, and snippets.

View Soladiem's full-sized avatar

Denis Soladiem

View GitHub Profile
@Soladiem
Soladiem / gist:b0e2991ba14ebe9b14c83dc060f06472
Last active September 24, 2022 14:37
Problem high memory in fedora 36 for docker
For mysql from 5.6 to 8.0
`sudo dnf install moby-engine --allowerasing`
@Soladiem
Soladiem / readTimeEstimate.php
Created February 1, 2021 17:01
Подсчет времени чтения статьи (PHP)
/**
* Class readTimeEstimate
* Подсчет времени чтения статьи
*/
class readTimeEstimate
{
/**
* Средняя скорость чтения слов в минуту
*/
const WORDS_PER_MINUTE = 200;
// Пример фильтра по слою
TypedValue[] filterlist = new TypedValue[1] {
new TypedValue((int)DxfCode.LayerName, "Layer1")
};
SelectionFilter filter = new SelectionFilter(filterlist);
PromptSelectionResult selResult = editor.SelectAll(filter);
ObjectId[] ids = selResult.Value.GetObjectIds();
@Soladiem
Soladiem / .conkyrc
Last active September 28, 2018 14:35
Example of conky for linux
conky.config = {
-------------------------------------
-- Generic Settings
-------------------------------------
background=true,
update_interval=1,
double_buffer=true,
no_buffers=true,
imlib_cache_size=10,