gci -Filter *.txt -Recurse | % { $_.FullName }
$PSVersionTable
Get-PSReadLineKeyHandler
| { | |
| "Frame name": { | |
| "scope": "abl", | |
| "prefix": "&FR", | |
| "body": [ | |
| "{&FRAME-NAME} $1" | |
| ], | |
| "description": "Frame name" | |
| }, | |
| "Global define": { |
Parse the output of git remote using awk to determine project & repo slugs
git remote -v | awk '/(push)/{ print $2; split($2, ru, "/"); projectslug = ru[4]; reposlug = gensub(/\.git/, "", "g", ru[5]); print projectslug " " reposlug;}'
| # Kill all PDSOE AVM processes | |
| # These prowin processes have -wy in the commandline | |
| $Filter = "Name like '%prowin%' and Commandline like '% -wy %' " | |
| Write-Host "Filter $Filter" | |
| Get-WmiObject Win32_Process -Filter "$Filter" | | |
| foreach-object ` | |
| -begin { Write-Host 'begin' } ` | |
| -process { | |
| Write-Host 'Kill' $_.Commandline $_. |
This document describes the steps need to install Progress OpenEdge on WSL
| #!/bin/bash | |
| set -ue | |
| script=$0 | |
| script_dir=${script%/*} | |
| script=${script##*/} | |
| SUFFIX=$(date +%y%m%d.%H%M%S) | |
| export RSYNC_RSH=/usr/bin/ssh |
| <?xml version="1.0"?> | |
| <project name="Fix_PDSOE" default="build_launcher"> | |
| <taskdef resource="PCT.properties" /> | |
| <property environment="env"/> | |
| <property name="DLC" value="${env.DLC}" /> | |
| <target name="build_launcher"> | |
| <mkdir dir="build" /> | |
| <mkdir dir="debugListing" /> | |
| <PCTCompile graphicalMode="true" destDir="plugins" dlcHome="${DLC}"> |
| #/bin/bash | |
| # Enhance proshut list, show process info for local processes, needs root access | |
| # | |
| proshut $1 -C list | awk '{ if (NR==1) { procinfo="process info"; } else if ($8 == "REMC" || $9=="REMC") { procinfo="remote process"; } else { procfile="/proc/"$2"/cmdline"; getline procinfo < procfile; procinfo = gensub(/\000/, " ", "g", procinfo); } print $0,procinfo ;}' |