Skip to content

Instantly share code, notes, and snippets.

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
@nexus4880
nexus4880 / pdbgrabber.cs
Created November 23, 2023 16:46
Unity PDB Grabber
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();
@nexus4880
nexus4880 / setdiscordopacity.c
Created November 23, 2023 16:45
SetDiscordOpacity
#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;