Tags » Test

Gold

Job 23:10
“But he knows the way that I take; when he has tested me, I will come forth as gold.”

Isaiah 60:17a, 19b
“Instead of bronze I will bring you gold, and silver in place of iron…for the Lord will be your everlasting light, and your God will be your glory.” 166 more words

Christianity

I can't get any more angry

Aaaarghhhhh!!

Does my life has to mess with me every week?

Do you remember the quiz I told you about?The one I was studying G.K for? 266 more words

Intel

test

Test OLW Syntax Highlighter

CLS
# http://www.c-sharpcorner.com/UploadFile/40e97e/calculating-size-of-site-collection-sub-sites-in-multiple-w/

if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null)
{
    Add-PSSnapin Microsoft.SharePoint.PowerShell;
}


$URL = "http://wss.plastiflexgroup.com/"

$Site = New-Object Microsoft.SharePoint.SPSite($URL)


$spWebApp = $site.WebApplication

# Start Looping throurgh all site Collections and Sub Sites
    foreach ( $spWeb in $spWebApp.Sites )
    {
      write-host "Site Collection: " $spWeb.URL
      write-host "-------------------------------------------------------------------"

$rootUrl = $spWeb.URL # "http://YourSharePointSite.com/"; 

$rootSite = new-object Microsoft.SharePoint.SPSite($rootUrl); 

$array = @()

$siteCollectionSize = 0;

foreach($web in $rootSite.AllWebs) 
{

    if ($web.Url.StartsWith($rootUrl))
    {

        $websize = GetFolderSize $web.RootFolder;

        foreach($recycleBinItem in $web.RecycleBin)
        {
           $websize += $recycleBinItem.Size;
        }

        $formatSize = FormatBytes $websize;

        $url = $web.Url;

         # Create object and store in array
        $obj = New-Object System.Object
        $obj | Add-Member -type NoteProperty -name "Description" -value "$url"
        $obj | Add-Member -type NoteProperty -name "Size" -value "$formatSize"

        $array += $obj

        $siteCollectionSize += $websize
    }
}

$formatSize = FormatBytes $siteCollectionSize;

# Create object and store in array
$obj = New-Object System.Object
$obj | Add-Member -type NoteProperty -name "Description" -value ""
$obj | Add-Member -type NoteProperty -name "Size" -value "[$formatSize]"

$array += $obj

# Display
foreach($item in $array)
{
    write-output $item
}


# Write to HTML
# $array | Select-Object | ConvertTo-Html -title "Site Size" | Set-Content .\SiteSize.html
 

# Function calculating folder size
Function GetFolderSize($folder)
{
    $filesize = 0;

    foreach ($file in $folder.Files)
    {
        $filesize += $file.TotalLength;

        foreach ($fileVersion in $file.Versions)
        {
            $filesize += $fileVersion.Size;
        }
    }

    foreach ($subfolder in $folder.SubFolders)
    {
        $filesize += GetFolderSize $subfolder
    }

    return $filesize;
}
 

# Function to format in MB
function FormatBytes ($bytes)
{
    switch ($bytes)
    {
        {$bytes -ge 1TB} {"{0:n$sigDigits}" -f ($bytes/1TB) + " TB" ; break}
        {$bytes -ge 1GB} {"{0:n$sigDigits}" -f ($bytes/1GB) + " GB" ; break}
        {$bytes -ge 1MB} {"{0:n$sigDigits}" -f ($bytes/1MB) + " MB" ; break}
        {$bytes -ge 1KB} {"{0:n$sigDigits}" -f ($bytes/1KB) + " KB" ; break}
        Default { "{0:n$sigDigits}" -f $bytes + " Bytes" }
    }
 }
    Write-host ""
}
…
7 more words

Personality types and human's categorization : Endorse Individuality.

Some years ago I was in the middle of a conversation talking about positivity, negativity, optimism and some mainstream themes that constraints our beings and define how we think. 399 more words

Photography

Test

Testing….
Testing my capacity of thinking right now.
And of not being defeated by fatigue while I try to write anything here that could make any sense at all.But I do think at least this might be going somewhere now. 210 more words

Food For Thoughts