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 / appveyor-node-mysql-redis.yml
Last active May 3, 2019 23:12
Getting Started sample YAMLs
build_cloud: docker
environment:
matrix:
- job_name: Node.js 8 tests
job_group: tests
docker_image: node:8
- job_name: Node.js 12 tests
@FeodorFitsner
FeodorFitsner / install_host_agent_windows.ps1
Created January 17, 2019 00:03
Installing AppVeyor Host Agent with a PS script
[CmdletBinding()]
param
(
[Parameter(Mandatory=$true)]
[string]$AppVeyorUrl,
[Parameter(Mandatory=$true)]
[string]$HostAuthorizationToken
)
@FeodorFitsner
FeodorFitsner / appveyor.yml
Created September 4, 2018 15:44
Killing gpg-agent during pacman update
build_script:
- rake ri:ruby-%target_ruby%-%arch% & c:/msys64/usr/bin/gpgconf --homedir /etc/pacman.d/gnupg --kill all
@FeodorFitsner
FeodorFitsner / installing-msys2.ps1
Created September 3, 2018 23:17
Installing MSYS2
Write-Host "Installing MSYS2..." -ForegroundColor Cyan
if(Test-path C:\msys64) {
del C:\msys64 -Recurse -Force
}
# download installer
$zipPath = "$($env:TEMP)\msys2-x86_64-latest.tar.xz"
$tarPath = "$($env:TEMP)\msys2-x86_64-latest.tar"
Write-Host "Downloading MSYS installation package..."
@FeodorFitsner
FeodorFitsner / vcvars-powershell.ps1
Created March 29, 2018 16:15
Calling vcvars from PowerShell
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") {
cmd.exe /c "call `"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd`" /x64 && call `"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat`" x86_amd64 && set > %temp%\vcvars.txt"
} else {
cmd.exe /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars.txt"
}
Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
if ($_ -match "^(.*?)=(.*)$") {
Set-Content "env:\$($matches[1])" $matches[2]
}
@FeodorFitsner
FeodorFitsner / enable_netfx_strong_crypto.ps1
Created February 1, 2018 04:54
Enabling strong cryptography for .NET 4.5
# set strong cryptography on 64 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
# set strong cryptography on 32 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
@FeodorFitsner
FeodorFitsner / re-install-yarn.ps1
Created October 23, 2017 20:02
Re-install Yarn
Write-Host "Uninstalling Yarn 1.2.1..."
(New-Object Net.WebClient).DownloadFile('https://github.com/yarnpkg/yarn/releases/download/v1.2.1/yarn-1.2.1.msi', "$env:temp\yarn-1.2.1.msi")
cmd /c start /wait msiexec.exe /x $env:temp\yarn-1.2.1.msi /quiet
Write-Host "Installing Yarn 0.24.6..."
(New-Object Net.WebClient).DownloadFile('https://github.com/yarnpkg/yarn/releases/download/v0.24.6/yarn-0.24.6.msi', "$env:temp\yarn-0.24.6.msi")
cmd /c start /wait msiexec.exe /i $env:temp\yarn-0.24.6.msi /quiet
yarn --version
@FeodorFitsner
FeodorFitsner / enable-cyrillic.yml
Created September 10, 2017 01:24
Enabling UTF-8 (to support Cyrillic and other non-English encodings) in AppVeyor builds
init:
- REG ADD "HKLM\Software\Microsoft\Command Processor" /v Autorun /t REG_SZ /d "chcp 65001>nul" /f
@FeodorFitsner
FeodorFitsner / install-latest-yarn.ps1
Created September 8, 2017 02:20
Installing latest Yarn with PowerShell
Write-Host "Installing Yarn..." -ForegroundColor Cyan
Write-Host "Downloading..."
$msiPath = "$env:TEMP\yarn.msi"
(New-Object Net.WebClient).DownloadFile('https://yarnpkg.com/latest.msi', $msiPath)
Write-Host "Installing..."
cmd /c start /wait msiexec /i "$msiPath" /quiet
Write-Host "Yarn installed" -ForegroundColor Green
@FeodorFitsner
FeodorFitsner / install-sandcastle.ps1
Created September 5, 2017 16:21
Installing Sandcastle on AppVeyor
Start-FileDownload https://github.com/EWSoftware/SHFB/releases/download/v2017.5.15.0/SHFBInstaller_v2017.5.15.0.zip
7z x -y SHFBInstaller_v2017.5.15.0.zip | Out-Null
Write-Host "Installing MSI..."
cmd /c start /wait msiexec /i InstallResources\SandcastleHelpFileBuilder.msi /quiet
Write-Host "Installing VSIX..."
. "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VSIXInstaller.exe" /q /a InstallResources\SHFBVisualStudioPackage_VS2015AndLater.vsix
Write-Host "Sandcastle installed" -ForegroundColor Green