Skip to content

Instantly share code, notes, and snippets.

View daephx's full-sized avatar
💢

Daemon daephx

💢
View GitHub Profile
@daephx
daephx / ANSI.md
Created December 29, 2021 11:35 — 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
@daephx
daephx / shift-select.zsh
Last active November 12, 2022 14:15 — forked from jamietre/.zshrc-wsl-windows-terminal
zsh config for windows-like inline editing using Windows Terminal + wsl
# add this to your .zshrc
r-delregion() {
if ((REGION_ACTIVE)) then
zle kill-region
else
local widget_name=$1
shift
zle $widget_name -- $@
fi
@daephx
daephx / clone-gists.py
Last active November 23, 2023 10:36 — forked from SpotlightKid/clone-gists.py
Clone all gists of GitHub username given on the command line.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Clone all gists of GitHub user with given username.
Clones all gist repos into the current directory, using the gist id as the
directory name. If the directory already exists as a git repo, try to perform a
'git pull' in it.
"""
@daephx
daephx / New-Gitignore.ps1
Last active November 12, 2022 19:50 — forked from colorqualia/gitignore.ps1
[New-Gitignore] Generate a new ignore file via 'gitignore.io'. #PowerShell
<#
.SYNOPSIS
Generate a new ignore file via 'gitignore.io'
.LINK
https://www.toptal.com/developers/gitignore
#>
#Requires -Version 3.0
Function New-Gitignore {