Skip to content

Instantly share code, notes, and snippets.

View iturdikulov's full-sized avatar
🎯
Focusing

Inom Turdikulov iturdikulov

🎯
Focusing
View GitHub Profile
# Default application configuration that all configurations inherit from.
scss_files: "**/*.scss"
plugin_directories: ['.scss-linters']
# List of gem names to load custom linters from (make sure they are already
# installed)
plugin_gems: []
linters:
@iturdikulov
iturdikulov / post-merge
Last active August 15, 2016 06:45
post-merge-middleman
#!/bin/sh
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"

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 / jb
Last active April 20, 2019 22:58
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>ЦИТАТЫ ЖИРОБИЛДЕРА</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/css/all.min.css'>
@iturdikulov
iturdikulov / org-mode-for-gtd.org
Last active September 25, 2019 21:07
Orgmode for GTD

based on https://emacs.cafe/emacs/orgmode/gtd/2017/06/30/orgmode-gtd.html checked 10% of this (need update)

The orgmode files

  1. inbox.org - Collect all things
  2. todo.org - All projects
  3. someday.org - All inactive tasks that I might do at some point in the future, but don’t want to see all the time
  4. tickler.org - Entries with timestamp to get reminded at the right moment

You can quickly initialize this files in shell:

@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 / index.html
Created April 21, 2021 07:44
Simple responsive HTML/CSS template
<header class="header">
<h1 class="header-title">
<a href="/">
<pre>
██╗███╗░░██╗░█████╗░███╗░░░███╗░█████╗░███████╗
██║████╗░██║██╔══██╗████╗░████║██╔══██╗╚════██║
██║██╔██╗██║██║░░██║██╔████╔██║██║░░██║░░███╔═╝
██║██║╚████║██║░░██║██║╚██╔╝██║██║░░██║██╔══╝░░
██║██║░╚███║╚█████╔╝██║░╚═╝░██║╚█████╔╝███████╗
╚═╝╚═╝░░╚══╝░╚════╝░╚═╝░░░░░╚═╝░╚════╝░╚══════╝</pre>
@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