Skip to content

Instantly share code, notes, and snippets.

View Richmash's full-sized avatar

Rimash Richmash

  • Melbournne, Austrailia
View GitHub Profile
@macloo
macloo / dict_example.py
Created April 9, 2017 14:34
How Flask session variables work
# python 3
# a review of Python’s dictionary format
# create a new dict - named session - with three key:value pairs:
session = { 'logged_in': True, 'user': 'Harry Potter', 'password': 'parseltongue' }
# create a new dict - named session2 - with three key:value pairs
# another way to create a dict)
session2 = {}
session2['logged_in'] = False
@flakshack
flakshack / Watch-MoveRequests.ps1
Created May 1, 2011 02:02
Powershell script to watch Exchange 2010 mailbox moves, write error logs to file, and email users when done.
#############################################################################
# Procedure: Watch-MoveRequests.PS1
# Author: Scott Vintinner
# Last Edit: 4/30/2011
# Purpose: This script will monitor the mailbox move process. Moves should
# be added to the queue using the following command:
#
# new-MoveRequest -Identity $identity -BadItemLimit 5 -Suspend:$true
#
# Alternately you could use my Start-SuspendedMoveRequests.PS1 script