Solutions for Ancient Greek Geometry (https://sciencevsmagic.net/geo)
Most solutions taken from the about thread. See the comments below for more additions since my last check-in.
version: '3.7' | |
services: | |
sqlserver1: | |
build: | |
context: . | |
dockerfile: dockerfile | |
ports: | |
- "15789:1433" | |
env_file: |
# line_follower.py | |
# by: Carl Strömberg | |
# Import the EV3-robot library | |
import ev3dev.ev3 as ev3 | |
from time import sleep | |
class LineFollower: | |
# Constructor |
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
#Import-Module PSColors | |
#Import-Module posh-git | |
Import-Module -Name Terminal-Icons |
#!/usr/bin/env powershell | |
<# | |
.SYNOPSIS | |
You can use this script to easly transform any XML file using XDT. | |
To use this script you can just save it locally and execute it. The script | |
will download its dependencies automatically. | |
Created by sayediHashimi | |
Modified by obscurerichard | |
Thanks Stack Overflow: https://stackoverflow.com/questions/8989737/web-config-transforms-outside-of-microsoft-msbuild |
class Package | |
{ | |
[String]$id | |
[String]$version | |
[String]$targetFramework | |
[String]$path | |
} | |
function GatherPackageInfo([string]$path) { | |
$packages = @() |
# Pull all images based on https://gist.github.com/gte445e/85119eb6e93bd46fb2bbd3e3a362ce68 | |
docker images --format "{{.Repository}}" | Where-Object {$_ -ne "<none>"} | %{Write-Host "Pulling image: $_ ..."; docker pull $_} |
Function Find-GitRepository { | |
<# | |
.SYNOPSIS | |
Find Git repositories | |
.DESCRIPTION | |
Use this command to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed. | |
.PARAMETER Path | |
The top level path to search. |
Most solutions taken from the about thread. See the comments below for more additions since my last check-in.
# | |
# From "How to generate a JWT RS256 key" Gist <https://gist.github.com/ygotthilf/baa58da5c3dd1f69fae9> | |
# | |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# NOTE: Don't add a passphrase when prompted: | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
# | |
# On Windows use the openssl.exe in the git usr\bin folder. |
# From https://stackoverflow.com/questions/42636510/convert-multiple-xmls-to-json-list | |
# Use | |
# [xml]$var = Get-Content file.xml | |
# Convert to JSON with | |
# $var | ConvertFrom-XML | ConvertTo-JSON -Depth 3 | |
# Helper function that converts a *simple* XML document to a nested hashtable | |
# with ordered keys. | |
function ConvertFrom-Xml { | |
param([parameter(Mandatory, ValueFromPipeline)] [System.Xml.XmlNode] $node) |