Skip to content

Instantly share code, notes, and snippets.

View Inom-Turdikulov's full-sized avatar
🎯
Focusing

Inom Turdikulov Inom-Turdikulov

🎯
Focusing
View GitHub Profile
@Inom-Turdikulov
Inom-Turdikulov / programming-fonts-test-file.py
Created July 14, 2022 11:42
Programming Fonts Test File
"""
Original by Markus Kuhn, adapted for HTML by Martin Dürst.
UTF-8 encoded sample plain-text file
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Markus Kuhn [ˈmaʳkʊs kuːn] <mkuhn@acm.org> — 1999-08-20
The ASCII compatible UTF-8 encoding of ISO 10646 and Unicode
@Inom-Turdikulov
Inom-Turdikulov / fake-redirect.py
Created July 12, 2022 16:36 — forked from kwilczynski/fake-redirect.py
Create a simple HTTP redirect with Python on localhost.
#!/usr/bin/env python3
# Redirect all requests to the given URL.
import SimpleHTTPServer
import SocketServer
class FakeRedirect(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
print(self.path)
self.send_response(301)
@Inom-Turdikulov
Inom-Turdikulov / doom_emacs_workflow.org
Last active February 26, 2024 04:41
Doom emacs with evil keybdindings workflow

Doom Emacs Workflow

Here I collect, various EMACS/evil/org… tips, shortcuts, keybindings, etc. Also, here some information how I handle daily usage of text editing.

This not absolute beginner cheat sheet, just some short basic commands/tips.

Recommendation - just use it & check it every day (training mode).

Notes and possible imporovements

Disclaimer

I didn't run application, just checked source code. Here some places, which I think can be improved. Application looks like early prototype, but I think some code can be written better (even for prototype). Git history is empty, looks like code was written without VCS (propopably fine for first alpha release). No tests, propably fine for this small prototype, but I think later TDD will be useful. Code looking a little outdated (I'm also often write in this style, but for new projects better to use some like type hints, docstrings, etc).

Notes

@Inom-Turdikulov
Inom-Turdikulov / anki_move_word_between_decks.py
Last active January 30, 2022 16:18
Python script, to move cards from one AnkiDeck to another AnkiDeck. Check comments for required dependencies.
#!/usr/bin/env python3
# You need py-notifier package installed
# https://github.com/YuriyLisovskiy/pynotifier
# and also AnkiConnect extension
# https://ankiweb.net/shared/info/2055492159
import json
import sys
import urllib.request
@Inom-Turdikulov
Inom-Turdikulov / doom.md
Last active December 13, 2021 03:18 — forked from anhedonix/doom.md
Doom Emacs Cheatsheet

Doom Emacs Default keybindings cheetsheet

SPC

  • SPC find file
  • , switch bufferA
  • . browse files

VimWiki Cheatsheet

[number] refers to the wiki number, set by the order in your vimrc. The default is 1.

Wiki Management

  • [number] <leader> ww - open wiki index file
  • [number] <leader> wt - open wiki index file in new tab
  • <leader> ws - list and select available wikis
  • wd - delete wiki page
@Inom-Turdikulov
Inom-Turdikulov / my_software_list
Last active September 28, 2021 22:59
My software list
- python
- jupyter
- node
- gcc
- pycharm
- ideavim + easymotion
- ansible
- csv
- dash
@Inom-Turdikulov
Inom-Turdikulov / Arch_Linux_Root_On_ZFS.md
Last active August 15, 2021 08:24 — forked from p7cq/Arch_Linux_Root_On_ZFS.md
Install Arch Linux with Root on ZFS

Prepare

Download iso & signature from https://archlinux.org/download/ In my case archlinux-2021.08.01-x86_64.iso.sig and archlinux-2021.08.01-x86_64.iso

Verify sha1 checksum (replace archlinux-2021.08.01-x86_64.iso with your image path, image can be in download directory)

cd ~/downloads # optional
sha1sum archlinux-2021.08.01-x86_64.iso 
# 4904c8a6df8bac8291b7b7582c26c4da9439f1cf
@Inom-Turdikulov
Inom-Turdikulov / index.html
Created April 21, 2021 07:44
Simple responsive HTML/CSS template
<header class="header">
<h1 class="header-title">
<a href="/">
<pre>
██╗███╗░░██╗░█████╗░███╗░░░███╗░█████╗░███████╗
██║████╗░██║██╔══██╗████╗░████║██╔══██╗╚════██║
██║██╔██╗██║██║░░██║██╔████╔██║██║░░██║░░███╔═╝
██║██║╚████║██║░░██║██║╚██╔╝██║██║░░██║██╔══╝░░
██║██║░╚███║╚█████╔╝██║░╚═╝░██║╚█████╔╝███████╗
╚═╝╚═╝░░╚══╝░╚════╝░╚═╝░░░░░╚═╝░╚════╝░╚══════╝</pre>