Answer to SO question 48693420
Demonstrates substitution in properties file with system variables.
Execute with
username=user1 password=pass1 mvn resources:resources && cat target/classes/development.properties
Expected output:
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
crypto.subtle.digest('SHA-1', new TextEncoder().encode('sfdfsdfdsfdfsdfdsfsdfdsfssfdsfds')).then(b => btoa(String.fromCharCode(...new Uint8Array(b)))).then(console.log); |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
Answer to SO question 48693420
Demonstrates substitution in properties file with system variables.
Execute with
username=user1 password=pass1 mvn resources:resources && cat target/classes/development.properties
Expected output:
cols = 12 | |
colwidth = 60px | |
colmargin-right = 12px | |
colmargin-left = 13px | |
gridarray = () | |
pusharray = () | |
pullarray = () | |
for i in (1..cols) | |
push(gridarray, '.grid_' + i) |
:: **************************************************************************** | |
:: Delete all files except the n newest | |
:: **************************************************************************** | |
:: ---------------------------------------------------------------------------- | |
:: Usage: delete_except_newest.bat DIR N FILTER | |
:: Example: delete_except_newest.bat C:\tmp 10 *.txt | |
:: ---------------------------------------------------------------------------- | |
:: **************************************************************************** | |
:: **************************************************************************** |