This file contains hidden or 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
| snippet doc | |
| <html> | |
| <head> | |
| <title>${1}</title> | |
| </head> | |
| <body> | |
| ${2} | |
| </body> | |
| </html> | |
| snippet doc2 |
This file contains hidden or 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
| /* Launch Command | |
| * | |
| * This program will search for an executable with the same name, or with extra file extension | |
| * ".sh", in all sub folders and execute it if such a file exists. | |
| * | |
| * I've written this program since I didn't like that you can't double click Bash script files in | |
| * Nautilus file manager on Ubuntu and have them executed immediately without changing settings. | |
| * With this program, I can have Bash script files in sub folder(s) and have them executed | |
| * immediately when the user double clicks this program. | |
| */ |
This file contains hidden or 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
| # List all users | |
| $filter = "(&(objectClass=user)(objectCategory=person))" | |
| $users = ([adsiSearcher]$filter).findall() | |
| $users | %{ $_.Properties['displayname'] } | |
| # Sort | |
| $users | %{ $_.Properties['displayname'] } | sort | |
| # Filter by part of name | |
| $users | %{ $_.Properties['displayname'] } | where { $_ -match "John" } |
This file contains hidden or 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
| set nocount on; | |
| declare @TableName nvarchar(200) | |
| declare @SchemaName nvarchar(200) | |
| declare @ColumnName nvarchar(200) | |
| declare @Sql nvarchar(4000) | |
| declare @SearchValue nvarchar(200) | |
| declare @Count int | |
| -- Change the value below to the value to search for. |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <title>Curly Shadow</title> | |
| <style> | |
| body { | |
| margin: 0px; | |
| font-family: Calibri, sans-serif; | |
| background-color: #eee; | |
| } | |
| * { | |
| -webkit-box-sizing: border-box; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <title>Box Flip</title> | |
| <style> | |
| body { | |
| margin: 0px; | |
| font-family: Calibri, sans-serif; | |
| background-color: #eee; | |
| } | |
| * { | |
| -webkit-box-sizing: border-box; |
This file contains hidden or 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
| param ( | |
| [String]$SiteUrl = 'http://spdev', | |
| [String]$FieldName = 'Title' | |
| ) | |
| Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue | |
| $site = Get-SPSite $SiteUrl | |
| "Showing where ""$FieldName"" is used" |
This file contains hidden or 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
| Param ( | |
| [string]$VirtualMachineName, | |
| [switch]$FullScreen, | |
| [string]$Width = '1600', | |
| [string]$Height = '900' | |
| ) | |
| function WaitAndExit() { | |
| Write-Host "Press any key to exit script" | |
| $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | Out-Null |
This file contains hidden or 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
| <?xml version="1.0"?> | |
| <configuration> | |
| <system.web> | |
| <compilation> | |
| <buildProviders> | |
| <remove extension=".js"/> | |
| <add extension=".js" type="System.Web.Compilation.PageBuildProvider" /> | |
| </buildProviders> | |
| </compilation> | |
| </system.web> |
This file contains hidden or 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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <title>Clearing My Floats</title> | |
| <style> | |
| body { | |
| font-family: Calibri, sans-serif; | |
| font-size: 14pt; | |
| width: 990px; | |
| margin: 0px auto; |