Skip to content

Instantly share code, notes, and snippets.

View ronaiza-cardoso's full-sized avatar
🏳️‍🌈

Ronaíza Cardoso ronaiza-cardoso

🏳️‍🌈
View GitHub Profile
@ronaiza-cardoso
ronaiza-cardoso / README.md
Created August 3, 2026 22:05
macOS launchd agent to auto-prune stale Cursor log directories

cursor-logs-prune

A launchd agent that auto-prunes stale Cursor log directories on macOS.

Why

Cursor writes logs into ~/Library/Application Support/Cursor/logs/ — one date-stamped subdirectory per session — and never cleans them up. Left alone, the directory can accumulate tens or hundreds of GB and fill the disk.

@ronaiza-cardoso
ronaiza-cardoso / README.md
Created August 3, 2026 18:05
macOS launchd agent to auto-prune stale Cursor log directories

cursor-logs-prune

A launchd agent that auto-prunes stale Cursor log directories on macOS.

Why

Cursor writes logs into ~/Library/Application Support/Cursor/logs/ — one date-stamped subdirectory per session — and never cleans them up. Left alone, the directory can accumulate tens or hundreds of GB and fill the disk.

Keybase proof

I hereby claim:

  • I am ronaiza-cardoso on github.
  • I am ronaiza (https://keybase.io/ronaiza) on keybase.
  • I have a public key ASAhakDS8uyWs3UQ8IXN3KO-UNTdMETH_mpb5DA2KTMuHQo

To claim this, I am signing this object:

alias gc="git checkout"
alias gs="git status"
alias gl="git log --pretty=oneline"
alias up='git push origin `git rev-parse --abbrev-ref HEAD`'
alias upf='git push origin `git rev-parse --abbrev-ref HEAD` --force-with-lease'
alias gcm="git commit -m $1"
alias gm="git checkout main"
alias apply="git stash apply stash@{$1}"
alias ammend="git commit --amend --no-edit --no-verify"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<ul id="list"></ul>
@ronaiza-cardoso
ronaiza-cardoso / omit.js
Created October 14, 2021 21:16
Redroduzindo o comportamento da função `omit` do lodash
const omit = (obj, filterKeys) => {
return Object.keys(obj).reduce(
(acc, curr) =>
filterKeys.every(i => i !== curr) ? { ...acc, [curr]: obj[curr] } : acc,
{}
);
};
/**
* from: https://www.reddit.com/r/reactnative/comments/iysvwn/for_the_past_two_months_ive_been_working_on_a/g6eiuy4?utm_source=share&utm_medium=web2x&context=3
*
*
*
* The top header is this package: react - native - unibubbles
* I mix it with a transparent StackNavigator.
* Thank you! The < Modal /> is a platform switch between react - native - modal and react - native - web - modal.
* I used a hook which exports and Animated.Value which I use to animate the absolutely positioned < Modal />’s bottom style.🤪
*
const echoCallbackHandler = (context, event) => (callback, onEvent) => {
onEvent(({ type }) => {
if(type === 'HEAR') {
callback('ECHO')
}
})
}
const echoMachine = Machine({
id: 'echo',
const fetchCuteAnimals = () => {
return fetch('https://www.reddit.com/r/aww.json')
.then(res => res.json())
.then(data => data.data.children.map(child => child.data))
}
const cuteAnimalsMachine = Machine({
id: 'cuteAnimals',
initial: 'idle',
context: {
const fetchMachine = Machine({
id: 'door',
initial: 'locked',
states: {
locked: {
id: 'locked',
on: {
UNLOCKED: 'unlocked'
}
},