Skip to content

Instantly share code, notes, and snippets.

View rafi's full-sized avatar

Rafael Bodill rafi

View GitHub Profile
@donaldguy
donaldguy / zap_yabai.zsh
Last active December 15, 2025 20:04
thorough yabai uninstaller
#!/bin/zsh --norcs
set -o NO_UNSET -o ERREXIT
if (! sudo -nv) {
echo "re-run after caching sudo in parent shell, by e.g. running:\n\t sudo -v" >&2
exit 1
}
autoload -Uz colors && colors
@rafa-thayto
rafa-thayto / keybindings.json
Last active February 5, 2026 00:39
My Cursor/VSCode/Windsurf settings with VIM
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+i",
"command": "composerMode.agent"
},
{
"key": "y",
"command": "filesExplorer.copy",
"when": "explorerViewletFocus && !inputFocus"
@clouedoc
clouedoc / Migrating from Arc to Zen Browser.md
Created September 20, 2024 08:57
Migrating from Arc to Zen Browser

A guide to leaving Arc for Zen Browser

The problem with Arc is that it doesn't allow exporting data (history, bookmarks) to a file natively.

One way to do this is to use a script but that only exports Bookmarks and not the history.

I don't really use the bookmarks feature that much; what I really liked about Arc was that it was really easy to navigate to somewhere I already visited.

So, if you're like me, follow this guide and you'll be able to import your browsing history into Zen browser!

@adtac
adtac / Dockerfile
Last active December 26, 2025 00:20
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
#!/bin/zsh
# WARNING! The script is meant to show how and what can be disabled. Don’t use it as it is, adapt it to your needs.
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12), macOS Ventura (13) and macOS Sonoma (14)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@Blackshome
Blackshome / sensor-light.yaml
Last active February 12, 2026 01:10
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light
description: >
# 💡 Sensor Light
**Version: 8.5**
Your lighting experience, your way - take control and customize it to perfection! 💡✨
@aidenlx
aidenlx / fish_shell_local_install.sh
Last active November 16, 2025 19:27 — forked from masih/fish_shell_local_install.sh
Installs Fish Shell without root access (work with fish v3.5.1)
#!/bin/bash
# Script for installing Fish Shell on systems without root access.
# Fish Shell will be installed in $HOME/.local
# It's assumed that wget and following packages is installed (https://github.com/fish-shell/fish-shell#dependencies-1)
# 1. a C++11 compiler (g++ 4.8 or later, or clang 3.3 or later)
# 2. CMake (version 3.5 or later)
# exit on error
set -e
@EldonMcGuinness
EldonMcGuinness / adobe-cc-2019-host.txt
Created April 6, 2021 11:41
Adobe CC 2019 activation host block
0.0.0.0 activate.adobe.com
0.0.0.0 practivate.adobe.com
0.0.0.0 ereg.adobe.com
0.0.0.0 wip3.adobe.com
0.0.0.0 activate.wip3.adobe.com
0.0.0.0 3dns-3.adobe.com
0.0.0.0 3dns-2.adobe.com
0.0.0.0 adobe-dns.adobe.com
0.0.0.0 adobe-dns-2.adobe.com
0.0.0.0 adobe-dns-3.adobe.com
@thomaspoignant
thomaspoignant / Makefile
Last active February 6, 2026 15:00
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)