This file contains 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
dotnet ef migrations add InitialCreate --context WaypointDbPgSqlContext --output-dir Migrations/pgSql -- Host=localhost;Username=postgres;Password=admin123;Database=waypoint_db | |
dotnet ef database update --context WaypointDbPgSqlContext --connection "Host=localhost;Username=postgres;Password=admin123;Database=waypoint_db" |
This file contains 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
docker ps -a -q | % { docker rm $_ } | |
docker images -q | % { docker rmi $_ } |
This file contains 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
# force ip4 to avoid problems with ip v6 connections during apt-get update | |
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4 | |
# run openmediavuault scripts | |
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash |
This file contains 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
powershell -Command "&'./myscript.ps1' -myscriptparam | tee -FilePath myscriptoutput.log" |
This file contains 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
$WDAVprefs = Get-MpPreference | |
#$WDAVprefs.ExclusionExtension | |
$WDAVprefs.ExclusionPath |
This file contains 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
ls ./SqlScripts/*.sql | %{$f = $_; (gc $f.PSPath) | %{$_ -replace "SET @ENV = ''", "SET @ENV = 'TEST'"} | sc $f.PSPath } |
This file contains 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
set VPS_PUBLIC_IP=1.2.3.4 | |
ssh ary@%VPS_PUBLIC_IP% "wget -O - https://gist.githubusercontent.com/musukvl/63367edcc9ae643baf1aac4a348a6828/raw/ac2a2194af647f82edc78febd40d205dd4e7c12e/install-vpn.sh | bash" | |
scp ary@%VPS_PUBLIC_IP%:/home/ary/vpn/openvpn_conf/client.ovpn . |
This file contains 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
#!/bin/sh | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
mc \ | |
gnupg-agent \ |
This file contains 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
#!/bin/sh | |
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https | |
sudo apt-get update | |
sudo apt-get install -y dotnet-sdk-3.1 |
This file contains 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
#!/bin/sh | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common |
NewerOlder