Hides extra menubar icons in submenu
Makes the notch less visible
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| need() { command -v "$1" >/dev/null 2>&1; } | |
| # Run a command as root: use sudo if needed, or run directly if already root | |
| as_root() { | |
| if [ "${EUID:-$(id -u)}" -eq 0 ]; then | |
| "$@" | |
| elif need sudo; then |
Hides extra menubar icons in submenu
Makes the notch less visible
| const express = require('express') | |
| const app = express() | |
| app.get('/', function (req, res) { | |
| res.send('Hello World!') | |
| }) | |
| // 👉👉 ADD YOUR ROUTE HERE! 👈👈 | |
| const functions = require("firebase-functions"); | |
| const admin = require("firebase-admin"); | |
| const {nanoid} = require('nanoid'); | |
| admin.initializeApp(); | |
| exports.withLock = functions.pubsub | |
| .schedule("0 * * * *") | |
| .onRun((context) => { | |
| const { eventId, timestamp } = context; |
sudo apt remove fonts-noto-color-emoji
sudo apt install fonts-noto-color-emoji| R.pipeWith(R.then, [getUserFromDatabase, replyOk, sendMessageToUser])(ctx); |
| const R = require('ramda'); | |
| const ctx = { | |
| // ... | |
| }; | |
| R.pipeWith(R.then, [getUserFromDatabase, sendMessageToUser, replyOk])(ctx); |
| async function getUserFromDatabase(ctx) { | |
| const { | |
| req: { | |
| headers: {Authorization: userCred}, | |
| }, | |
| } = ctx; | |
| const user = await db.getUserByCredential(userCred); | |
| return { | |
| ...ctx, | |
| user, |