Google, which has an ambitious plan to address climate change with cleaner operations, came nowhere close to its goals last year, according to the company’s annual Environmental Report Tuesday.
I will give you an example, this was for a recent project we had with a machine that requires to be connected to the internet at all times through a VPN connection.
How to setup Windows VPN to automatically reconnect after connection loss using PowerShell?
UsingPowerShellScriptCreate a PowerShellScript to Monitor and ReconnectVPN:
OpenNotepad and paste the following script:
In powershell
$vpnName="Your_VPN_Connection_Name"$username="your_username"$password="your_password"while ($true) {
$vpnConnection=Get-VpnConnection-Name$vpnNameif ($vpnConnection.ConnectionStatus-ne "Connected") {
rasdial $vpnName$username$password
}
Start-Sleep-Seconds60
}
Replace$vpnName, $username, and $password with your VPN connection details.
Save this file with a .ps1 extension, e.g., vpn_reconnect.ps1.
SetUpTaskScheduler to Run the PowerShellScript:
Follow the same steps asinMethod2, but when selecting the program to start, use powershell.exe and add the script path as an argument.
Example: powershell.exe -File"C:\path\to\your\vpn_reconnect.ps1"
it’s funny how you say “it provides correct answers”, dump six paragraphs of half-baked, malformatted instructions (that, if followed, spawn an endless stream of non-terminating powershell processes), then ten minutes later admit in a different comment that “sometimes the information it provides is incorrect”
Because… AI is able to find answers to my questions faster than Google can? wat. Time is precious, ain’t got time fo dat.
When time is precious, use AI for all your glue in pizza queries.
Of course, Google is also crapified, but at least there is still a search engine underneath.
So does AI.
This is a pretty solid tool: https://www.perplexity.ai/
you are way, way too short for this ride
typically one prefers their questions be answered correctly. but hey, you are free to be wrong faster now
It provides correct answers.
I will give you an example, this was for a recent project we had with a machine that requires to be connected to the internet at all times through a VPN connection.
Using PowerShell Script Create a PowerShell Script to Monitor and Reconnect VPN: Open Notepad and paste the following script: In powershell $vpnName = "Your_VPN_Connection_Name" $username = "your_username" $password = "your_password" while ($true) { $vpnConnection = Get-VpnConnection -Name $vpnName if ($vpnConnection.ConnectionStatus -ne "Connected") { rasdial $vpnName $username $password } Start-Sleep -Seconds 60 } Replace $vpnName, $username, and $password with your VPN connection details. Save this file with a .ps1 extension, e.g., vpn_reconnect.ps1. Set Up Task Scheduler to Run the PowerShell Script: Follow the same steps as in Method 2, but when selecting the program to start, use powershell.exe and add the script path as an argument. Example: powershell.exe -File "C:\path\to\your\vpn_reconnect.ps1"
holy fuck shut up, nobody fucking asked
it’s funny how you say “it provides correct answers”, dump six paragraphs of half-baked, malformatted instructions (that, if followed, spawn an endless stream of non-terminating powershell processes), then ten minutes later admit in a different comment that “sometimes the information it provides is incorrect”
wait no funny isn’t the correct word is it
bloody amazing to see them airdrop in pitching perplexity when literally last week perplexity was caught pants down stealing
llm systems so good they still need human reputation-washers!