Skip to content

Instantly share code, notes, and snippets.

@basaran
basaran / 01-setup_docker_al2023.md
Created April 16, 2024 15:35 — forked from thimslugga/setup-docker-al2023.md
Setup Docker and docker-compose on Amazon Linux 2023

Setup Docker on Amazon Linux 2023

Steps to Install and Setup Docker on Amazon Linux 2023

Install the packages

Install the following packages, which are good to have installed:

sudo dnf install --allowerasing -y dnf-plugins-core \
@basaran
basaran / *Org Src notes.el
Created October 28, 2023 09:28 — forked from jchaffin/*Org Src notes.el
hide src delimiters in org mode
(with-eval-after-load 'org
(defvar-local rasmus/org-at-src-begin -1
"Variable that holds whether last position was a ")
(defvar rasmus/ob-header-symbol ?☰
"Symbol used for babel headers")
(defun rasmus/org-prettify-src--update ()
(let ((case-fold-search t)
@basaran
basaran / ANSI.md
Created July 18, 2022 16:44 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@basaran
basaran / lama.lua
Created June 6, 2021 09:35
automatically lighten and darken hexadecimal colors for awesomewm
-- u/linuxFoolDumDum
-- https://www.reddit.com/r/awesomewm/comments/nph6ew/i_made_a_module_to_automatically_lightendarken/
local M = {}
-- Rounds to whole number
local function round(num)
return math.floor(num + 0.5)
end
-- Rounds to hundredths
@basaran
basaran / wrap-as-arg.sublime-snippet
Created October 18, 2019 12:02 — forked from DefiantBidet/wrap-as-arg.sublime-snippet
sublime text snippet to wrap selection in a function call similar to the existing wrap with tag.
<snippet>
<content><![CDATA[${1:fn}($SELECTION)]]></content>
<tabTrigger>WrapAsArg</tabTrigger>
<description>Wraps Selection With Function Call</description>
</snippet>