标签: javascript

7 篇文章

thumbnail
Dnsmasq – PXE boot using Netboot.xyz
from--https://forum.openwrt.org/t/dnsmasq-pxe-boot-using-netboot-xyz/56075   Installing and Using OpenWrtNetwork and Wireless Configuration Feb 2020 1 / 4 Feb 2020 Jun 2022 seegee 1 Feb '20 I'm trying to set configure dnsmasq to point dhcp clients to a PXE server running on another machine. Specifically, the PXE server is running Netboot.xyz as a container within dock…
fuser与lsof — 查看文件被哪些进程占用 
from--https://www.cnblogs.com/ccbloom/p/11301159.html   目录 fuser lsof       fuser   命令安装。 [root@template ~]# yum -y install psmisc [root@template ~]# rpm -ql psmisc /usr/bin/killall /usr/bin/peekfd /usr/bin/prtstat /usr/bin/pstree /usr/bin/pstree.x11 /usr/sbin/fuser 作用:查看文件、目录或者socket所属进程的PID,由此知道该文件或目录被哪些进程所使用 用法: [root@template ~]# man fuser fuse…
i3wm – Enable Autostart
from--https://gott50.github.io/i3wm-autostart/ Today we want to enable our Autostart Scripts by starting i3wm. Find i3 Config File Fist we need to find our i3 Config File register a Script, witch runs when we start i3. It is most likely located at ~/.config/i3/config Run Script on Start of i3 Now we just tell i3 to run a Bash Script autostart.sh located at ~/.config/i3/ on…
linux – sleep毫秒 – Bash:无限的睡眠(无限的阻挡)
from--https://code-examples.net/zh-CN/q/2cc98f     bash sleep ms (9) tail不阻挡 一如既往:对于所有事情,都有一个简短,易于理解,易于遵循且完全错误的答案。 这里tail -f /dev/null属于这个类别;) 如果你用strace tail -f /dev/null来看它,你会注意到,这个解决方案远非阻塞! 这可能比问题中的sleep解决方案还要糟糕,因为它使用(在Linux下)像inotify系统这样的宝贵资源。 写入/dev/null其他进程/dev/null导致tail循环。 (在我的Ubuntu64 16.10上,这在已经繁忙的系统上每秒增加几十个系统调用。) 问题是阻塞命令 不幸的是,没有这样的事情.. 阅读:我不知道任何方式直接存档与…
thumbnail
理解caddy “ auto_https”以及为什么禁用它仍然可以使用HTTPS而不是HTTP
from--https://caddy.community/t/making-sense-of-auto-https-and-why-disabling-it-still-serves-https-instead-of-http/9761 维基 2020年9月 1/2 2020年9月 Oct '22 偏光片布伦南·金尼 Sep '20 当你的 网站地址 17 遵守要求 自动HTTPS激活 78, Caddy隐式侦听HTTPS端口(默认443 )。 可以使用Caddyfile配置自动HTTPS 全球选择 auto_https 93, 或通过 每个服务器JSON配置 30。auto_https 可以设置为以下任一条件: disable_redirects—禁用隐式HTTP- > HTTPS重定向。 off —除了删除隐式重定向之外,还禁用…
thumbnail
friTap-动态解密TLS friTap – Decrypting TLS on the fly
from--https://lolcads.github.io/posts/2022/08/fritap/   2022-08-12 [Updated: 2022-08-12] :: Daniel Baier and Francois Egner :: 16 min read (3361 words) #frida  #network  #TLS  #TLS decryption  Table of Contents Encryption - a curse and a blessing at the same time Man-in-the-middle proxy as a solution Our approach: Abstraction of using a library friTap usage friTap int…
JavaScript 复制图片
JS复制页面中的图片,原理是以html的方式复制到其他地方,不支持html解析的编辑器粘贴会有问题,类似qq这种可能会被禁止获取图片。 实际使用不如浏览器右键点击复制 使用js的复制框架实现 [xml] <html> <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script> <script type="text/javascript" src="https://cdn.bootcss.com/clipboard.js/2.0.4/clipboard.min.js"></sc…