From 91d80f9ff0a7032d7753fa2e810bd764e1c7ec52 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sat, 3 Sep 2022 00:07:20 +0300 Subject: [PATCH] fix code blocks --- content/posts/2022/add-path-to-path.md | 8 ++++---- content/posts/2022/c/c_colors.md | 2 +- content/posts/2022/conan-list-and-remove-packages.md | 2 +- content/posts/2022/cryfs/cryfs-fast-start/index.md | 8 ++++---- content/posts/2022/gpg_encrypt.md | 8 ++++---- content/posts/2022/opengl_always_software.md | 2 +- content/posts/2022/porteus/utils_4_make_modules.md | 4 ++-- content/posts/pixijs/01-start-with-pixi.md | 2 +- content/posts/porteus/porteus-autologin.md | 8 ++++---- .../posts/porteus/xdg-runtime-guest-error/index.md | 6 +++--- themes/papercut/static/css/styles.css | 12 ++---------- 11 files changed, 27 insertions(+), 35 deletions(-) diff --git a/content/posts/2022/add-path-to-path.md b/content/posts/2022/add-path-to-path.md index 2981e2a..b427ba5 100644 --- a/content/posts/2022/add-path-to-path.md +++ b/content/posts/2022/add-path-to-path.md @@ -7,11 +7,11 @@ tags: [powershell, tips] Получить доступ к PATH в PowerShell можно через переменную `$Env:PATH`. Вывести её можно просто вызвав: -``` -PS $Env:PATH +```powershell +$Env:PATH ``` А добавить путь можно таким образом: -``` -PS $Env:PATH += ";D:\Software\git\bin\" +```powershell +$Env:PATH += ";D:\Software\git\bin\" ``` diff --git a/content/posts/2022/c/c_colors.md b/content/posts/2022/c/c_colors.md index 0d54191..dc34840 100644 --- a/content/posts/2022/c/c_colors.md +++ b/content/posts/2022/c/c_colors.md @@ -8,7 +8,7 @@ tags: [development, c] Лучи благодарности [LINUXTALKS-CO](https://linuxtalks.co/people/LINUXTALKS-CO/profile)/ [LINUX-ORG-RU](https://www.linux.org.ru/people/LINUX-ORG-RU/profile). -``` +```c #include /*--------------Тут просто кишки----------------*/ diff --git a/content/posts/2022/conan-list-and-remove-packages.md b/content/posts/2022/conan-list-and-remove-packages.md index 0f21d9b..990b416 100644 --- a/content/posts/2022/conan-list-and-remove-packages.md +++ b/content/posts/2022/conan-list-and-remove-packages.md @@ -5,7 +5,7 @@ draft: false tags: [tips, c, conan] --- -[Conan](https://conan.io/) - Conan, the C/C++ Package Manager. +## [Conan](https://conan.io/) - Conan, the C/C++ Package Manager. Менеджер пакетов для Си, аля PIP или NPM. Для меня было неочевидно, как можно получить список установленных пакетов. diff --git a/content/posts/2022/cryfs/cryfs-fast-start/index.md b/content/posts/2022/cryfs/cryfs-fast-start/index.md index eeb9829..c9aa78b 100644 --- a/content/posts/2022/cryfs/cryfs-fast-start/index.md +++ b/content/posts/2022/cryfs/cryfs-fast-start/index.md @@ -8,7 +8,7 @@ tags: [encrypt, cryfs, privacy] Пошёл я, ага... ![](cryfs_boost_error.png) -``` +```sh activate boost-1.78.0-x86_64-2_slack15.0.xzm cryptopp-8.2.0-x86_64-3.xzm ``` @@ -23,14 +23,14 @@ activate boost-1.78.0-x86_64-2_slack15.0.xzm cryptopp-8.2.0-x86_64-3.xzm ввести пароль и пользоваться. По умолчанию используется метод шифрования `aes-256-gcm`. -``` +```sh cryfs /basedir/ /mountdir/ ``` * `/basedir/` - директория, в которой хранятся зашифрованные данные * `/mountdir/` - директория, в которой хранятся расшифрованные данные. -``` +```sh cryfs ~/.cryfs/ ~/Vault/ ``` @@ -38,7 +38,7 @@ cryfs ~/.cryfs/ ~/Vault/ Для отмонтирования необходимо ввести следующую команду. -``` +```sh cryfs-unmount ~/Vault/ CryFS Version 0.10.3 diff --git a/content/posts/2022/gpg_encrypt.md b/content/posts/2022/gpg_encrypt.md index 7400ded..85f6bbe 100644 --- a/content/posts/2022/gpg_encrypt.md +++ b/content/posts/2022/gpg_encrypt.md @@ -8,19 +8,19 @@ tags: [gpg, privacy] ## Шифрование файла Получаем список USER_ID: -``` +```sh gpg -k | grep uid uid [ultimate] Alexander Popov ``` Команда для шифрования: -``` +```sh gpg -e -r USER_ID FILE.TXT ``` В моём случае: -``` +```sh gpg -e -r Alexander test.md ``` @@ -29,7 +29,7 @@ gpg -e -r Alexander test.md ## Расшифровка файла Очень просто, команда с ключём `-d`: -``` +```sh gpg -d FILE.TXT.gpg ``` diff --git a/content/posts/2022/opengl_always_software.md b/content/posts/2022/opengl_always_software.md index ec22a99..5d046ff 100644 --- a/content/posts/2022/opengl_always_software.md +++ b/content/posts/2022/opengl_always_software.md @@ -9,7 +9,7 @@ tags: [opengl, linux, games] С этим параметром даже Minecraft 1.18.2 на мамонте запускатся. -``` +```sh ❯ lspci | grep -i vga 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07) diff --git a/content/posts/2022/porteus/utils_4_make_modules.md b/content/posts/2022/porteus/utils_4_make_modules.md index c24a1e0..8bf5456 100644 --- a/content/posts/2022/porteus/utils_4_make_modules.md +++ b/content/posts/2022/porteus/utils_4_make_modules.md @@ -9,7 +9,7 @@ tags: [linux, porteus] Утилита `dir2xzm` конвертирует директорию в **zstd** или **xz** сжатый модуль (`.xzm`). -``` +```sh usage: /usr/bin/dir2xzm <-option> source_directory output_file.xzm options: -x : use xz compression. options: -z : use zstd compression. @@ -24,7 +24,7 @@ usage: /usr/bin/dir2xzm <-option> source_directory output_file.xzm Скрипт для извлечения `.xzm` модуля в директорию. -``` +```sh Extract .xzm module to folder Usage: xzm2dir moduleName.xzm [outputFolder] Example: xzm2dir module.xzm diff --git a/content/posts/pixijs/01-start-with-pixi.md b/content/posts/pixijs/01-start-with-pixi.md index 70e5e14..24130e8 100644 --- a/content/posts/pixijs/01-start-with-pixi.md +++ b/content/posts/pixijs/01-start-with-pixi.md @@ -142,7 +142,7 @@ sprite.cursor = 'zoom-out'; Список [cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) и примеры можно посмотреть на Developer Mozilla. -``` +```text help, wait, crosshair, not-allowed, zoom-in, zoom-out, grab ``` diff --git a/content/posts/porteus/porteus-autologin.md b/content/posts/porteus/porteus-autologin.md index 3c59d94..2936d9d 100644 --- a/content/posts/porteus/porteus-autologin.md +++ b/content/posts/porteus/porteus-autologin.md @@ -11,7 +11,7 @@ tags: [linux, tips, porteus] Вот, что выводится в терминале: -``` +```sh $ systemsettings5 QQmlEngine::setContextForObject(): Object already has a QQmlContext file:///usr/share/kpackage/kcms/kcm_landingpage/contents/ui/main.qml:127:9: QML FormLayout (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredHeight" @@ -32,7 +32,7 @@ Error loading the module "kcm_users" : invalid KPackage Например было так: -``` +```text LABEL GRAPHICAL MENU LABEL Graphics mode KERNEL /boot/syslinux/vmlinuz @@ -45,7 +45,7 @@ ENDTEXT А стало так: -``` +```text APPEND changes=/mnt/sda1/data.dat nologin ``` @@ -57,7 +57,7 @@ APPEND changes=/mnt/sda1/data.dat nologin Но у меня в Porteus 5.0 поле `User` уже было пустое. -``` +```text # cat /etc/sddm.conf.d/kde_settings.conf [Autologin] Relogin=false diff --git a/content/posts/porteus/xdg-runtime-guest-error/index.md b/content/posts/porteus/xdg-runtime-guest-error/index.md index 5283403..2e4b182 100644 --- a/content/posts/porteus/xdg-runtime-guest-error/index.md +++ b/content/posts/porteus/xdg-runtime-guest-error/index.md @@ -10,7 +10,7 @@ tags: [porteus, linux, error, tips] ![](porteus-error.webp) -``` +```text INIT: Entering runlevel: 4 chown: changing ownership of `/tmp/xdg/runtime-guest`: Operation not permitted chmod: changing permissions of `/tmp/xdg/runtime-guest`: Operation not permitted @@ -19,13 +19,13 @@ chmod: changing permissions of `/tmp/xdg/runtime-guest`: Operation not permitted ### Решение Решение достаточно простое -``` +```sh rm -rf /tmp/xdg/runtime-guest ``` И для профилактики, всё равно систему засоряет -``` +```sh rm -rf /home/guest/* rm -rf /home/guest/.* ``` diff --git a/themes/papercut/static/css/styles.css b/themes/papercut/static/css/styles.css index db9b70c..1345c0e 100644 --- a/themes/papercut/static/css/styles.css +++ b/themes/papercut/static/css/styles.css @@ -58,15 +58,7 @@ img { max-width: 90%; } -/*pre { - background-color: #272822; +pre { border-radius: 8px; - padding: 16px; -}*/ - -/*code { - background-color: #272822; - border-radius: 8px; - padding: 0 8px; + padding: 8px; } -*/