sudo apt install fonts-noto-color-emoji
- Open
~/.config/fontconfig/conf.d/01-emoji.conf
file in an editor. - Copy-paste the lines below:
chrome ??= browser; | |
function removeReels(node) { | |
if (!node) return; | |
const bannedInnerTexts = ["Reels and short videos", "Reels"]; | |
const text = node.querySelector(`div > span[dir="auto"]`)?.innerText ?? ""; | |
const matchedOnDesktop = bannedInnerTexts.find((t) => t === text); | |
const matchedOnMobile = bannedInnerTexts.includes( | |
node.querySelector("div > span")?.innerText, | |
); |
var removeBranding = function() { | |
try { | |
var element = document.querySelector("iframe[title*=chat]:nth-child(2)").contentDocument.querySelector(`a[class*=tawk-branding]`) | |
if (element) { | |
element.remove() | |
} | |
} catch (e) {} | |
} |
function hideTdo() { | |
var timer = null; | |
var target = document.querySelector('#tidio-chat iframe'); | |
if(!target) { | |
if(timer !== null) { | |
clearTimeout(timer); | |
} | |
timer = setTimeout(hideTdo, 500); | |
return; | |
} else { |
I had to install PlanetScale CLI following: https://planetscale.com/docs/concepts/planetscale-environment-setup
I logged in using pscale auth
command:
$ pscale auth login
# this opened my browser where I was logged in on PlanetScale
sudo apt install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils |
echo 'void async function() { const p = await Bun.file("package.json").json(); const out1 = Object.entries(p.dependencies).filter(([k,v]) => v === "latest").map(([k]) => k).reduce((acc, curr) => acc + " " +curr, "bun add"); const out2 = Object.entries(p.devDependencies).filter(([k,v]) => v === "latest").map(([k]) => k).reduce((acc, curr) => acc + " " +curr, "bun add -d"); console.log(`\n${out1}\n\n${out2}\n`) }()' > temp.js && bun run temp.js; rm temp.js |
#!/usr/bin/env python3 | |
import argparse | |
import glob | |
import os | |
import struct | |
import sys | |
from sentencepiece import SentencePieceProcessor | |
HPARAMS = keys = ["vocab_size", "dim", "multiple_of", "n_heads", "n_layers"] |
import * as React from "react"; | |
import { useState } from "react"; | |
import withCleanup from "./withCleanup"; | |
import withOnMount from "./withOnMount"; | |
let loaded = false; | |
function Counter() { | |
const [count, setCount] = useState(0); |
The first step is to use the Expo CLI to initialize the project. If you don't have the latest version of the Expo CLI tool, (or you don't have it installed) run npm install -g expo-cli
.
Now run the following commands in the same order:
expo init my-app -t expo-template-blank-typescript
npx install-peerdeps --dev eslint-config-airbnb
npm i --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
npm i --save-dev prettier eslint-config-prettier eslint-plugin-prettier
Create or edit the file .eslintrc.json
with the following content: