Download and install python: https://www.python.org/downloads/
Then open a powershell window and install flask
pip install flask
Download and install python: https://www.python.org/downloads/
Then open a powershell window and install flask
pip install flask
To 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" ) {
# Remove previous jobs first | |
Get-Job | Remove-Job | |
$runs = 100 | |
$maxThreads = 10 | |
$start = [datetime]::Now | |
$c = 0 # completed jobs | |
$sum = 0 # sum of results |
Documentation: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-counter?view=powershell-5.1
Show all available counters, be careful, this seems to be language dependent
get-counter -listset * | Out-GridView
get-counter -listset "*Netzwerk*" | fl
get-counter -listset "*Netzwerk*" | % { $_.Counter }
Install-Dependencies.ps1 -LocalPackage DuckDB.NET.Bindings.Full, DuckDB.NET.Data.Full | |
Import-Dependencies.ps1 -LoadWholePackageFolder | |
$conn = [DuckDB.NET.Data.DuckDBConnection]::new("Data Source=:memory:;") | |
$conn.Open() | |
... | |
$conn.Close() |
SELECT TOP 1000 * FROM(SELECT COALESCE(OBJECT_NAME(s2.objectid),'Ad-Hoc') AS ProcName,
execution_count,s2.objectid,
(SELECT TOP 1 SUBSTRING(s2.TEXT,statement_start_offset / 2+1 ,
( (CASE WHEN statement_end_offset = -1
THEN (LEN(CONVERT(NVARCHAR(MAX),s2.TEXT)) * 2)
ELSE statement_end_offset END)- statement_start_offset) / 2+1)) AS sql_statement
Here I can write down some notes
iwr -Uri "https://gist.githubusercontent.com/gitfvb/eb35179beffac8756c9fc899c0387418/raw/50c0a506590e238a5a363438fa83912205b66bd4/reformat.ps1" -UseBasicParsing | iex
in PowerShell (tested with 5.1 and Core). A shortened url can be used like iwr -Uri " https://clvr.ch/postcode" -UseBasicParsing | iex
plz_einwohner.csv
strlist(numericlistfromfile("Public:\plz_einwohner.csv",1,1))
-> replace the ,
with ;
in a German FastStats