sudo apt remove fonts-noto-color-emoji
sudo apt install fonts-noto-color-emoji
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create a private instance of lodash | |
| // since we will modify the memoize cache config | |
| const {memoize} = require('lodash').runInContext(); | |
| // Set the memoize cache to use WeakMap | |
| memoize.Cache = WeakMap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const getUserFromDatabase = memoize(async ctx => { | |
| const { | |
| req: { | |
| headers: {Authorization: userCred}, | |
| }, | |
| } = ctx; | |
| const user = await db.getUserByCredential(userCred); | |
| return user; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| await sendMessageToUser(ctx); | |
| await replyOk(ctx); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function getUserFromDatabase(ctx) { | |
| const { | |
| req: { | |
| headers: {Authorization: userCred}, | |
| }, | |
| } = ctx; | |
| const user = await db.getUserByCredential(userCred); | |
| return { | |
| ...ctx, | |
| user, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const R = require('ramda'); | |
| const ctx = { | |
| // ... | |
| }; | |
| R.pipeWith(R.then, [getUserFromDatabase, sendMessageToUser, replyOk])(ctx); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| R.pipeWith(R.then, [getUserFromDatabase, replyOk, sendMessageToUser])(ctx); |
- ubuntu compatibility list
- pop os use intel graphics only
disable nvidia graphicsUsing the built in way seems like an easier solution.- user manual
- Have to install gnome-extensions package from apt to enable user themes in PopOS!
- ocs-url allows installation of themes from browswer (assuming user themes is enabled)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express') | |
| const app = express() | |
| app.get('/', function (req, res) { | |
| res.send('Hello World!') | |
| }) | |
| // 👉👉 ADD YOUR ROUTE HERE! 👈👈 | |