本文档介绍如何配置SSH免密登录远程开发服务器,通过配置SSH密钥对实现自动登录,提高开发效率和安全性。
首先检查是否已经存在SSH密钥:
ls ~/.ssh/id_rsa| import threading | |
| import time | |
| from concurrent.futures import ThreadPoolExecutor | |
| import unittest | |
| from dataclasses import dataclass, field | |
| from threading import Lock | |
| import multiprocessing | |
| @dataclass | |
| class SharedData: |
| /* Enhancements to the Twitter Scraping Script: | |
| This update to the script introduces a more robust mechanism for extracting detailed interaction data from tweets as they are scraped from Twitter. Previously, the script focused on collecting basic content such as the tweet's text. Now, it has been augmented to include a comprehensive extraction of interaction metrics, including replies, reposts, likes, bookmarks, and views, for each tweet. | |
| Key Changes: | |
| 1. Improved Data Extraction: | |
| - The script now searches through all elements within a tweet that have an `aria-label` attribute, filtering for labels that contain key interaction terms (replies, reposts, likes, bookmarks, views). This ensures that only relevant `aria-labels` are considered for data extraction. | |
| 2. Flexible Interaction Data Parsing: |
| import inspect | |
| from typing import Any, Callable, Dict, List, Optional, Union | |
| import numpy as np | |
| import torch | |
| from transformers import CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5TokenizerFast | |
| from diffusers.image_processor import VaeImageProcessor | |
| from diffusers.loaders import FluxLoraLoaderMixin | |
| from diffusers.models.autoencoders import AutoencoderKL |
| // ==UserScript== | |
| // @name URL Tagger | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.5 | |
| // @description Tag URLs based on predefined patterns and data | |
| // @author Your Name | |
| // @match *://*/* | |
| // @grant GM_xmlhttpRequest | |
| // @grant GM_addStyle | |
| // @connect 192.168.x.x |
| #!/bin/bash | |
| black='\E[30;50m' | |
| red='\E[31;50m' | |
| green='\E[32;50m' | |
| yellow='\E[33;50m' |
A dataset about cities of the world.
Downloaded from Simplemaps: World Cities Database.
A new file worldcitiesReduced.csv was created by manually removing columns not deemed necessary for initial visualization of this data.
| // ==UserScript== | |
| // @name arXiv LaTeX Zapper.user.js | |
| // @namespace https://gist.github.com/iqiancheng | |
| // @author qian.cheng | |
| // @version 0.3 | |
| // @description Zap those pesky LaTeX elements that snuck into the HTML on arXiv | |
| // @downloadURL https://gist.githubusercontent.com/iqiancheng/9945010cc85209185618c964bdd84fd1/raw/969a26e502d4487569a561013612eb6b019bfb1b/arxiv_latex_zapper.user.js | |
| // @updateURL https://gist.githubusercontent.com/iqiancheng/9945010cc85209185618c964bdd84fd1/raw/969a26e502d4487569a561013612eb6b019bfb1b/arxiv_latex_zapper.user.js | |
| // @match *://ar5iv.labs.arxiv.org/html/* | |
| // @match *://arxiv.org/html/* |
| // ==UserScript== | |
| // @name Hatena::Let indicator reviver | |
| // @namespace https://noromanba.github.com | |
| // @description revive "[saving...]" indicator on Hatena::Let for UserScript | |
| // @include *://let.hatelabo.jp/l | |
| // @grant none | |
| // @noframes | |
| // @run-at document-end | |
| // @version 2018.5.14.1 | |
| // @homepage https://gist.github.com/noromanba/ceaf1067aea7c3855ce7b57fe5ae1887 |
| // ==UserScript== | |
| // @name 404ToArchive | |
| // @namespace wolf20482 | |
| // @version 1.0.0 | |
| // @description Automatically redirects 404 pages to the latest archive in Internet Archive. | |
| // @author wolf20482 | |
| // @license MIT | |
| // @match http://* | |
| // @match https://* | |
| // @match http://*/* |