Skip to content

Instantly share code, notes, and snippets.

View iturdikulov's full-sized avatar
🎯
Focusing

Inom Turdikulov iturdikulov

🎯
Focusing
View GitHub Profile

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l
@iturdikulov
iturdikulov / spacemacs-cheshe.md
Created May 17, 2017 18:15 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@iturdikulov
iturdikulov / add_sftp_user.sh
Created May 25, 2018 15:26 — forked from alexclifford/add_sftp_user.sh
Quick script for adding a new SFTP user/directory to an existing SFTP setup on Ubuntu.
#!/bin/sh
######################################################
# Create a new SFTP user and configure their chroot
######################################################
if [ $# -ne 2 ]; then
echo "Usage: add_sftp_user.sh username password"
exit 0
fi
@iturdikulov
iturdikulov / @@INTRO.md
Created July 26, 2020 07:57 — forked from djmitche/@@INTRO.md
My use of Taskwarrior

Getting Started

My Usage

I've been using this for several years now, so here are some of the ways I have set it up to be most productive. See my taskrc below for implementation details.

In general, I've had the most success by keeping lists of tasks short and to the point, avoiding the anxiety of seeing 100 tasks and feeling like I'm going to drown.

@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

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 / 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
@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 / 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)