# encoding: ascii
# api: powershell
# title: 
# description: Trims text and signs it
# version: 0.1
# license: CC0
# x-poshcode-id: 5135
# x-archived: 2014-05-05T02:10:44
#
#
(Get-Content c:\loltweaks.export.ps1) | ` Where-Object { $_ -match '\S' } | ` Out-File c:\loltweaks.ps1
$filename = "c:\loltweaks.ps1"
$lines = (Get-Content $filename);
$lines | ForEach-Object { $_.Trim(); } | Out-File C:\LoLtweaks.ps1
Set-AuthenticodeSignature C:\LoLtweaks.ps1 @(Get-ChildItem cert:\CurrentUser\My -codesigning)[0] -TimestampServer http://timestamp.comodoca.com/authenticode
