Skip to content

Instantly share code, notes, and snippets.

View keyle's full-sized avatar
👹

keyle

👹
View GitHub Profile
@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 March 28, 2025 15:08
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": [],
@keyle
keyle / launch.json
Last active May 25, 2023 11:19
Rust launch.json for VSCode macOS with LLDB (M1) using rust-analyzer
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch & Debug",
"type": "lldb",
"request": "launch",
"program": "${workspaceRoot}/target/debug/${workspaceRootFolderName}",
"args": [],
"cwd": "${workspaceRoot}"
@keyle
keyle / README.md
Last active May 24, 2023 09:38
M1/M2 C Debugging with Clang, CodeLLDB and VSCode
@keyle
keyle / launch.json
Created May 9, 2023 04:05
launch.json for PHP XDEBUG
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"stopOnEntry": false, // !!! doesn't work, hit the refresh (Green) icon and keep going
"port": 9000,
"pathMappings": {