Skip to content

Instantly share code, notes, and snippets.

View FeodorFitsner's full-sized avatar
🐢
Working on something new

Feodor Fitsner FeodorFitsner

🐢
Working on something new
View GitHub Profile
@FeodorFitsner
FeodorFitsner / install-silverlight-5.ps1
Created August 26, 2015 07:17
Installing Silverlight 5
Write-Host "Installing Silverlight 64-bit"
$exePath = "$($env:USERPROFILE)\Silverlight_x64.exe"
(New-Object Net.WebClient).DownloadFile('https://go.microsoft.com/fwlink/?LinkID=229321', $exePath)
cmd /c start /wait $exePath /q /doNotRequireDRMPrompt /noupdate
@FeodorFitsner
FeodorFitsner / updating-bundler-gem-workaround.ps1
Created August 26, 2015 11:16
Updating Bundler gem workaround
$gemPath = "$($env:USERPROFILE)\bundler-1.10.6.gem"
(New-Object Net.WebClient).DownloadFile('https://rubygems.org/downloads/bundler-1.10.6.gem', $gemPath)
cmd /c gem install --local "$gemPath"
@FeodorFitsner
FeodorFitsner / download-appvyr-artifacts.ps1
Created December 13, 2014 03:51
Downloading AppVeyor build artifacts (PowerShell)
$apiUrl = 'https://ci.appveyor.com/api'
$token = '<your-api-token>'
$headers = @{
"Authorization" = "Bearer $token"
"Content-type" = "application/json"
}
$accountName = '<your-account-name>'
$projectSlug = '<your-project-slug>'
$downloadLocation = 'C:\projects'
@FeodorFitsner
FeodorFitsner / appveyor-attachdb-sql.ps1
Created February 14, 2015 01:37
Attaching MDF file with existing SQL Server database on AppVeyor and updating configuration connection string
$startPath = "$($env:appveyor_build_folder)\path-to-your-bin"
$sqlInstance = "(local)\SQL2012SP1"
$dbName = "MyDatabase"
# replace the db connection with the local instance
$config = join-path $startPath "MyTests.dll.config"
$doc = (gc $config) -as [xml]
$doc.SelectSingleNode('//connectionStrings/add[@name="store"]').connectionString = "Server=$sqlInstance; Database=$dbName; Trusted_connection=true"
$doc.Save($config)
@FeodorFitsner
FeodorFitsner / install-typescript-1.5beta.ps1
Created June 27, 2015 19:58
Installing TypeScript 1.5 beta for VS 2013 from command line
$exePath = "$($env:USERPROFILE)\TypeScript_15beta_Dev12.exe"
(New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/107f89a0-a542-4264-b0a9-eb91037cf7af/file/160654/1/TypeScript_15beta_Dev12.exe', $exePath)
cmd /c start /wait $exePath /quiet
@FeodorFitsner
FeodorFitsner / install-mongodb.ps1
Last active August 29, 2015 14:24
Installing MongoDB
$msiPath = "$($env:USERPROFILE)\mongodb-win32-x86_64-2008plus-ssl-3.0.4-signed.msi"
(New-Object Net.WebClient).DownloadFile('https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.0.4-signed.msi', $msiPath)
cmd /c start /wait msiexec /q /i $msiPath INSTALLLOCATION=C:\mongodb ADDLOCAL="all"
del $msiPath
mkdir c:\mongodb\data\db | Out-Null
mkdir c:\mongodb\log | Out-Null
'systemLog:
destination: file
# this will install NSIS to C:\nsis
$exePath = "$($env:USERPROFILE)\nsis-2.46-setup.exe"
(New-Object Net.WebClient).DownloadFile('http://ufpr.dl.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46-setup.exe', $exePath)
cmd /c start /wait $exePath /S /D=C:\nsis
@FeodorFitsner
FeodorFitsner / install-ajax-10.ps1
Created July 28, 2015 18:32
Installing Microsoft ASP.NET AJAX 1.0
$msiPath = "$($env:USERPROFILE)\ASPAJAXExtSetup.msi"
(New-Object Net.WebClient).DownloadFile('http://download.microsoft.com/download/5/4/6/5462bcbd-e738-45fa-84ca-fa02b0c4e1c2/ASPAJAXExtSetup.msi', $msiPath)
cmd /c start /wait msiexec /i $msiPath /quiet
del $msiPath
@FeodorFitsner
FeodorFitsner / install-ms-code-contracts.ps1
Created July 29, 2015 23:23
Installing Code Contracts
$msiPath = "$($env:USERPROFILE)\Contracts.devlab9ts.msi"
(New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/1ec7db13-3363-46c9-851f-1ce455f66970/file/93972/17/Contracts.devlab9ts.msi', $msiPath)
cmd /c start /wait msiexec /i $msiPath /quiet
del $msiPath
@FeodorFitsner
FeodorFitsner / appveyor.yml
Created August 5, 2015 16:58
Using xamarin-component
install:
- set PATH=C:\Program Files (x86)\Mono\bin;%PATH%
- ps: $zipPath = "$($env:APPVEYOR_BUILD_FOLDER)\xpkg.zip"
- ps: (New-Object Net.WebClient).DownloadFile('https://components.xamarin.com/submit/xpkg', $zipPath)
- ps: 7z x $zipPath
before_build:
- mono xamarin-component.exe restore <your-sln>