- 编辑和终端跳转快捷键
{
"key": "ctrl+j",
"command": "workbench.action.focusActiveEditorGroup",
"when": "!terminalFocus"
},
{
"key": "ctrl+k",
"command": "workbench.action.terminal.focus",
import time | |
import random | |
import sys | |
def snow(): | |
# Manually set the terminal size | |
h, w = 20, 80 # Adjust these values as needed | |
flakes = [" ", " ", "❄︎", "❅", "❆"] | |
# Initialize air space |
ffmpeg -i url -c copy -bsf:a aac_adtstoasc output.mp4 |
// ==UserScript== | |
// @name Pocket View Original/Pocket查看原文避免重定向 | |
// @namespace http://tampermonkey.net/ | |
// @author 2niuhe | |
// @version 1.0.0 | |
// @description getpocket website view original pocket网站直接查看原文避免重定向 | |
// @match https://getpocket.com/zh/saves | |
// @match https://getpocket.com/en/saves | |
// @match https://getpocket.com/saves | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=getpocket.com |
#!/bin/bash | |
srcExt=$1 | |
destExt=$2 | |
srcDir=$3 | |
destDir=$4 | |
opts=$5 |
{
"key": "ctrl+j",
"command": "workbench.action.focusActiveEditorGroup",
"when": "!terminalFocus"
},
{
"key": "ctrl+k",
"command": "workbench.action.terminal.focus",
import git | |
import requests | |
import logging | |
import time | |
import json | |
import copy | |
from bs4 import BeautifulSoup | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.DEBUG) | |
# create file handler which logs even debug messages |
#!/bin/sh | |
while [ 0 -eq 0 ] | |
do | |
echo "----------------------job begin--------------------" | |
youtube-dl -r 3072k -f bestvideo+bestaudio https://youtu.be/OsmQvg8ZEr4?list=PLIx8QniXH-rEkJPV4dH-KobXtEp0EIS7r | |
if [$? -eq 0];then | |
echo "---------------------job complete------------------" | |
break; | |
else |
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
#清华源
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
// ==UserScript== | |
// @name CL社区收藏夹 | |
// @namespace http://tampermonkey.net/ | |
// @version 1.42 | |
// @description 为社区帖子添加一个本地收藏夹,支持导入导出功能。支持图片批量下载。该插件在手机端几乎可以用网页替代社区客户端。支持手机和电脑浏览器Tampermonkey、暴力猴。 | |
// @author niuhe | |
// @include http://*/htm_data/* | |
// @match https://*/htm_data/* | |
// @match http://*/htm_mob/* | |
// @match https://*/htm_mob/* |
Monero XMR mining via termux ;ubuntu
pkg install update && upgrade
apt install git
apt install wget
apt install proot