写在前面
现在很多人都有魔法上网手段,常用的魔法上网工具有 SSR 和 V2rayN 两种。
这两种工具已经相当强大,能够使我们坐地日行八万里,访问我们喜爱的网站。
但是这两种工具也有美中不足之处:似乎它们只支持浏览器访问网页时走代理,
而对于除了浏览器以外的应用程序,就并没有通过代理,导致一些被墙的软件不能很好地使用。
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
写在前面
现在很多人都有魔法上网手段,常用的魔法上网工具有 SSR 和 V2rayN 两种。
这两种工具已经相当强大,能够使我们坐地日行八万里,访问我们喜爱的网站。
但是这两种工具也有美中不足之处:似乎它们只支持浏览器访问网页时走代理,
而对于除了浏览器以外的应用程序,就并没有通过代理,导致一些被墙的软件不能很好地使用。
You requested maxclients of 10000 requiring at least 10032 max file descriptors.
Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
var AWS = require('aws-sdk'); | |
var sqs = new AWS.SQS({ | |
region: process.env.AWS_REGION | |
}); | |
var dynamodb = new AWS.DynamoDB(); | |
var REPEAT_THRESHOLD = process.env.REPEAT_THRESHOLD || 20000; | |
function receiveSQSMessages(callback) { | |
var params = { | |
QueueUrl: process.env.TASK_QUEUE_URL, |
# OpenVPN Let's Encrypt first run config file | |
#https://loige.co/using-lets-encrypt-and-certbot-to-automate-the-creation-of-certificates-for-openvpn/ | |
cert-name= | |
authenticator = standalone | |
standalone-supported-challenges = tls-sni-01 | |
non-interactive = True | |
rsa-key-size = 4096 | |
email = "user@server.com" | |
domains = "vpn.server.com" |
import okhttp3.Call | |
import okhttp3.Callback | |
import okhttp3.Response | |
import java.io.IOException | |
import java.util.concurrent.CompletableFuture | |
fun Call.executeAsync(): CompletableFuture<Response> { | |
val future = CompletableFuture<Response>() | |
enqueue(object : Callback { | |
override fun onResponse(call: Call, response: Response) { |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Purchasing; | |
// Deriving the Purchaser class from IStoreListener enables it to receive messages from Unity Purchasing. | |
using UnityEngine.Purchasing.Security; | |
public class Purchaser : MonoBehaviour, IStoreListener |
This tutorial demonstrates how to use Google Apps Script to:
Create copies of the Google Sheet in the desired destination folder automatically at set intervals.
Append the time stamp with each backup file's name.
Adjust time trigger for backing up every day/hour/minute.
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
1. Open Terminal, then goto this folder: cd ~/Library/Developer/Xcode/Archives | |
2. Perform delete all folders and files: rm -rf * | |
You may need root permission to perform delete. |