Skip to content

Instantly share code, notes, and snippets.

import { useEffect, useState } from "react";
import { HeadingBlock } from "./blocks/Heading";
import { AccordionBlock } from "./blocks/Accordion";
import { ImageCarouselBlock } from "./blocks/ImageCarousel";
interface ComponentFilterProps {
component: any;
}
export function ComponentFilter({ component }: ComponentFilterProps) {
@kensleDev
kensleDev / keybindings.json
Last active May 3, 2024 14:56
VSCode + Neovim config
// Place your key bindings in this file to override the defaults
[
// Switches
{
"key": "alt+i",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "alt+b",
"command": "extension.toggleBool",
@kensleDev
kensleDev / _windows_neovim_install.ps1
Last active May 21, 2024 12:51
Windows neovim install
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop bucket add extras
scoop bucket add versions
scoop install git
scoop install neovim
scoop install lazygit
scoop install mingw
@kensleDev
kensleDev / shortcuts.json
Last active March 20, 2024 22:03
VSCode Keyboard Shortcuts
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+space",
"command": "whichkey.show"
},
// navigation
{
"key": "alt+m",
"command": "workbench.action.navigateLeft"
username="kd"
apps=("python3" "python3-pip" "git" "curl" "wget" "lsb-release" "stow" "trash-cli" "silversearcher-ag" "fd-find" "ripgrep" "unzip" "fzf" "duf" "ncdu" "tmux" "jq" "zsh" "python3-venv")
apps_to_configure=("git" "tmux" "zsh" "coc")
architecture=$(uname -m)
install_apt_apps() {
for app in "${apps[@]}"; do
check_and_install $app
done
}
@kensleDev
kensleDev / macros.cfg
Created May 1, 2023 09:28
Printers Config
[gcode_macro G29]
gcode:
G28
BED_MESH_CALIBRATE
G0 X0 Y0 Z10 F6000
BED_MESH_PROFILE save=default
[gcode_macro WIPE_NOZZLE]
gcode:
// Place your key bindings in this file to override the defaultsauto[]
[
// Which key
{
"key": "space",
"command": "whichkey.show",
"when": "editorTextFocus && neovim.mode != insert"
},
{
"key": "ctrl+shift+;",
##############################
# 1 - Install Ansible dependancies (Python3) and clone dotfiles
##############################
sudo pacman -Syu
yes | sudo pacman -S git
git clone https://aur.archlinux.org/yay-git.git ~/tmp/yay
cd ~/tmp/yay
yes | makepkg -si
yay -Syu
# Dependancies
Invoke-WebRequest -Uri "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -OutFile "~\Downloads\VCLibs.appx"
Add-AppxPackage -Path "~\Downloads\VCLibs.appx"
# chocolatey - needed for apps that can't be installed via scoop (terminal)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install -y git powershell-core microsoft-windows-terminal
# font install
mkdir ~/.config/fonts
@kensleDev
kensleDev / alias
Last active June 16, 2022 17:26
Docker scripts
# --------------------------------File Ops
alias c='clear'
alias l='ls'
alias laa='ls -a'
alias la='ls -la'
alias lhh='ls -d .?* '
alias lh='ls -ld .?* '
# ---------------------------------docker