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
[datetime]$archivedDate = [datetime]::Today.AddDays(-1) | |
Write-Host "Restoring items recycled after $($archivedDate.ToShortDateString())" | |
foreach($archive in Get-Archive -Name "recyclebin") { | |
Write-Host " - Found $($archive.GetEntryCount()) entries" | |
$entries = $archive.GetEntries(0, $archive.GetEntryCount()) | |
foreach($entry in $entries) { | |
if($entry.ArchiveLocalDate -ge $archivedDate) { | |
Write-Host "Restoring item: $($entry.OriginalLocation) {$($entry.ArchivalId)}on date $($entry.ArchiveLocalDate)" | |
$archive.RestoreItem($entry.ArchivalId) |
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
jQuery().ready(function() { | |
// content here | |
}); |
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
jQuery("a[href*='/Secure/']:not(.btn)").after(" <i class=\"icon-lock\"></i>"); |
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
jQuery("a[href$='.pdf']:not(.btn)").after(" <i class=\"icon-file-text-alt\"></i>"); |
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
<cfexecute name="C:\download\WinScp\winscp.com" arguments="/command ""open sftp://user:pass@yourserver.com"" ""put c:\full\path\to\file.txt /usr/local/remote/dir/"" ""exit""" variable="result" errorvariable="errorv" timeout="10"></cfexecute> | |
<cfoutput> | |
<cfif len(errorv)> | |
<h1>Error</h1> | |
<pre>#errorv#</pre> | |
<cfelse> | |
<h1>Result</h1> | |
<pre>#result#</pre> | |
</cfif> | |
</cfoutput> |
NewerOlder