Skip to content

Instantly share code, notes, and snippets.

View keyle's full-sized avatar
👹

keyle

👹
View GitHub Profile
@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": {
@keyle
keyle / .clang-format
Last active April 22, 2023 05:00
.clang-format laptop
BasedOnStyle: Google
IndentWidth: 4
UseTab: false
AlignTrailingComments: true
SpacesBeforeTrailingComments: 1
KeepEmptyLinesAtTheStartOfBlocks: false
AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
@keyle
keyle / bindings.json
Last active November 8, 2023 10:20
micro settings
{
"Alt-/": "lua:comment.comment",
"Alt-Left": "StartOfLine",
"Alt-MouseLeft": "MouseMultiCursor",
"Alt-Right": "EndOfLine",
"Alt-[": "PreviousTab",
"Alt-]": "NextTab",
"Alt-d": "command:definition",
"Alt-f": "command:format",
"Alt-k": "command:hover",
@keyle
keyle / safari-style-sheet.css
Created December 6, 2021 00:54
safari-style-sheet.css
/* NOTE: min font-size 17 (on 27" 5K screen...) */
html > body, font, p, table tr td {
line-height: 1.6 !important;
}
@keyle
keyle / Preferences-Profile-Advanced.md
Created December 5, 2021 12:47
Semantic history cmd+click editor in iTerm2

Semantic history, cmd+click iTerm2

this will open your editor of choice on cmd+click of a path in iTerm (from a list of paths, search, grep, rg, fd...)

Semantic History

pick

run coprocess -> echo micro \1

@keyle
keyle / .profile
Created December 5, 2021 12:44
Search through history
export HISTIGNORE="pwd:cd:ls:ll:ps:hist:update:git:lz"
hist() {
history |grep $1
}
@keyle
keyle / .zprofile
Last active December 1, 2021 05:15
update but automatic stashing if there are local changes first then merge back
update() {
YEL="\033[1;33m"
NOP="\033[0m"
output="$(git status --porcelain)"
if [[ -n $output ]]
then
printf "%s\n" "$output"
echo ""
@keyle
keyle / .zprofile
Created December 1, 2021 04:41
update but first check for status change
update() {
git status --porcelain
if read -q "choice?stash changes? Y/y: "; then
echo ""
git stash
echo "-----------------------------------"
git pull --all
echo "-----------------------------------"
git stash pop
@keyle
keyle / Install Slack.app on Debian Bullseye.md
Created November 11, 2021 00:13
Missing libappindicator3-1 installing Slack.app on Debian Bullseye!

Sadly some required packages don't seem to be up to date! The simplest way is to install the required packages from the repository manually until all requirements are there.

Steps

Go to https://slack.com and get their latest .deb install file for Linux

if you attempt to install it as, you should get some missing requirements warning and it bails.

@keyle
keyle / PREAMBLE
Created November 10, 2021 22:02
Set up mousewheel speed on Debian, Mint, Cinnamon, etc.
# The following fixes the slow mousewheel on debian/mint using Cinammon / GTK3.
# install a package call imwheel and use a script that generates a small UI to tweak the setting.
# personal settings will be saved on ~/.imwheelrc
sudo apt install imwheel
touch ~/mousewheel.sh # edit and paste the mousewheel.sh
chmod +x ~/mousewheel.sh