Skip to content

Instantly share code, notes, and snippets.

View keyle's full-sized avatar
👹

keyle

👹
View GitHub Profile
@keyle
keyle / global.focus-config
Last active January 7, 2025 13:11
focus config and theme
[6] # Version number. Do not delete.
[[workspace]]
# These directories and files will be scanned when a workspace is opened so that search etc. works.
# Example:
# /Users/my_name/projects/my_project # <- the first directory in the list becomes the working directory
# /Users/my_name/jai
# src # <- this would be relative to the config file location
## NOTE projects live in
@keyle
keyle / Simply21.json
Created January 3, 2025 10:43
Zed Simply21 theme
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Simply21",
"author": "keyle",
"themes": [
{
"name": "Simply21",
"appearance": "dark",
"style": {
"border": "#292A2E",
@keyle
keyle / keymap.json
Created January 3, 2025 07:30
zed keymap and settings
[
{
"bindings": {
"cmd-[": "pane::GoBack",
"cmd-]": "pane::GoForward",
"cmd-shift-r": "file_finder::Toggle",
"cmd-g": "editor::GoToDefinition",
"ctrl-g": "editor::OpenExcerpts", // alt-enter
"ctrl-[": "workspace::ActivatePreviousPane",
"ctrl-]": "workspace::ActivateNextPane",
@keyle
keyle / bindings.json
Created December 28, 2024 05:33
bindings.json micro key bindings
{
"Alt-/": "lua:comment.comment",
"Alt-=": "HSplit",
"Alt-Left": "WordLeft",
"Alt-MouseLeft": "MouseMultiCursor",
"Alt-Right": "WordRight",
"Alt-[": "PreviousSplit",
"Alt-\\": "VSplit",
"Alt-]": "NextSplit",
"Alt-d": "command:definition",
@keyle
keyle / simple2.micro
Last active December 28, 2024 05:32
simple2.micro theme
color-link default "#dddddd"
color-link comment "blue"
color-link constant "red"
color-link identifier "cyan"
color-link statement "yellow"
color-link symbol "yellow"
color-link preproc "magenta"
color-link type "green"
color-link special "magenta"
color-link ignore "default"
@keyle
keyle / ghostty.setting
Last active January 14, 2025 13:10
ghostty setting
# https://ghostty.zerebos.com/app/import-export
# fonts
font-family = Berkeley Mono
font-size = 18
# disable ligatures
font-feature = -calt
# window
@keyle
keyle / notes.txt
Created December 14, 2024 11:13
@nocheckin with Git
in the repo, create the file:
.git/hooks/pre-commit
don't forget to chmod +x pre-commit as it needs to be executable
source: https://www.reddit.com/r/Jai/comments/jp0vjy/nocheckin_behavior_in_gitsourcetree/
/**
* MacEditorTextView
* Copyright (c) Thiago Holanda 2020-2021
* https://gist.github.com/unnamedd/6e8c3fbc806b8deb60fa65d6b9affab0
* MIT license
*/
import SwiftUI
import Neon
@keyle
keyle / backup.sh
Created September 2, 2023 03:30
linux server backup script
#!/bin/bash
####################################
# Backup to tar
# inspired from
# https://ubuntu.com/server/docs/basic-backup-shell-script
####################################
# What to backup.
backup_files="/home /var/spool/mail /etc /root /opt"
@keyle
keyle / launch.json
Created June 1, 2023 09:05
Cargo debug launch.json macOS (needs CodeLLDB & rust-analyzer extensions)
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/target/debug/<!!!your-binary-name!!!>",
"preLaunchTask": "rust: cargo build",
"args": [],