All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
This file contains hidden or 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
| @echo off | |
| reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f | |
| reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f | |
| reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f | |
| pause |
This file contains hidden or 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
| # 生成 dhparam.pem 文件, 在命令行执行任一方法: | |
| # 方法1: 很慢 | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | |
| # 方法2: 较快 | |
| # 与方法1无明显区别. 2048位也足够用, 4096更强 | |
| openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam.pem 4096 |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| ; 7-Zip Windows 11 Context Menu entries via whitelisted id reuse example by AveYo | |
| ; Add to archive.. only single files (multiple would need a single instance redirect tool) | |
| [-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive] | |
| [HKEY_CURRENT_USER\SOFTWARE\Classes\*\shell\connectNetworkDrive] | |
| "MuiVerb"="@C:\\Program Files\\7-Zip\\7-zip.dll,-2324" | |
| "Position"="Middle" | |
| "Icon"="C:\\Program Files\\7-Zip\\7-zip.dll,0" |
This file contains hidden or 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 | |
| # X.Org 任意窗口划词翻译 | |
| # 在 DE/WM 中设置快捷键执行 | |
| # 分单词和句子两种模式,notification 中显示的都是 Google 翻译的结果,但单词附带百度翻译的链接,句子附带 Google 翻译的链接 | |
| # notification 中附带的链接是否能点开依赖于 notification daemon,dunst 需要在设置中的 `mouse_left_click` 处加上 `open_url` | |
| # 翻译的单词连同日期和窗口标题会记录在 ~/.cache/translated-words.txt | |
| # 可以使用 http_proxy 环境变量设置代理 | |
| # notification 的 appname 是 "xorg-translate",在 dunst 中可以对其进行配置,例如设置图标 | |
| # |
This file contains hidden or 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
| ::-webkit-scrollbar { | |
| width: 6px; | |
| height: 6px; | |
| background-color: #F5F5F5; | |
| } | |
| ::-webkit-scrollbar-track{ | |
| -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.3) inset; | |
| background-color: #F5F5F5; | |
| } | |
| ::-webkit-scrollbar-thumb{ |
2020年初因为新冠肺炎爆发,所以在家办公,公司给配置了L2TP的VPN,但是我不想所有流量都走VPN(VPN比较慢而且也节省流量),于是想到用路由表给VPN分流。
具体的方案就是公司内网的流量走VPN,外网流量走默认网关。
我是在macOS上操作的,其他平台应该也差不多。
假设:
公司内网 192.168.10.0/24
家里网络 192.168.1.0/24
你已经配置好VPN并且可以使用了。
This file contains hidden or 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
| # Summary | |
| A few notes I took to see if I could use MacOS as Hypevirsor in a similar fashion to Linux | |
| I wanted to see how few addons were needed instead of using Parallels, Virtual Box, VM Fsion etc. | |
| The idea is to use QEMU, Hypervisor Framework (https://developer.apple.com/documentation/hypervisor) and some custom host networking. | |
| # Installations | |
| brew install qemu (For controlling Hypervisor Framework) | |
| brew install cdrtools (For making cloud init iso's) | |
| http://tuntaposx.sourceforge.net/download.xhtml (For customer tap based networking) |
Please see other gists for updated information. https://gist.github.com/XenoPanther/15d8fad49fbd51c6bd946f2974084ef8
NewerOlder