Skip to content

Instantly share code, notes, and snippets.

View zsmatrix62's full-sized avatar
๐ŸŠ
I may be slow to respond.

Kyle zsmatrix62

๐ŸŠ
I may be slow to respond.
  • SKXI
View GitHub Profile
@zsmatrix62
zsmatrix62 / git-pub.nu
Last active September 12, 2024 09:15
nushell script to increase a semmantic version number, add a tag and push to origin branch
# git-pub.nu
#
# nushell script to increase a semmantic version number, add a tag and push to origin branch
#
# prerequisits:
# - git
# - git-cliff
#
# usage:
# ```nushell
marshaler = &runtime.JSONPb{
    MarshalOptions: protojson.MarshalOptions{UseProtoNames: true, EmitUnpopulated: true},
}

grpcMux := runtime.NewServeMux(
    GWMultipartForm(marshaler),
    runtime.WithMarshalerOption(runtime.MIMEWildcard, marshaler),
)
@zsmatrix62
zsmatrix62 / gpg-ssh-setup.md
Created June 24, 2024 17:52 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  โ–ถ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@zsmatrix62
zsmatrix62 / strip_tags.sql
Created May 14, 2024 06:45 — forked from ano/strip_tags.sql
strip_tags MySQL user defined function to remove html tags
# Code to implement the strip_tags function in MySQL:
DELIMITER $$
CREATE FUNCTION strip_tags(html TEXT) RETURNS TEXT
BEGIN
DECLARE s TEXT;
DECLARE p INT DEFAULT 0;
IF html IS NULL THEN
@zsmatrix62
zsmatrix62 / README.md
Created January 8, 2023 11:03 — forked from denji/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000
@zsmatrix62
zsmatrix62 / colorscheme-override.md
Created October 13, 2022 17:54 — forked from romainl/colorscheme-override.md
The right way to override any highlighting if you don't want to edit the colorscheme file directly

The right way to override any highlighting if you don't want to edit the colorscheme file directly

Generalities first

Suppose you have weird taste and you absolutely want:

  • your visual selection to always have a green background and black foreground,
  • your active statusline to always have a white background and red foreground,
  • your very own deep blue background.
@zsmatrix62
zsmatrix62 / nerd_fonts.sh
Created September 29, 2022 08:58 — forked from davidteren/nerd_fonts.md
Install Nerd Fonts via Homebrew [updated & fixed]
# Nerd Fonts for your IDE
# https://www.nerdfonts.com/font-downloads
brew tap homebrew/cask-fonts && brew install --cask font-3270-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-fira-mono-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-go-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-lgc-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-monofur-nerd-font
brew tap homebrew/cask-fonts && brew install --cask font-overpass-nerd-font
@zsmatrix62
zsmatrix62 / BookmarkHub
Last active January 17, 2024 02:46 — forked from andreyvit/tmux.md
BookmarkHub
{"browser":"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36","version":"0.0.4","createDate":1705459571536,"bookmarks":[{"children":[],"title":"MobileFolder"}]}
@zsmatrix62
zsmatrix62 / tmux-cheatsheet.markdown
Created February 17, 2022 18:30 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@zsmatrix62
zsmatrix62 / .vimrc
Created February 17, 2022 13:32 — forked from kirstein/.vimrc
Vimrc
call pathogen#infect()
"" Remap leader
let mapleader = ","
"" Remat jj to esc
inoremap jj <ESC>
"" Use Vim settings, rather then Vi settings (much better!).
"" This must be first, because it changes other options as a side effect.