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
return "This is a demo script file." | |
# Find Me: https://jdhitsolutions.github.io | |
# Any one can learn syntax and mechanics. | |
# Let's focus on the squishy bits - what you should write | |
# and what not to write | |
#region Essential rules |
#!/usr/bin/env python3 | |
import usb.core | |
import struct | |
from collections import namedtuple | |
APPLE_VID = 0x05ac | |
Target = namedtuple("Target", ["vid", "pid", "name", "model", "total_size"]) |
#!/usr/bin/env pwsh | |
param( | |
[Parameter(Position = 0, Mandatory = $true)] | |
[string] $ZipFilePath, | |
[Parameter(Position = 1, Mandatory = $true)] | |
[string] $FilePattern, | |
[Parameter(Position = 2, Mandatory = $true)] |
#! /usr/bin/env node | |
import fs from 'fs'; | |
import { promisify } from 'util'; | |
import path from 'path'; | |
import { spawn } from 'child_process'; | |
const fsExists = promisify(fs.exists); | |
if (!process.env.GITHUB_TOKEN) throw new Error("process.env.GITHUB_TOKEN is required"); | |
if (!process.env.GITHUB_USER) throw new Error("process.env.GITHUB_USER is required"); |
# 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 | | | |
| | | | | |
| +-----------------|----------------+ | |