Skip to content

Instantly share code, notes, and snippets.

$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
$sshDir = Join-Path $env:ProgramData 'ssh'
New-Item -ItemType Directory -Force -Path $sshDir | Out-Null
Write-Host 'Installing/enabling OpenSSH Server...'
$server = Get-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
if ($server.State -ne 'Installed') {
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 | Out-Null
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
$dir = Join-Path $env:TEMP 'system76-lemp13-drivers'
New-Item -ItemType Directory -Force -Path $dir | Out-Null
$drivers = @(
@{ Name = 'chipset'; Url = 'https://github.com/system76/windows-drivers/raw/master/drivers/intel/mtl-uh/2024-WW24/Chipset-10.1.19627.8423-Public-MUP.zip' },
@{ Name = 'serialio'; Url = 'https://github.com/system76/windows-drivers/raw/master/drivers/intel/mtl-uh/2024-WW24/30.100.2405.44-mtl-p-v2.zip' },
@{ Name = 'wifi'; Url = 'https://github.com/system76/windows-drivers/raw/master/drivers/intel/mtl-uh/2024-WW24/wifi-SBHWFW00656_23.30.0.6_G.zip' }
)
foreach ($driver in $drivers) {
from __future__ import division
import rhinoscriptsyntax as rs
__commandname__ = "tbr_seam"
def get_plane(c_0, c_1):
"""
Given two curves it gives you a normal vector to them
"""
pass
import inspect
import ast
from textwrap import dedent
import tensorflow as tf
def escape_op_name(name):
"""
It has to match with "^[A-Za-z0-9.][A-Za-z0-9_.\\-/]*$"
"""