E家之长 发布的文章 - 🥝 E 家 分 享 🥝
首页
📋 留言板
🔗 友情链接
🛠️ E家百宝箱
❤️ 关于
推荐
🔍 VPS监控
🐉 青龙面板
💽 E家网盘
----------
🔗 CloudFlare
🔗 甲骨文云
🔗 RackNerd
搜 索
1
自动提取 ChromeGo 一键翻墙包内的免费节点
146 阅读
2
【汇总:免费节点 - 每周更新】
114 阅读
3
GigaFile - 日本免费大文件加密分享服务,最长保留文档100天
72 阅读
4
CloudFlare WARP 免费 VPN 搭建教程
56 阅读
5
【E家分享月刊系列】2024-12
56 阅读
精选网站
网站搭建
科学上网搭建
有感而发
软件技巧
Excel技巧
WordPress技巧
登录
搜 索
标签搜索
WordPress
脚本
GitHub
科学上网
哈佛管理导师
E家分享月刊系列
V2ray
Mac软件
AI
Cloudflare
Docker
免费节点
建站在线工具
Excel技巧
Notion
Nginx
ChatGPT
图像编辑
免费图床
网盘资源
E家之长
累计撰写
195
篇文章
累计收到
245
条评论
首页
栏目
精选网站
网站搭建
科学上网搭建
有感而发
软件技巧
Excel技巧
WordPress技巧
页面
📋 留言板
🔗 友情链接
🛠️ E家百宝箱
❤️ 关于
推荐
🔍 VPS监控
🐉 青龙面板
💽 E家网盘
----------
🔗 CloudFlare
🔗 甲骨文云
🔗 RackNerd
用户登录
登录
找到
195
篇与
E家之长
相关的结果
2023-04-04
VPS 通用 DD 重装系统脚本
前言想尝试更加稳定的 Debian 系统,因此想 DD 目前的系统,下面提供的脚本适合绝大部分 VPS 使用。警告:重装系统将抹掉所有数据,并可能导致服务器无法开机!所以请确保服务器上所有文件和数据库都已备份完成!请谨慎操作!重装 Linux 系统(例如重装系统为 Debian 11)bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 123456 -port 22脚本解释:Linux 系统参数 -d 11:对应 Debian 不同版本【7、8、9、10,11】 -u 20.04:对应 Ubuntu 不同版本【14.04、16.04、18.04、20.04】密码参数 -p 12345:12345 为重启后 root 账户需要输入的密码端口参数 port 22安装完成后 VPS 会重启安装,等待约10分钟左右,尝试重新连接。 重启后,用户名为 root,密码是刚设置的 12345。成功连接后输入下面的更新组件和 BBR 命令,完善 Linux 系统环境。更新并安装组件 curl、socat、wgetapt update -y && apt install -y curl && apt install -y socat && apt install wget -y安装 BBR 加速wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh接下来可以考虑安装宝塔面板或 Docker。参考文章https://kejilion.blogspot.com/2022/09/vpsdd.html
2023年04月04日
4 阅读
0 评论
0 点赞
2023-04-01
自动切换 cdn.jsdelivr.net 域名的脚本
前言cdn.jsdelivr.net 有时候会出现国内无法访问的情况,以至于造成网站 js, css, image,字体等文件无法正常显示。 因此 BestTools 大神开发出自动检查 cdn.jsdelivr.net 是否可用的脚本, 如果不可用时,会自动把所有资源地址切换到其他可用的域名。比如:gcore.jsdelivr.net,fastly.jsdelivr.net等其他 CDN。项目地址Github 地址:https://github.com/PipecraftNet/jsdelivr-auto-fallback使用方法直接复制 index.js 或 index.min.js 里的内容,加到网站里。强烈建议添加到 head 标签最上面。所有 script 标签加上 defer 属性。如果原来有 async 属性,可以跳过。这个可以避免 pending 状态带来的等待时间,大大提升性能。如果是 hexo 生成的网站,可以安装 hexo-filter-jsdelivr-auto-fallback 插件,自动添加。示例:# 可以把 js 文件放到其他目录下进行引用 <script defer src="index.js"></script> <script defer src="index.min.js"></script>index.js 代码:((document) => { 'use strict'; let fastNode; let failed; let isRunning; const DEST_LIST = [ 'cdn.jsdelivr.net', 'fastly.jsdelivr.net', 'gcore.jsdelivr.net', 'cdn.zenless.top', 'testingcf.jsdelivr.net', 'test1.jsdelivr.net' ]; const PREFIX = '//'; const SOURCE = DEST_LIST[0]; const starTime = Date.now(); const TIMEOUT = 2000; const STORE_KEY = 'jsdelivr-auto-fallback'; const TEST_PATH = '/gh/PipecraftNet/jsdelivr-auto-fallback@main/empty.css?'; const shouldReplace = (text) => text && text.includes(PREFIX + SOURCE); const replace = (text) => text.replace(PREFIX + SOURCE, PREFIX + fastNode); const setTimeout = window.setTimeout; const $ = document.querySelectorAll.bind(document); const replaceElementSrc = () => { let element; let value; for (element of $('link[rel="stylesheet"]')) { value = element.href; if (shouldReplace(value) && !value.includes(TEST_PATH)) { element.href = replace(value); } } for (element of $('script')) { value = element.src; if (shouldReplace(value)) { const newNode = document.createElement('script'); newNode.src = replace(value); element.defer = true; element.src = ''; element.before(newNode); element.remove(); } } for (element of $('img')) { value = element.src; if (shouldReplace(value)) { // Used to cancel loading. Without this line it will remain pending status. element.src = ''; element.src = replace(value); } } // All elements that have a style attribute for (element of $('*[style]')) { value = element.getAttribute('style'); if (shouldReplace(value)) { element.setAttribute('style', replace(value)); } } for (element of $('style')) { value = element.innerHTML; if (shouldReplace(value)) { element.innerHTML = replace(value); } } }; const tryReplace = () => { if (!isRunning && failed && fastNode) { console.warn(SOURCE + ' is not available. Use ' + fastNode); isRunning = true; setTimeout(replaceElementSrc, 0); // Some need to wait for a while setTimeout(replaceElementSrc, 20); // Replace dynamically added elements setInterval(replaceElementSrc, 500); } }; const checkAvailable = (url, callback) => { let timeoutId; const newNode = document.createElement('link'); const handleResult = (isSuccess) => { if (!timeoutId) { return; } clearTimeout(timeoutId); timeoutId = 0; // Used to cancel loading. Without this line it will remain pending status. if (!isSuccess) newNode.href = 'data:text/plain;base64,'; newNode.remove(); callback(isSuccess); }; timeoutId = setTimeout(handleResult, TIMEOUT); newNode.addEventListener('error', () => handleResult(false)); newNode.addEventListener('load', () => handleResult(true)); newNode.rel = 'stylesheet'; newNode.text = 'text/css'; newNode.href = url + TEST_PATH + starTime; document.head.insertAdjacentElement('afterbegin', newNode); }; const cached = (() => { try { return Object.assign( , JSON.parse(localStorage.getItem(STORE_KEY) || '') ); } catch { return ; } })(); const main = () => { cached.time = starTime; cached.failed = false; cached.fastNode = null; for (const url of DEST_LIST) { checkAvailable('https://' + url, (isAvailable) => { // console.log(url, Date.now() - starTime, Boolean(isAvailable)); if (!isAvailable && url === SOURCE) { failed = true; cached.failed = true; } if (isAvailable && !fastNode) { fastNode = url; } if (isAvailable && !cached.fastNode) { cached.fastNode = url; } tryReplace(); }); } setTimeout(() => { // If all domains are timeout if (failed && !fastNode) { fastNode = DEST_LIST[1]; tryReplace(); } localStorage.setItem(STORE_KEY, JSON.stringify(cached)); }, TIMEOUT + 100); }; if ( cached.time && starTime - cached.time < 60 * 60 * 1000 && cached.failed && cached.fastNode ) { failed = true; fastNode = cached.fastNode; tryReplace(); setTimeout(main, 1000); } else { main(); } })(document);index.min.js 代码:(n=>for(e of v("img"))t=e.src,d(t)&&(e.src="",e.src=m(t));for(e of v("*[style]"))t=e.getAttribute("style"),d(t)&&e.setAttribute("style",m(t));for(e of v("style"))t=e.innerHTML,d(t)&&(e.innerHTML=m(t))},y=()=>,b=(()=>,JSON.parse(localStorage.getItem(c)||""))}catch}})();var h=()=>;r=u(l,o),s.addEventListener("error",()=>l(!1)),s.addEventListener("load",()=>l(!0)),s.rel="stylesheet",s.text="text/css",s.href=e+f+i,n.head.insertAdjacentElement("afterbegin",s)})("https://"+t,e=>);u(()=>,o+100)};b.time&&i-b.time<36e5&&b.failed&&b.fastNode?(s=!0,r=b.fastNode,y(),u(h,1e3)):h()})(document);用户脚本作为用户,你也可以使用油猴脚本将网站中的 cdn.jsdelivr.net 替换为可以访问的域名。浏览器安装 Tampermonkey。安装脚本: https://greasyfork.org/zh-CN/scripts/445701-jsdelivr-auto-fallbackjsdelivr 可用节点比较gcore.jsdelivr.netGcore 节点可用性高testingcf.jsdelivr.netCloudflare 节点可用性高quantil.jsdelivr.netQuantil 节点可用性尚可fastly.jsdelivr.netFastly 节点可用性尚可originfastly.jsdelivr.netFastly 节点可用性低cdn.jsdelivr.net通用节点可用性低参考文章https://www.neosey.com/archives/55.htmlhttps://iui.su/167/
2023年04月01日
5 阅读
0 评论
0 点赞
2023-03-31
RSS 入门指南:如何将「RSS阅读」与笔记软件进行整合?
转载:https://sspai.com/post/77222 by Spike112 2022-12-12We Are What We Eat 数据算法的阴影在如今的时代,各大信息渠道已经被数据算法所主宰。We Are What We Eat. 信息摄入其实也是一种「摄入行为」。在大数据、人工智能等技术等加持下,数据算法的投喂在很大程度上决定了我们所思、所想、所念、所动。对此,有人选择数字极简主义,减少甚至关闭朋友圈,前往一些去中心化的社交媒体平台。有人选择回归 RSS, 试图重新掌控信息获取的渠道。为什么选择 RSS?使用 RSS 具有以下优点:所有信息聚合在 RSS 阅读器之中,而不是分散在不同的资讯平台,避免了反复切换不同平台之苦;用户需要主动选择信息源,培养读者的信息筛选意识;关于 RSS 获取和使用, 少数派等平台已有不少讨论。具体见参考文献。本文的目的是讨论如何在 Notion、FlowUs 等笔记软件中整合 RSS.在此之前,对于新手而言,如何使用 RSS 则是首先面临的问题。以下是根据我的使用体验,提供的一些具体方案:如何使用 RSS?使用 RSS 服务,需要解决两个问题:RSS 订阅源;RSS 阅读器。具体常见解决方案如下:RSS 订阅源RSS 订阅源这是大多数人比较苦恼的问题。网络上有不少现成的服务。RSShub 首推。RSShub 一个开源、简单易用、易于扩展的 RSS 生成器,可以给任何奇奇怪怪的内容生成 RSS 订阅源。安装 RSShub 插件,可以直接发现某个站点提供的 RSS 源。RSS 服务商内置 Feed 发现源。推荐使用最为常见的 RSS 服务商——Inoreader/Feedly. 直接在其内部检索名字,便可以发现 RSS 源。或者你在这些 RSS 服务内部订阅某个 RSS 源,便会推荐相关 RSS 源。特殊类型的 RSS 订阅。比如,除了需要支持订阅RSS源,用户也希望订阅Podcast、微博、Youtube、Twitter、NewsLetters 等。这类需求,可以借助一些免费的开源服务,比如 RSShub. 此方案的缺点是需要用户手动配置,进行折腾。另外一些 RSS 服务商,则直接提供了相关服务,但是一般需要收费。下面分享两种 RSS 订阅方案。对于大陆用户而言,很多人的需求是希望直接 RSS 微信公众号。目前,有些站点提供 RSS 微信公众号服务。比如,WeRSS、Feeddd、 wechat2rss. WeRSS 为订阅制,更为稳定一些。后两者为免费,但是公众号源比较少。公众号 RSS,对于一些小众的微信公众号可能拥有比较高的延迟。对于 RSS 微信公众号的个人建议是,不折腾的方案,便是使用微信生态下的微信读书进行订阅,直接阅读和批注,最后一键导出批注内容粘贴至笔记软件。至于 Newsletter 订阅,存在免费的在线服务 Kill the Newsletter!支持将 Newsletter 转化为 RSS 源。 Matter也可以免费聚合你的 Newsletter. 用户分享。有一些资深用户汇总并公开了自己的 RSS 源。需要的用户可自取。比如,RSS SourceRSS 阅读器RSS 阅读器:有些 RSS 服务商,直接提供 RSS 阅读器。比如,Inoreader. 此外,有些专门的 RSS 阅读器,支持聚合多种 RSS 服务。比如,Mac 上的老牌 RSS 阅读器 Reeder. 此外,NetNewsWire、irreader 等 RSS 阅读器也各有特点。关于 RSS 阅读器,网络上已有不少相关的详细评测。根据自己需求选择,不再赘述。RSS 阅读器部分评测文章见参考文献。在 Notion、FlowUs 等笔记软件进行整合 RSS解决方案 1: 使用 API 服务,自动将 RSS 内容同步至笔记软件目前,Notion 已经支持 API. 下面以 Notion 为例进行介绍:使用通用的自动化服务工具。比如 Zapier、IFTTT、integrately、Make,直接将 RSS 服务商「Inoreader、Feedly」与 Notion 进行关联;国内自动化服务商集简云,也提供了 RSS 订阅。使用第三方生态服务。比如,服务于 Notion的 NotionFeed.NotionFeed解决方案 2: 使用在线 RSS 服务,将其嵌入笔记软件此方案适用于阅读一些精选的 RSS 源,或者对于 RSS 的轻量级使用。具体来说,使用 RSS feed in your Notion pages具体操作步骤使用 RSShub 等发现 RSS 源;将 RSS URLs 粘贴至 RSS feed 提供的 RSS 源转换器。复制所转换的链接,嵌入至笔记软件。RSS feed 代码常见模式:https://notion-widget-rss.vercel.app/?sources=URLs定制模式:支持字体和主题定制。字体mono: &font=mono ;serif: &font=serif;default (sans-serif): &font=default主题白天:&theme=light黑暗:&theme=dark示范:白天:https://notion-widget-rss.vercel.app/?font=serif&theme=light&sources=URLs黑暗:https://notion-widget-rss.vercel.app/?font=mono&theme=dark&sources=URLs使用示范下面以少数派为例,演示如下:使用 RSShub 发现 少数派 RSS 源为:https://sspai.com/feed使用目标 RSS 链接替换示范代码中的 RSS 链接即可。将原链接替换为少数派链接。https://notion-widget-rss.vercel.app/?font=serif&theme=light&sources=https://sspai.com/feedhttps://notion-widget-rss.vercel.app/?font=mono&theme=dark&sources=https://sspai.com/feed3. 嵌入转换好的 RSS 源。在笔记软件中,粘贴链接,选择转换为「嵌入网页」如图,嵌入少数派 RSS 的使用效果。使用多维表格进行 RSS 阅读管理为了更好地管理 RSS 源,建议使用多维表格管理 RSS 订阅页面。点击 RSS 订阅页面,以「右侧分页」打开页面。浏览资讯目录;对于感兴趣的资讯,直接点击链接,跳转至网页;打开简悦等插件,进入阅读模式,进行沉浸阅读和批注;保存阅读高亮和评论至 Notion、FlowUs 等笔记软件;FlowUs 嵌入效果最后,关于更多 RSS 的使用方法和技巧见参考文献。参考文献ALL about RSS:一个 RSS 相关工具、应用、服务的搜整列表Pipecraft 社区 交流关于 RSS, Atom, JSON Feed, 聚合新闻等话题。可以推荐、推广 RSS 阅读器,交流 RSS 源,RSS 使用心得、技巧等。为不提供RSS源的网站提供RSS的服务论 RSS 的「复兴」RSS - 高效率的阅读方式 - 少数派高效获取信息,你需要这份 RSS 入门指南基于 RSS 的信息体系构建 - 少数派通过 RSSHub 订阅不支持 RSS 的网站2022 年还能用的 RSS 源,微信公众号也有!少数派思考 007:关于 RSS - 少数派我的 RSS 资源获取站点 - 少数派如何用 RSS 实现个性化订阅 - 少数派RSS:多个RSS平台对比 - 少数派Mac 上的 RSS 阅读工具,你有这些好看实用的选择Notion 优质资源汇总FlowUs 息流·深度评测——一款知识管理和在线协作平台组件世界 WidgetStore :一个丰富、强大的嵌入式小组件库盘点那些具有特色的笔记软件盘点那些具有特色的写作软件【END】
2023年03月31日
5 阅读
0 评论
0 点赞
2023-03-31
Nginx 禁止直接访问目录或文件
前言Nginx 需要设置禁止直接访问目录或文件,如果不禁止,Nginx 会直接去下载 web 目录下文件,如果有配置文件,则可以直接暴露一些配置文件源代码。禁止方法禁止访问某些后缀文件禁止所有 ini、conf、txt 后缀的文件location ~ \.(ini|conf|txt)$ { deny all; }禁止指定某个目录后缀 php 后缀的文件location /wp-content/uploads { location ~ .*\.(php)?$ { deny all; } }禁止指定多个目录后缀为 php 的文件location ~* ^/(css|uploads)/.*\.(php)${ deny all; }禁止访问目录或目录下文件禁止访问目录location ^~ /test/ { deny all; }禁止访问目录下文件location ^~ /test { deny all; }Nginx location 匹配相关= 表示精确匹配^~ 表示uri以某个字符串开头~ 正则匹配(区分大小写)~* 正则匹配(不区分大小写) !~和!~*分别为区分大小写不匹配及不区分大小写不匹配的正则/ 任何请求都会匹配匹配优先级:= > ^~ > /Nginx 配置图片直接下载不打开location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { add_header Content-Disposition attachment; }
2023年03月31日
7 阅读
0 评论
0 点赞
2023-03-28
PowerPoint 中的录音室
前言下面是微软网站的文章,介绍 PowerPoint 中的录音室功能,比较实用。原文PowerPoint’s New Recording Studio Helps You Tell Your Story in Your WordsBy Andrea Eoanou Published Nov 02 2021 08:00 AMA compelling story. Stellar images. A powerful connection to your audience. Together, they contribute to a memorable and effective PowerPoint presentation. For many people, though, the logistics of recording a presentation can cause as much – or even more – stress than the process of creating it. Making recording less stressful frees you to focus on instructing, inspiring, and entertaining those who watch your presentation. PowerPoint’s new recording studio now gives you an enhanced recording experience and more options when recording your presentation.Delivering your message to your audience should not depend on you being physically or virtually present. Recording studio in PowerPoint lets you tell your story, in your own words, helping you deliver more impactful and engaging presentations. Click Record in the top right corner in PowerPoint - and you will be taken to a personalized view that you can customize. Once you’re ready to start the recording, click the red “Record” button for a countdown to start speaking. You can also annotate on your slides as you go, using ink and laser pointer.Whether you write high-level notes, or script every word, PowerPoint notes can help you stay on track while recording. We understand everyone is unique and may have different preferences for viewing their own content, so we’ve created three new recording studio views to choose from:1. Teleprompter view: This is the default view you’ll see when you click Record. It is ideal for many recordings, as it helps you to focus on getting your points across successfully. Instead of fumbling with a printout of your notes or juggling two laptops to read notes from one, you can simultaneously look at the camera and read your notes.2. Presenter view: Do you feel more comfortable when you can be reminded of what’s coming up in a presentation? Choose this view and on the same screen, you’ll see the slide you’re presenting and your note on the right side of the pane, along with thumbnail views of all upcoming slides so you can be prepared. This view is similar to our PowerPoint Live presenter view.3. Slide view: Perhaps you’re a minimalist and want to focus on the slide you’re presenting. Or, maybe your slides are so loaded with useful content that you don’t need notes and you like to speak spontaneously. This view is also recommended if you plan to make annotations on the slide as you go and need a larger canvas. Editing and Sharing Your PresentationOnce you’re done recording, you can preview the video and re-record if necessary. When you’re ready, the new experience allows you to quickly create a video to share with others directly within the flow. Your recording – including your video, voice, slides, and annotations – are all captured and recorded as part of the presentation.If you want to update text on a slide or adjust the layout directly from your presentation, you can update your slide content directly without the need to re-record the voice and video portion of your presentation! You can even leverage the power of Designer in PowerPoint to quickly update a polished looking layout for your slides. When you’re done making any additional edits, click Export in the new Record tab to go directly to a simplified flow to create an update of the video.If your PowerPoint file and video are on SharePoint or OneDrive, they’re automatically saved to the same location. You can share the presentation with reviewers or others from the library and the video will play with the new Microsoft Stream player (built on SharePoint). In addition, you can easily get back to all your exported videos from the new Stream start page in Office.com.When you’re planning your next PowerPoint presentation, remember that recording studio can help you deliver your story with confidence. Watch our Ignite video and try it for yourself in early 2022 to explore the new views and consider which one works best with your presentation style.Continue the conversation by joining us in the Microsoft 365 Tech Community! Whether you have product questions or just want to stay informed with the latest updates on new releases, tools, and blogs, Microsoft 365 Tech Community is your go-to resource to stay connected!参考文章: https://techcommunity.microsoft.com/t5/microsoft-365-blog/powerpoint-s-new-recording-studio-helps-you-tell-your-story-in/ba-p/2897166【END】
2023年03月28日
5 阅读
0 评论
0 点赞
1
...
18
19
20
...
39