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
| function Get-IPInfo { | |
| param ([String] $ip) | |
| $result = Invoke-WebRequest -Uri "https://ipinfo.io/$ip" | |
| $json = $result.Content | ConvertFrom-Json | |
| $output = [PSCustomObject]@{ | |
| ip = $json.ip | |
| location = "$($json.city), $($json.region), $($json.country), $($json.postal)" | |
| timezone = $json.timezone | |
| provider = $json.org |
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
| using System.Text; | |
| if (args.Length < 1) { | |
| throw new Exception("Missing target file"); | |
| } | |
| await using FileStream fs = File.OpenRead(args[0]); | |
| Encoding encoding = Encoding.GetEncoding(28591); | |
| using StreamReader sr = new StreamReader(fs, encoding); | |
| String binaryText = await sr.ReadToEndAsync(); |
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
| #include <stdlib.h> | |
| #include <Windows.h> | |
| int main(int argc, char* argv[]) { | |
| double opacity = 90.0; | |
| if (argc > 1) { | |
| opacity = atof(argv[1]); | |
| } | |
| BOOL firstCheck = TRUE; |