# https://www.medo64.com/2020/01/colored-cpu-usage-in-tmux/
# https://gist.github.com/spicycode/1229612
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
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
Each YouTube video has 4 generated images. They are predictably formatted as follows: | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg | |
The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: | |
http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<settings> | |
<servers><server url="http://speedtest.pronea.no/speedtest/upload.php" lat="69.6828" lon="18.9428" name="Tromso" country="Norway" countrycode="NO" sponsor="Pronea AS" sponsorurl="http://www.pronea.no/" id="1327" gid="0" url2="http://speedtest.pronea.no/speedtest/upload.php" bigsamples="1" /> | |
<server url="http://speedtest.mmsn.ru/speedtest/upload.php" lat="68.9667" lon="33.0833" name="Murmansk" country="Russian Federation" countrycode="RU" sponsor="JSC M2C" sponsorurl="http://www.mmsn.ru" id="1521" gid="0" url2="http://speedtest.mmsn.ru/speedtest/upload.php" bigsamples="1" /> | |
<server url="http://st1.teletoria.ru/speedtest/upload.php" lat="68.9667" lon="33.0833" name="Murmansk" country="Russian Federation" countrycode="RU" sponsor="ISP Teletoria" sponsorurl="http://www.teletoria.ru" id="2342" gid="0" url2="http://st1.teletoria.ru/speedtest/upload.php" bigsamples="1" /> | |
<server url="http://speedtest.oltv.ru/speedtest/upload.php" lat="68.1500" lon="33.2833" nam |
most simple way, but it will re-render. It may be related to the scrolling restoration bug when the user return the page if your data is fetched on the client
import {useState, useEffect} from 'react'
export default function Index() {
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true)
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
import { firefox, chromium } from "playwright-extra" | |
import { Browser, Page, LaunchOptions, BrowserContext } from "playwright" | |
import { PlaywrightBlocker } from "@cliqz/adblocker-playwright" | |
import fetch from "cross-fetch" // required 'fetch' | |
import { promises as fs } from "fs" // used for caching | |
import os from "os" | |
import RecaptchaPlugin from "puppeteer-extra-plugin-recaptcha" | |
import StealthPlugin from "puppeteer-extra-plugin-stealth" | |
import { newInjectedContext } from "fingerprint-injector" |
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 ProxyChain = require("proxy-chain") | |
const server = new ProxyChain.Server({ | |
// Port where the server will listen. By default 8000. | |
port: 8000, | |
// Enables verbose logging | |
verbose: true, | |
// Custom user-defined function to authenticate incoming proxy requests, |
OlderNewer