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
| ## -------------------------------------------------------------------------------------- | |
| ## | |
| ## This script is used to control how we deploy packages to Windows Azure. | |
| ## Orignial script (https://gist.github.com/PaulStovell/5234255) customized for | |
| ## Staging-To-Production with VIP swap deployment. | |
| ## | |
| ## NOTE: the script will only do Staging+VIP swap if $OctopusAzureSlot == "Staging". | |
| ## If $OctopusAzureSlot == anything else, the script will deploy directly to that slot | |
| ## without any further swapping. | |
| ## |
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
| function ZipFiles( $zipfilename, $sourcedir ) | |
| { | |
| Add-Type -Assembly System.IO.Compression.FileSystem | |
| Add-Type -Assembly System.IO.Compression | |
| $archive = [System.IO.Compression.ZipFile]::Open($zipfilename, [System.IO.Compression.ZipArchiveMode]::Create); | |
| try | |
| { | |
| $files = [System.IO.Directory]::GetFiles($sourceDir, "*.*", [System.IO.SearchOption]::AllDirectories) |
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
| & "C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.6\bin\cspack.exe" "/convertToCTPPackage:%CloudServiceName%.ccproj.cspkg;%CloudServiceName%.ccproj.cspkg.ctp" | |
| rm -force %CloudServiceName%.ccproj.cspkg | |
| ren %CloudServiceName%.ccproj.cspkg.ctp %CloudServiceName%.ccproj.cspkg |
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 'C:\Program Files (x86)\Microsoft SDKs\azure\PowerShell\ServiceManagement\azure\Azure.psd1' | |
| [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Deployment") | |
| $azureCertificatePassword = $OctopusParameters["AzureCertificatePassword"] | |
| [byte[]]$certificatebytes = [Convert]::FromBase64String($OctopusParameters["AzureCertificate"]) | |
| $certificate = new-object System.Security.Cryptography.X509Certificates.X509Certificate2 -ArgumentList @($certificatebytes,$azureCertificatePassword) | |
| $subscriptionId = $OctopusParameters["AzureSubscriptionId"] | |
| $subscriptionName = $OctopusParameters["AzureSubscriptionName"]; |
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
| sudo LANG=C sed -i.bak s/Parallels_Desktop_Overlay_128/Parallels_Desktop_Overlay_000/g /Applications/Parallels\ Desktop.app/Contents/MacOS/prl_client_app |
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
| ## -------------------------------------------------------------------------------------- | |
| ## | |
| ## This script is used to control how we deploy packages to Windows Azure. | |
| ## Orignial script (https://gist.github.com/PaulStovell/5234255) customized for | |
| ## Staging-To-Production with VIP swap deployment. | |
| ## | |
| ## NOTE: the script will only do Staging+VIP swap if $OctopusAzureSlot == "Staging". | |
| ## If $OctopusAzureSlot == anything else, the script will deploy directly to that slot | |
| ## without any further swapping. | |
| ## |
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
| sudo discoveryutil udnsflushcaches |
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
| location /image/ { | |
| # Support 100w100h and w100h100 | |
| rewrite ^\/image\/([^\/]+)\/w(\d+)$ /image/$1/$2w; | |
| rewrite ^\/image\/([^\/]+)\/h(\d+)$ /image/$1/$2h; | |
| rewrite ^\/image\/([^\/]+)\/w(\d+)\/h(\d+)$ /image/$1/$2w/$3h; | |
| rewrite ^\/image\/([^\/]+)\/([^\/]+)\/w(\d+)$ /image/$1/$2/$3w; | |
| rewrite ^\/image\/([^\/]+)\/([^\/]+)\/h(\d+)$ /image/$1/$2/$3h; | |
| rewrite ^\/image\/([^\/]+)\/([^\/]+)\/w(\d+)\/h(\d+)$ /image/$1/$2/$3w/$4h; |
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
| ; AutoHotKey script for OSX style cursor navigation and selection on an Apple keyboard | |
| #Left::Send {Home} | |
| +#Left::Send +{Home} | |
| !Left::Send ^{Left} | |
| +!Left::Send +^{Left} | |
| #Right::Send {End} | |
| +#Right::Send +{End} | |
| !Right::Send ^{Right} |
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
| using System; | |
| namespace ConsoleApplication1 | |
| { | |
| public class Foo<T> | |
| { | |
| public virtual T GetBar<K>(K foo, T value) | |
| { | |
| return value; | |
| } |