A Pen by najam awan on CodePen.
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
<?php $epaged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$temp = $wp_query; | |
$wp_query = null; | |
?> | |
<?php $wp_query = new WP_Query('category_name=portfolio&tag=web&showposts=5&paged=' . $epaged);?> | |
<?php if ($wp_query->have_posts()) : ?> | |
<section class="itemBlocks"> | |
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> | |
<article class="iBlock"> | |
<time datetime="<?php the_time('Y-m-d') ?>" class="fs-14" pubdate><?php the_time('F jS, Y') ?></time> |
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
function BootOutlook(){ | |
$outlook= New-object -ComObject outlook.application | |
$namespace = $outlook. GetNameSpace("MAPI") | |
$Inbox = $outlook. session.getDefaultFolder(6) | |
$Inbox | |
} | |
cls; | |
#$mailBox = BootOutlook | |
#$mailBox.Folders.item("islambox").Folders.Item("EmailLogs").Folders.Item("jun 2013").items |
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
function OutlookEmailLog($month) | |
{ | |
#$outlook= New-object -ComObject outlook.application | |
#$namespace = $outlook. GetNameSpace("MAPI") | |
#$Inbox = $outlook. session.getDefaultFolder(6) | |
$Inbox = BootOutlook | |
$ELogs=$Inbox.Folders.item("islambox").Folders.Item("EmailLogs").Folders.Item($month) | |
$ELogs.items | |
} |
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
function EmailLogReport ($mails, $filepath) | |
{ | |
cls; | |
$file = $filepath | |
$mails = $mails | sort ReceivedTime -Descending | |
$hHeader = "<!DOCTYPE html><html><head><link href='screenLog.css' rel='stylesheet' type='text/css' /></head><body>" |
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 [master] | |
GO | |
/****** Object: Database [aspnet-OpenIDSample-20130413134512] Script Date: 9/27/2013 11:17:23 AM ******/ | |
CREATE DATABASE [aspnet-OpenIDSample-20130413134512] | |
CONTAINMENT = NONE | |
ON PRIMARY | |
( NAME = N'aspnet-OpenIDSample-20130413134512.mdf', FILENAME = N'E:\Projects\AspNet\openidCustomDB\OpenIDSample\OpenIDSample\App_Data\najam\gora.mdf' , SIZE = 3136KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) | |
LOG ON | |
( NAME = N'aspnet-OpenIDSample-20130413134512_log.ldf', FILENAME = N'E:\Projects\AspNet\openidCustomDB\OpenIDSample\OpenIDSample\App_Data\najam\gora.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%) | |
GO |
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
D:\mongodb\bin>mongod --dbpath=D:\mongodb --logpath=D:\mongodb\log.txt --install |
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
D:\mongodb\bin>mongod --remove |
A Pen by najam awan on CodePen.
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
$EmailFrom = "from@mail.com" | |
$EmailTo = "to@mail.com" | |
$Subject = "emailing powershell report" | |
$Body = "this should work on remove server as well. test email" | |
$SMTPServer = "smtp.gmail.com" | |
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587) | |
$SMTPClient.EnableSsl = $true | |
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("gmailUser", "gmailPasswor"); | |
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body) |
OlderNewer