[CmdletBinding()]
param (
[string] $Name,
[int] $Age
)
Write-Host -Object "Hi $Name!","You are $Age years old!";
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\raggedbottom in LaTeX Preamble fixes random vertical spacing at end of sections. |
As close to grep
as I have found so far:
<some-cmd> | Out-String -Stream | Select-String [options] <some-string>
Select-String
's -Context
option works pretty well ... so far.
This awk script splits firefox extension blocknote output into markdown (or other lwm --- just change the suffix) files. See https://addons.mozilla.org/en-US/firefox/addon/blocknote/
/^### START/ { out = $4; next; }
/^### STOP/ { next; }
{ if (out != "") { print $0 > out".md" } }
Create in ~/.mutt/pass
with contents:
set my_pass = "password"
Encrypt the file:
mutt -e 'set content_type=text/html' -s 'subject' recip@host.com < file.html
###Make prtscreen work, as long as in ratpoison mode. "import" is an Imagemagick command.
bind Print exec import -window root png:$HOME/xwd-$(date +%s)$$.png
This is from https://en.wikibooks.org/wiki/Using_Ratpoison/Example_Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use find and file to crawl for files with mime-type image/jpeg or image/png. | |
# Awk isolates file names. | |
# rjgpcom gets comments, if any. | |
# jo wraps everything up into json for jsongallery. | |
# | |
# https://jpmens.net/2016/03/05/a-shell-command-to-create-json-jo | |
# https://github.com/mariobox/jsongallery | |