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
| import re | |
| the_text = """ | |
| <div class="marginbottom10"> | |
| <h3>Coverage</h3> | |
| <p class="big:> | |
| <span id='m_coverage' > 91.9%</span> </p> | |
| <div> | |
| """ |
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
| Import-Module AWSPowershell | |
| $access = "AKIXXXXXXXXXXQQ" | |
| $private = "ktw3+XXXXXXXXXXXXXXXXXXXXXeyw" | |
| $bucketName = "bucketname" | |
| Set-AWSCredentials -AccessKey $access -SecretKey $private | |
| $source = "D:\SomeFolder" |
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
| // A little description of how reading and writing | |
| // From a stream works. | |
| [Test] | |
| public void ReadWriteAssertions() | |
| { | |
| Stream theStream = new MemoryStream(); | |
| const string theWriteText = "foo ++ bar ++ baz"; | |
| var writer = new StreamWriter(theStream); |
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 ( | |
| [Parameter(Mandatory=$true) | |
| [string]$File1, | |
| [Parameter(Mandatory=$true) | |
| [string]$File2 | |
| ) | |
| $md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider |
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
| #include <sys/socket.h> | |
| #include <stdio.h> | |
| #include <asm/byteorder.h> | |
| #include <string.h> | |
| #include <cygwin/in.h> | |
| class UDPServer { | |
| public: | |
| void Serve(int port, int bufferSize = 2048) { |
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
| var dgram = require('dgram') | |
| var theListeningPort = 50000; | |
| var socket = dgram.createSocket('udp4'); | |
| socket.bind(theListeningPort, function() { | |
| console.log("Binding on port " + theListeningPort + " successful"); | |
| }); |
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
| import base64 | |
| import json | |
| import urllib.request | |
| import urllib.parse | |
| # Add a url reference for more information about this region string | |
| region = "au" | |
| # Add a url reference for more information about this release string | |
| release = "v4_6_release" | |
| # Add a url reference for more information about this 3.0 string |
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
| choco install git.install -y --force | |
| choco install jdk8 -y | |
| choco install 7zip -y | |
| choco install jre8 -y | |
| choco install nodejs.install -y | |
| choco install sysinternals -y | |
| choco install vlc -y | |
| choco install skype -y | |
| choco install filezilla -y |
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
| $LOOP_DELAY_SECONDS = 20 | |
| $SNAPIN_LIST = @( | |
| "Microsoft.Exchange.Management.PowerShell.SnapIn", | |
| "Microsoft.Exchange.Management.PowerShell.E2010", | |
| "Microsoft.Exchange.Management.Powershell.Support", | |
| "Microsoft.Exchange.Management.PowerShell.Setup") | |
| # Email Preferences | |
| $SMTP_SERVER = "" | |
| $EMAIL_FROM_ADDRESS = "Microsoft Outlook <device.management@example.com>" |
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
| #!/bin/bash | |
| if [ "$(whoami)" != "root" ]; then | |
| echo "Error: This script must be run with root priviliges" | |
| exit 1 | |
| fi | |
| if [ -n "$1" ]; then | |
| puppet_host=$1 | |
| else |