Skip to content

Instantly share code, notes, and snippets.

View Lilleengen's full-sized avatar

Henrik Aarberg Lilleengen Lilleengen

View GitHub Profile
## Keybase proof
I hereby claim:
* I am Lilleengen on github.
* I am ithenrik (https://keybase.io/ithenrik) on keybase.
* I have a public key whose fingerprint is 12DF 1335 92CD 89BE 2D96 4365 985E 8133 D802 2339
To claim this, I am signing this object:
@Lilleengen
Lilleengen / EnterPin.ps1
Created December 29, 2022 09:37
Enter cellular SIM PIN from Powershell
# Disclamer: I have no idea what Im doing, but this works om my machine
[Windows.Networking.NetworkOperators.MobileBroadbandModem,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::GetDefault()::DeviceInformation::PinManager.GetPin([Windows.Networking.NetworkOperators.MobileBroadbandPinType,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::Pin1).EnterAsync('PIN')
# For running it at startup:
$trigger = New-JobTrigger -AtStartup
Register-ScheduledJob -Trigger $trigger -ScriptBlock {[Windows.Networking.NetworkOperators.MobileBroadbandModem,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::GetDefault()::DeviceInformation::PinManager.GetPin([Windows.Networking.NetworkOperators.MobileBroadbandPinType,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::Pin1).EnterAsync('PIN')} -Name EnterPin
@Lilleengen
Lilleengen / bluetooth-enable-disable.ps1
Created September 3, 2023 12:56
Powershell script that gives you a systray icon to enble or disable bluetooth devices on Windows. Helps provent Windows from interfering with other devices using headphones.
$allBluetoothDevices = Get-PnpDevice -Class Bluetooth
$devicesByContainerId = @{}
foreach ($device in $allBluetoothDevices) {
$deviceProperties = Get-PnpDeviceProperty -InstanceId $device.InstanceId
$containerId = $deviceProperties | Where-Object { $_.KeyName -eq "DEVPKEY_Device_ContainerId" } | Select -ExpandProperty "Data"
if (-Not ($devicesByContainerId[$containerId])) {
$devicesByContainerId.add($containerId, @())
}
@Lilleengen
Lilleengen / signal-tls-proxies.md
Last active March 14, 2025 11:59
List of Signal TLS proxies

List of Signal TLS Proxies

If Signal is blocked in your country, you can use a proxy to get started with and continue using Signal. More information about Signal proxies is available on the Signal support page.

Want to Help?

If you run a proxy and want it added to the list or want me to distribute it in some way, please fill out the following form. If you want to set up a proxy, see the guide in this GitHub repository.

Proxy Not Working?