Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
stylefish / cputemp.ps1
Last active Jan 4, 2018
OneLine PowerShell Script to Output Processor Core Temperatures in Celsius
View cputemp.ps1
# must be run as administrator, will fail if unsupported by bios
Get-WmiObject MSAcpi_ThermalZoneTemperature -namespace "root/wmi" | % { "Temp $($_.InstanceName.Replace('ACPI\ThermalZone\', '')): $(($_.CurrentTemperature * 10 - 27315) / 100)°C" }
# sample output:
# Temp TZ00_0: 27.85C
# Temp TZ01_0: 29.85C
stylefish / wpad.js
Last active Dec 27, 2017
A slightly more complex example of a proxy pac (wpad.dat) script file with multiple internal hosts and networks
View wpad.js
function FindProxyForURL(url, host) {
// your proxy hostname (myproxy.mynetwork.local)
var proxyHostname = "${asg_hostname}";
var proxyPort = 8080;
// regex patterns to exclude from proxy (put your internal networks here)
var directRegexPatterns = [

Keybase proof

I hereby claim:

  • I am stylefish on github.
  • I am stylefish ( on keybase.
  • I have a public key whose fingerprint is F786 2178 8BF8 6E12 8103 50DE BBDD C939 5747 057A

To claim this, I am signing this object: