In order to run Xorg apps on macOS you will need to install xquartz
:
brew install --cask --no-quarantine xquartz
And then configure it
/** | |
* 🧠 My game-changing ESLint rule that makes AI coding 10x better: | |
* - Enforces 200-line max file size | |
* - Counts only actual code (ignores comments) | |
* - Gives helpful refactoring suggestions | |
* - Works perfectly with Cursor AI's "Fix in Chat" | |
* | |
* Custom ESLint rule to limit file size to 200 lines | |
* @type {import("eslint").Rule.RuleModule} | |
*/ |
// ==UserScript== | |
// @name HackMD `ui-` classes highlighter | |
// @namespace http://hackmd.io/ | |
// @version 0.1.2 | |
// @description Show all `ui-` classes | |
// @author stanley2058, Yukaii | |
// @match https://hackmd.io/* | |
// @match https://local.localhost/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=hackmd.io | |
// @grant GM.getValue |
The instance resource is often at full capacity. Therefore, we should create a script to automatically retry launching the instance at regular intervals.
The script also includes basic logging and will stop launching once you have successfully launched the instance.
#!/usr/bin/env osascript -l JavaScript | |
/** | |
* ----------------------------------------------------------------------------- | |
* Toggle Do Not Disturb Mode from Control Center | |
* ----------------------------------------------------------------------------- | |
* | |
* Created on May 18, 2023 by Stephan Casas | |
* | |
* Options: |
local wezterm = require 'wezterm' | |
local color_default_fg_light = wezterm.color.parse("#cacaca") -- 💩 | |
local color_default_fg_dark = wezterm.color.parse("#303030") | |
return { | |
VERIDIAN = { | |
bg = wezterm.color.parse("#4D8060"), | |
fg = color_default_fg_light | |
}, |
# Requires the GitHub Copilot CLI from GitHub Next | |
# https://www.npmjs.com/package/@githubnext/github-copilot-cli#installation-and-setup | |
# This needs to be set up as a function in your fish config. You can use `funced -s q` to do this. | |
# Options: | |
# q -g --git: Use github-copilot-cli git-assist | |
# q -h --gh: Use github-copilot-cli gh-assist | |
# Defaults to using what-the-shell (general command assist) if neither option is provided | |
# Completions for your Fish config: |
# ... your other config | |
bind-key -n M-3 run-shell 'toggle-tmux-popup' | |
# you can switch `M-3` to any keybindings you like. |
2024 Edit - In the comments, there are good alternatives. When this gist was written, there were few alternatives to the Slack Bolt package.
Some gotchas from my recent experience of building a serverless Next.JS + Bolt.JS Slack App on Vercel.
Note that if you're building an app that you want to distribute to other workspaces, AFAIK you need to build an API. So, Next.JS is used here to help with the public API. The alternative to an API is using "socket mode".
app.command()
and similar, just remember to put the /slack/events
endpoint in the Slack config.