Skip to content

Instantly share code, notes, and snippets.

@protiumx
protiumx / kitty.conf
Created December 25, 2021 22:30
Kitty Configuration for iTerm users
# vim:fileencoding=utf-8:foldmethod=marker
# Include theme
include ./theme.conf
# ===== Config =====
font_family CaskaydiaCove Nerd Font
font_size 16.0
PixelROM March Update
Changelog:
- Updated AOSP to version 11.0.0 r32 (RQ2A.210305.006)
- Updated Google Mobile Services stack to RQ2A.210305.006 of redfin
- Mask device as Pixel 5 (redfin)
- Inlined UICC NFC configs with crosshatch (dipper & polaris)
- Added Extreme Battery Saver support
- Added display low-power mode support
- Unified brightness configurations for all devices*

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
# Generated by Powerlevel10k configuration wizard on 2020-04-12 at 20:28 CEST.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 30399.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, dark,
# 24h time, round separators, round heads, round tails, 2 lines, disconnected, no frame,
# sparse, many icons, concise, instant_prompt=quiet.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@idleberg
idleberg / vscode-theme-colors.jsonc
Last active November 19, 2023 12:40
VSCode Theme Colors
{
"colors": {
// An extra border around active elements to separate them from others for greater contrast.
"contrastActiveBorder": "",
// An extra border around elements to separate them from others for greater contrast.
"contrastBorder": "",
//Overall border color for focused elements. This color is only used if not overridden by a component.
"focusBorder": "",
//Overall foreground color. This color is only used if not overridden by a component.
@thbe
thbe / alias.plugin.zsh
Created January 1, 2020 23:22
Local custom plugins
# Custom plugin for zsh
#
# Common aliases
#
# Author: Thomas Bendler <code@thbe.org>
# Date: Wed Jan 1 23:54:03 CET 2020
#
### Command enhancements aliases ###
alias ls='ls -GFh' # Preferred 'ls' implementation
@thbe
thbe / .p10k.zsh
Last active October 2, 2020 08:49
Enhance your macOS terminal - p10k
# p10k.zsh configuration file
#
# Author: Thomas Bendler <code@thbe.org>
# Date: Sun Jan 12 17:54:00 CET 2020
#
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 551.
# For more information see https://github.com/romkatv/powerlevel10k
#
# Apply configiguration changes without restarting zsh.
# Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
@TheWebDevel
TheWebDevel / .zshrc
Created April 20, 2019 03:48
My zshrc
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# Load Nerd Fonts with Powerlevel9k theme for Zsh
POWERLEVEL9K_MODE='nerdfont-complete'
source ~/powerlevel9k/powerlevel9k.zsh-theme
# Customise the Powerlevel9k prompts
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(ssh dir vcs newline status)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()