Skip to content

Instantly share code, notes, and snippets.

View akiva's full-sized avatar

Akiva Levy akiva

View GitHub Profile
@akiva
akiva / config.py
Created September 21, 2018 22:10 — forked from tobeportable/config.py
config.load_autoconfig()
config.bind('R', 'config-source ;; message-info config-reloaded')
# saner defaults
# --------------
c.auto_save.session = True
c.aliases['x'] = 'quit --save'
c.completion.shrink = False
c.input.insert_mode.auto_load = True
c.confirm_quit = ["downloads"]
@akiva
akiva / animatedScrollTo.js
Created March 22, 2019 18:20 — forked from felipenmoura/animatedScrollTo.js
ScrollTo animation using pure javascript and no jquery
/**
* Will gracefuly scroll the page
* This function will scroll the page using
* an `ease-in-ou` effect.
*
* You can use it to scroll to a given element, as well.
* To do so, pass the element instead of a number as the position.
* Optionally, you can pass a `queryString` for an element selector.
*
* The default duration is half a second (500ms)
@akiva
akiva / wsl_alpine-linux_docker-desktop.md
Created April 20, 2022 23:11 — forked from mac641/wsl_alpine-linux_docker-desktop.md
Install Alpine Linux on WSL and connect it to Docker Desktop

Install Alpine Linux on WSL and connect it to Docker Desktop

  • Open an elevated PowerShell prompt.

Set up WSL and install AlpineWSL

  • Enable Windows Subsystem for Linux feature.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
@akiva
akiva / ANSI.md
Created March 14, 2025 16:09 — 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