Skip to content

Instantly share code, notes, and snippets.

View Kristinita's full-sized avatar

Саша Черных Kristinita

View GitHub Profile
@Kristinita
Kristinita / autotitle.py
Created December 21, 2023 18:20
Pelican plugin that allows to avoid manually writing “Title” in articles and pages
"""[OVERVIEW] Pelican plugin to replace “-” with a space in the value of the key “title” articles and pages.
[NOTE] Not possible to have expected value of “title” key without plugin:
https://stackoverflow.com/q/64058029/5951529
[REQUIRED] “FILENAME_METADATA: (?P<title>.*)” in Pelican settings;
this is necessary so as not to add the “title” manually in each article and page.
Otherwise error when running “pelican” command on the command line:
“could not find information about 'title'”.
https://docs.getpelican.com/en/latest/content.html#file-metadata
@Kristinita
Kristinita / tridactylrc
Created April 25, 2020 12:58
KiraTridactyl__Internationalisation--Russian
keymap , ?
keymap . /
keymap / |
keymap \
keymap а f
keymap А F
keymap б ,
keymap Б <
keymap в d
keymap В D
@Kristinita
Kristinita / dabblet.css
Created February 13, 2019 17:31
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@Kristinita
Kristinita / test.md
Created April 30, 2017 14:07
Deadlinks warnings 4-30-2017

coloca

@Kristinita
Kristinita / DeadlinkDebug.log
Created April 30, 2017 13:59
Deadlinks Log
DEBUG: Pelican version: 3.7.1
DEBUG: Python version: 3.6.1
DEBUG: Adding current directory to system path
DEBUG: Temporarily adding PLUGIN_PATHS to system path
DEBUG: Loading plugin `feed_summary`
DEBUG: Registering plugin `feed_summary`
DEBUG: Loading plugin `interlinks`
DEBUG: Registering plugin `interlinks`
DEBUG: Loading plugin `pagefixer`
DEBUG: Registering plugin `pagefixer`
@Kristinita
Kristinita / DeadlinkDebug
Created April 21, 2017 18:32
DeadlinkDebug
DEBUG: Starting new HTTP connection (1): anima-kommunizm.forum2x2.ru
DEBUG: http://anima-kommunizm.forum2x2.ru:80 "GET /t135-topic HTTP/1.1" 200 None
DEBUG: Good link: http://anima-kommunizm.forum2x2.ru/t135-topic#138 (200)
DEBUG: Starting new HTTP connection (1): forumsi.org
DEBUG: http://forumsi.org:80 "GET /showpost.php?p=37455&postcount=1 HTTP/1.1" 200 8232
DEBUG: Good link: http://forumsi.org/showpost.php?p=37455&postcount=1 (200)
DEBUG: Starting new HTTPS connection (1): vk.com
DEBUG: https://vk.com:443 "GET /hair_in_the_wind HTTP/1.1" 302 20
DEBUG: Starting new HTTPS connection (1): m.vk.com
DEBUG: https://m.vk.com:443 "GET /hair_in_the_wind HTTP/1.1" 200 2688
@Kristinita
Kristinita / [ConEmu] Settings
Created April 10, 2017 18:56
[ConEmu] Settings
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2017-04-10 21:51:00" build="170402">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Far}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@Kristinita
Kristinita / [Pelican] Deadlinks output
Created April 10, 2017 10:05
[Pelican] Deadlinks output
@Kristinita
Kristinita / DeadlinksOutput
Created April 10, 2017 10:03
Terminal output, if deadlinks Sublime Text plugin enabled
3.6.1
@Kristinita
Kristinita / [Choco] SopCast failure
Created March 24, 2017 17:48
SopCast succesful install, but exit code 4
============================================================
2017-03-24 20:39:20,071 [INFO ] - Chocolatey v0.10.3
2017-03-24 20:39:20,075 [DEBUG] - Chocolatey is running on Windows v 10.0.14393.0
2017-03-24 20:39:20,075 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2017-03-24 20:39:20,075 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2017-03-24 20:39:20,081 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install "D:\SashaChocolatey\packages\SopCast\sopcast.4.2.0.nupkg" -y
2017-03-24 20:39:20,081 [DEBUG] - Received arguments: install D:\SashaChocolatey\packages\SopCast\sopcast.4.2.0.nupkg -y
2017-03-24 20:39:20,123 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2017-03-24 20:39:20,127 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2017-03-24 20:39:20,133 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...