Title = wt
Command = cmd.exe
Arguments = /c start wt -w $(SolutionFileName) --title "$(ProjectFileName)" -d "$(ProjectDir)"
Initial Directory = $(ProjectDir)
| Write-Output "---------------------- FIX WSL INTERNET ----------------------" | |
| # 1. Перезапуск WinNAT | |
| # Write-Output "Restarting WinNAT..." | |
| # net stop winnat | |
| # net start winnat | |
| # 5. Завершаем все дистрибутивы WSL | |
| Write-Output "Shutting down WSL..." | |
| wsl --shutdown |
| .\mysqldump.exe -u root --default-character-set=utf8 -N db_name --result-file=C:\Users\D\Downloads\pn_dump_3.sql --no-create-info --skip-set-charset --compatible=postgresql | |
| //optional | |
| Get-Content .\pn_dump_3.sql | Foreach-Object {$_.Replace("\'", ''')} | Set-Content .\pn_dump_3_apos.sql | |
| & 'C:\Program Files\PostgreSQL\14\bin\psql.exe' -U postgres -f 'C:\Users\d\Downloads\pn_dump_3_apos.sql' db_name | |
| //next in cmd; | |
| SET PGCLIENTENCODING=utf-8 |
| // Overwrite Embed Block Tool | |
| import EmbedTool from '@editorjs/embed'; | |
| export default class Embed extends EmbedTool { | |
| static get toolbox() { | |
| return { | |
| title: 'YouTube', | |
| icon: '<i class="fab fa-youtube"></i>' | |
| }; | |
| } |
| function prompt | |
| >> { | |
| >> Write-Host ("PS " + $(get-date) +">") -nonewline -foregroundcolor White | |
| >> return " " | |
| >> } |
| //index.razor | |
| @page "/" | |
| @using HtmlAgilityPack | |
| @using Microsoft.AspNetCore.Components.RenderTree | |
| @using Microsoft.AspNetCore.Components.Rendering | |
| @using System.Text.RegularExpressions | |
| @using System.Reflection | |
| @*<SurveyPrompt Title="How is Blazor working for you?" />*@ |
| #prerequire config ssh public key | |
| $dateStamp = Get-Date -UFormat "%Y-%m-%d_%H-%M-%S" | |
| $host_destination = "~/web/WebApp/bin/Release/net5.0" | |
| $host_name = "hostname.com" | |
| $Host.PrivateData.ErrorBackgroundColor = "Red" | |
| $Host.PrivateData.ErrorForegroundColor = "White" | |
| echo '>>Deploy' |
| server { | |
| #listen 80; | |
| set $root_path '/var/www/wordpress/'; | |
| root $root_path; | |
| index index.php; # index defined to be served under directory | |
| server_name _; | |
| include d_ssl; |
| using namespace System.IO | |
| $oneDriveDir = 'C:\Users\D\OneDrive\AMAI\Share\MR' | |
| Write-Output "copy apk" | |
| $dateStamp = Get-Date -UFormat "%Y-%m-%d_%H-%M-%S" | |
| $fName = 'src-cordova\platforms\android\app\build\outputs\apk\release\app-release.apk' |
| <VirtualHost *:88> | |
| ServerAdmin [email protected] | |
| ServerName vk.localhost | |
| ServerAlias vk.localhost | |
| ProxyRequests off | |
| <Proxy *> | |
| Order deny,allow | |
| Allow from all |