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 / README.md
Created July 1, 2023 19:40
Install SQL Server 2022 Express on Apple M2
@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 / main.dart
Created April 16, 2023 18:03 — forked from netsmertia/main.dart
flutter image drawing in canvas
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
import 'package:flutter/services.dart' show rootBundle;
import 'dart:async';
import 'dart:typed_data';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@FeodorFitsner
FeodorFitsner / customPainter.dart
Created April 16, 2023 18:01 — forked from OPY-bbt/customPainter.dart
draw network image in CustomPainter and save content to file
import 'dart:io';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'package:path_provider/path_provider.dart';
void main() => runApp(MyApp());
String FILENAME = 'timg.jpeg';
@FeodorFitsner
FeodorFitsner / build.cmd
Created July 5, 2015 20:33
Taking version from AssemblyInfo.cs and using it with AppVeyor
rem This is how we get version in environment variable
for /f %%i in ('PowerShell -File get-version.ps1') do set my_version=%%i
@FeodorFitsner
FeodorFitsner / mac-clear-icon-cache.sh
Created December 27, 2022 18:02 — forked from ismyrnow/mac-clear-icon-cache.sh
Clear the icon cache on a Mac when you start seeing generic icons in Finder or the Dock
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder
Write-Host "Installing RabbitMQ..." -ForegroundColor Cyan
Write-Host "Downloading..."
$exePath = "$($env:USERPROFILE)\rabbitmq-server-3.5.4.exe"
(New-Object Net.WebClient).DownloadFile('http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.4/rabbitmq-server-3.5.4.exe', $exePath)
Write-Host "Installing..."
cmd /c start /wait $exePath /S
$rabbitPath = 'C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.4'
@FeodorFitsner
FeodorFitsner / appveyor.yml
Created May 26, 2022 17:19
Node 14 install
image: ubuntu2004
install:
- nvm use 16
- node --version
build: off
test: off
@FeodorFitsner
FeodorFitsner / appveyor.yml
Last active September 6, 2021 16:15
appveyor.yml with matrix example for building on Windows, Linux and macOS
environment:
matrix:
- job_name: Windows
QTDIR: C:\Qt\5.10.1\msvc2017_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- job_name: Linux
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
- job_name: macOS
@FeodorFitsner
FeodorFitsner / appveyor.yml
Last active March 12, 2021 13:24
appveyor.yml reference
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#