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 / 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 / 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 / script.sh
Created February 26, 2024 13:22
Add Fly.io CLI to Fish Shell
fish_add_path ~/.fly/bin/
@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 / aptabase-zaraz.js
Last active October 24, 2023 19:00
Aptabase website tracking using Cloudflare Zaraz
/**
*
> This Cloudfare Workers script takes a request from Zaraz
Use the Zaraz **HTTP Request Tool** with an endpoint set to the Worker URL running this script, with a trigger of **Pageview**, using the **POST JSON** method, with **Send all System and Client data** checked for each **pageView** and sends it to Aptabase's **HTTP API**.
Notes:
- Create an Environment Variable called `APATABASE_KEY` and set it to your API Key
- The endpoint is set to Europe, change to USA or self-hosted as needed
- toggle `isDebug` to `false` when you're ready to go live
@mountainash
mountainash / init7-console-log.js
Created August 1, 2023 09:32
Init7 Console Log - Get A Job
(function() {
if (window.console && window.console.log && !DEBUG) {
const data = {
logo: {
ascii: " _ _ _\n | | _ __ (_) _/ |_ _____\n | || '_ \\| ||_ _||___ |\n | || | | || | | |_ / /\n |_||_| |_||_| \\__| / /\n /_/",
binary: '01001001 01101110 01101001 01110100 00110111'
},
desc: {
de: 'Hallo Coder-Kollege! Bist du Nerdisch by nature und Intuitiv?\nCool - dann besuch doch {cta} und finde deinen Traumjob.\nWir freuen uns mit dir zu coden. ;-)',
fr: 'Salut ami codeur! Es-tu intuitif et nerd par nature?\nAlors visite {cta} et trouve l’emploi de tes rêves!\nAu plaisir de coder avec toi! ;-)',
@mountainash
mountainash / pipeline-emojies.md
Last active October 16, 2023 10:35
Emojis for Pipelines

Emojis good for Developer Use

Notifications

  • ⚠️ ❗️
  • ⛔ 🚫 🛑
  • ❌ ❎
  • 💀
@mountainash
mountainash / you-to-google-link.js
Last active October 18, 2023 14:01
Arc Boost: You.com to Google.com Search Link
@mountainash
mountainash / smtp-nodejs.mjs
Created February 24, 2023 11:00
A Node.JS script that can be run from the command line
#!/usr/bin/env node
/* eslint-disable no-console */
import { createTransport } from 'nodemailer';
/* Usage:
1. Copy this file to a directory of your choice
2. Edit the config object below to match your SMTP server
3. `npm install nodemailer`
4. Run the script with `node smtp-test.mjs`
*/
@mountainash
mountainash / Github Issue Labels.md
Last active January 8, 2024 16:40
A starting point for some good Github/Gitlab issue labels/tags with emojis
Label Name Description Color
🐜 bug Unexpected problem or unintended behaviour #FF8787
💎 feature Feature request or enhancement #86E5FF
🧹 refactor Cleanup or improvement #D7D3F5
📦 dependencies Update a dependency files #EEE3CB
🔨 wip Work In Progress - not finished working on it #FFB26B
📝 docs Improvements or additions to documentation #FFE15D
🕳️ wontfix This request won't be fixed #FFFFFF