This file contains 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
// https://github.com/lzghzr/TampermonkeyJS/issues/27#issuecomment-1303443111 | |
// 控制台运行 | |
$("head").append('<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>'); | |
let my_script=`<script> | |
function px2Num(px) { | |
return Number(px.split("px")[0].toString()); | |
} | |
function getPages(){ |
This file contains 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
!/bin/bash | |
apt-get remove -y docker docker-engine docker.io containerd runc | |
apt-get update | |
apt-get install -y ca-certificates curl gnupg | |
install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
chmod a+r /etc/apt/keyrings/docker.gpg | |
echo \ | |
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | |
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ |
This file contains 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
install -o root -g root -m 0600 /dev/null /swapfile | |
dd if=/dev/zero of=/swapfile bs=1k count=2048k | |
mkswap /swapfile | |
swapon /swapfile | |
echo "/swapfile swap swap auto 0 0" | sudo tee -a /etc/fstab | |
sudo sysctl -w vm.swappiness=10 | |
echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf |
This file contains 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
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
This file contains 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
#EXTM3U name="四川电信IPTV" | |
#EXTINF:-1,CCTV-1高清 | |
http://192.168.2.2/rtp/239.93.0.184:5140 | |
#EXTINF:-1,CCTV-2高清 | |
http://192.168.2.2/rtp/239.93.1.23:6000 | |
#EXTINF:-1,CCTV-3高清 | |
http://192.168.2.2/rtp/239.93.1.11:2223 | |
#EXTINF:-1,CCTV-5高清 | |
http://192.168.2.2/rtp/239.93.1.12:2224 | |
#EXTINF:-1,CCTV-6高清 |
This file contains 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
{"0.47443138575181365":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgME7/ziCXG6PYXhqx9kjyZ+mMQUyXJxQbN7\r\nUrCD0bHGqY1iF77NlTHscP3zCzw93FjVxRfCaOzvudCJq38vCk/3EM3/AAAACDxn\r\naXRodWI+wv8AAACNBBATCAA//wAAAAWCVrIF1f8AAAACiwn/AAAACZBpcAovrA6V\r\nnP8AAAAFlQgJCgv/AAAAA5YBAv8AAAACmwP/AAAAAp4BAACxeQD+IM5nEZE1NqCI\r\n9jwgrAVr3rr1dsjcWNIsfxEbjTijJVsBAKX7pOuDqxmzFLsIjmBAB6X78Uz57c1T\r\no03LXmTPkPrlzv8AAABWBAAAAAASCCqGSM49AwEHAgMEbI6vOoOByVxFIfYxygoL\r\nCi7jTquVlMbjrmP/OvmfWu0yIPD9QRUY2wJ6/WPSunvSpzc03UQwz+ncsYJA868y\r\n6gMBCAfC/wAAAG0EGBMIAB//AAAABYJWsgXW/wAAAAmQaXAKL6wOlZz/AAAAApsM\r\nAAAr8AD/QO4f2edSFy6uq6ED8EjJYx6wKivOKYxKvJfLB1Q2c4QBAMvlvWoGoiOX\r\nv9sPgqFT45eXJ9QI3yjVSor8P/JBSqTt\r\n=UcaR\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"} |
This file contains 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
test |