Fish & Bun in Codespaces
sudo apt update
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish
sudo apt update
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt update
sudo apt install fish
// 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}`; |
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 |
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; | |
} | |
}); | |
}; |
fish_add_path ~/.fly/bin/ |
{ | |
"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 | |
} |
/** | |
* | |
> 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 |
(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! ;-)', |
// Take the entered search input from the You.com search bar and pass it to Google's search bar | |
// Intended for use as a "The Browser Company" Arc Boost | |
window.setTimeout(() => { | |
// Get the search input from the You.com search bar | |
const youInput = document.querySelector('#search-input-textarea'); | |
if (!youInput) return; | |
// Create a link to Google.com |