Skip to content

Instantly share code, notes, and snippets.

View andrew-kazakov's full-sized avatar
🏠
Working from home

Andrew Kazakov andrew-kazakov

🏠
Working from home
View GitHub Profile
@andrew-kazakov
andrew-kazakov / learn.org
Created March 2, 2024 15:40 — forked from Gavinok/learn.org
Learn Emacs Lisp in 30 Minutes

Lets Learn Emacs Lisp

Emacs terminology

How to Learn Emacs

buffer
The area containing text kinda like a tab in a browser
point
The cursor
window
A section of the emacs window containing text
@andrew-kazakov
andrew-kazakov / doom.txt
Created November 6, 2020 14:56 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
;; -*- lexical-binding:t coding:utf-8-unix -*-
(defun 3s/env-update-path-var (name value &optional append separator)
(let ((sep (or separator path-separator)))
(when (not (s-blank? value))
(let* ((name-val (getenv name))
(components (when (not (s-blank? name-val))
(s-split sep name-val))))
(if (null components)
@andrew-kazakov
andrew-kazakov / docker-compose.yaml
Created April 24, 2018 09:41
docker-compose.yaml for example
version: "3"
services:
web:
image: nginx
deploy:
replicas: 3
resources:
limits:
cpus: "0.1"
memory: 50M
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure("2") do |config|
# Plugins
config.hostmanager.enabled = true