This will set up buildkitd natively on Windows Server 2019 (ltsc2019) or Windows Server 2022 (ltsc2022).
This will reboot your server if the feature is not already installed.
Install-WindowsFeature -Name containers -Restart| # Copyright: (c) 2024, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| Function Test-Tls { | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory)] | |
| [string] | |
| $HostName, |
| # explicitly define the interface | |
| __all__ = ["minimal_dir"] | |
| from functools import cache | |
| @cache | |
| def get_stdlib_packages(): | |
| """ Get list that should include all stdlib package/module names. | |
| Not perfect. Has false positives. |
| function Invoke-GhostTask { | |
| param ( | |
| [string]$TaskName, | |
| [switch]$ShowTasks, | |
| [string]$Id, | |
| [string]$TargetTask, | |
| [string]$TargetBinary, | |
| [string]$Date, | |
| [string]$Help | |
| ) |
| #!/usr/bin/env python | |
| import json, sys | |
| from urllib.request import urlopen | |
| def green(str): return f'\033[92m{str}\033[0m' | |
| def orange(str): return f'\033[38;5;214m{str}\033[0m' | |
| def red(str): return f'\033[91m{str}\033[0m' | |
| def yellow(str): return f'\033[93m{str}\033[0m' |
| /* | |
| cc Redowan Delowar (rednafi.com) | |
| +----------------------------------------+ | |
| | Load Balancer (8080) | | |
| | +----------------------------------+ | | |
| | | | | | |
| | | Request from Client | | | |
| | | | | | |
| | +-----------------|----------------+ | |
See the new site: https://postgresisenough.dev
| #!/usr/bin/env python3.11 | |
| # MIT No Attribution | |
| # | |
| # Copyright 2023 Ben Kehoe | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
| # software and associated documentation files (the "Software"), to deal in the Software | |
| # without restriction, including without limitation the rights to use, copy, modify, | |
| # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to |
| using Windows.Security.Credentials; | |
| using WinRT; | |
| namespace CredentialCsWinRtTest { | |
| internal class Program { | |
| static void Main(string[] args) { | |
| Windows.Security.Credentials.WebAccount foo = null /* or somehow get it */; | |
| Windows.Security.Credentials.IWebAccount2 webAccount2 = foo.As<IWebAccount2>(); | |
| // if webaccount2 is not null . . . | |
| webAccount2.SignOutAsync("clientId"); // do something with the async task actually |