Skip to content

Instantly share code, notes, and snippets.

View mountainash's full-sized avatar
💭
Coding for pay. Coding for pleasure.

Mountain/\Ash mountainash

💭
Coding for pay. Coding for pleasure.
View GitHub Profile
@mountainash
mountainash / action-click-vol-up.json
Created December 18, 2023 04:28
karabiner-logitech-SPOTLIGHT-volume-up-or-click
{
"description": "Allows you to click by double tapping the • key to 'click', only pressing • key once will volume up after a short delay.",
"manipulators": [
{
"conditions": [
{
"name": "button1 pressed",
"type": "variable_if",
"value": 1
}
@mountainash
mountainash / script.sh
Created February 26, 2024 13:22
Add Fly.io CLI to Fish Shell
fish_add_path ~/.fly/bin/
@mountainash
mountainash / boost-jira-disciplines
Created March 19, 2024 07:15
An Arc boost to change the Title of details fields in JIRA
const jiraDisciplines = () => {
const jiraDetailsHs = document.querySelectorAll('h2[data-component-selector=jira-issue-field-heading-field-heading-title]');
jiraDetailsHs.forEach(h => {
if (h.innerText === 'Components') {
h.innerText = 'Disciplines'
return true;
}
});
};
@mountainash
mountainash / boost-github-dependabot-pr-noise.js
Created April 22, 2024 12:39
Arc Boost to reduce the noise that Dependabot makes in GitHubs Pull Request view
const reduceDependabotNoise = () => {
console.info('Custom Arc Boost ran');
if (window.location.pathname.endsWith('pulls')) {
document.querySelectorAll('.js-issue-row').forEach((issue) => {
const isDependabot = /dependabot/.test(
issue.querySelector('.opened-by')?.innerText,
);
if (isDependabot) {
issue.style.opacity = 0.25;
issue
@mountainash
mountainash / server.ts
Created January 31, 2025 11:25
Simple Bun.JS Static file server
// Use to serve static files
// Run with `bun server.ts`
const BASE_PATH = './';
Bun.serve({
port: 3000,
async fetch(req) {
const path = new URL(req.url).pathname;
const filePath = `${BASE_PATH}${path === '/' ? '/index.html' : path}`;
@mountainash
mountainash / fish+bun+codespaces.md
Last active February 17, 2025 16:14
GitHub Codespaces with Fish & Bun

Update Fish

sudo apt update
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish