This is pretty easy to have a play... and it also supports data that is in S3 or other data storages.
Just go to https://shell.DuckDB.org/ and enter a query like
Select 10+15 as result;This is pretty easy to have a play... and it also supports data that is in S3 or other data storages.
Just go to https://shell.DuckDB.org/ and enter a query like
Select 10+15 as result;| Import-Module ImportDependency | |
| $p = Get-PSEnvironment | |
| $p.InstalledModules | where {$_.CompanyName -like "*Apteco*"} | % { Update-Module $_.Name } |
Copy logfile or log bak file into memory and then query on it
When using DuckDB CLI you can directly create an in-memory database with .open :memory:
CREATE TABLE log as
WITH raw_log
AS (
SELECT * exclude("Thread")
,SPLIT("Thread", ',') AS ThreadArrPS C:\Users\flo\Downloads\ffmpeg-n8.0-latest-winarm64-gpl-8.0\bin> .\ffmpeg.exe -i "C:\Users\flo\Downloads\win\video.mp4" -vf "fps=15,scale=1024:-1:flags=lanczos,palettegen" palette.pngpalette.png into a gifOpen PowerShell session with administrator privileges and this example restarts at 6pm
shutdown /r /t ((Get-Date -Hour 18 -Minute 0 -Second 0) - (Get-Date)).TotalSeconds| add-type -path "C:\Program Files\Apteco\FastStats Service\Handel\Newtonsoft.Json.dll" | |
| class DataItem { | |
| [string]$id | |
| [string]$name | |
| } | |
| # Define the main response class | |
| class ApiResponse { | |
| [int]$replyCode |
Steps to solve.
C:\Users\<username>\AppData\Local\Microsoft\Windows\PowerShell\PowerShellGetC:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1 #$stdOut -match "Successfully created package '(.*.nupkg)'" | Out-Null| ################################################ | |
| # | |
| # INPUT | |
| # | |
| ################################################ | |
| #----------------------------------------------- | |
| # DEBUG SWITCH | |
| #----------------------------------------------- |
Download and install python: https://www.python.org/downloads/
Then open a powershell window and install flask
pip install flaskTo change the priority of the current running powershell process, do it like
#-----------------------------------------------
# SET UP PRIORITY
#-----------------------------------------------
$processId = [System.Diagnostics.Process]::GetCurrentProcess().ID
$currentPriority = ( get-process -Id $processId ).PriorityClass
If ( $currentPriority -ne "High" ) {