Skip to content

Instantly share code, notes, and snippets.

View iturdikulov's full-sized avatar
🎯
Focusing

Inom Turdikulov iturdikulov

🎯
Focusing
View GitHub Profile
@iturdikulov
iturdikulov / 24-bit-color.sh
Created February 25, 2024 06:27 — forked from lifepillar/24-bit-color.sh
Test 24 bit colors in terminals
#!/bin/bash
#
# This file echoes a bunch of 24-bit color codes
# to the terminal to demonstrate its functionality.
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m
# The background escape sequence is ^[48;2;<r>;<g>;<b>m
# <r> <g> <b> range from 0 to 255 inclusive.
# The escape sequence ^[0m returns output to default
setBackgroundColor()
@iturdikulov
iturdikulov / multiple-ssh-keys-git.adoc
Created August 2, 2023 01:38 — forked from alejandro-martin/multiple-ssh-keys-git.adoc
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

@iturdikulov
iturdikulov / disable_windows_defender.bat
Created May 21, 2023 06:42 — forked from pe3zx/disable_windows_defender.bat
Disable Windows Defender on Windows 10 1903
rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!!
rem https://technet.microsoft.com/en-us/itpro/powershell/windows/defender/set-mppreference
rem To also disable Windows Defender Security Center include this
rem reg add "HKLM\System\CurrentControlSet\Services\SecurityHealthService" /v "Start" /t REG_DWORD /d "4" /f
rem 1 - Disable Real-time protection
reg delete "HKLM\Software\Policies\Microsoft\Windows Defender" /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiVirus" /t REG_DWORD /d "1" /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\MpEngine" /v "MpEnablePus" /t REG_DWORD /d "0" /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f
@iturdikulov
iturdikulov / win10-ltsc-setup.ps1
Last active May 20, 2023 08:20 — forked from ob1-sc/win11-setup.ps1
Windows 11 Setup Script
# Install WinGet
# Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901
# To run gist from powershell:
# iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/Inom-Turdikulov/6c0b3b2e40f54fe8ad5cee8d1dd83317/raw'))
#
# ISO file
#
# FILE: en-us_windows_10_enterprise_ltsc_2021_x64_dvd_d289cf96.iso
# MD5: b5a7be560dbd73619945129e52be1b5f
# SHA-1: 2fb2897373c4f71b06f4490943b3d564b0f0fd6d
@iturdikulov
iturdikulov / vim-unreal.md
Created January 19, 2023 19:36 — forked from chillpert/vim-unreal.md
Debugging and autocompletion for Unreal Engine 4 and 5 projects in (Neo)vim

Debugging and autocompletion for Unreal Engine 4 and 5 projects in (Neo)Vim

+++ Updated for UE 5.1 (see bottom)

Autocompletion

For autocompletion there are two options:

  1. coc (Vim, Neovim)
  2. LSP (Neovim only)
@iturdikulov
iturdikulov / 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)
@iturdikulov
iturdikulov / 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
@iturdikulov
iturdikulov / 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