Skip to content

Instantly share code, notes, and snippets.

View DavideC03's full-sized avatar
:octocat:

Davide Castellani DavideC03

:octocat:
View GitHub Profile
@DavideC03
DavideC03 / RunTheCodeIfThereIsAGitHubUpdateAvailable.ps1
Last active December 4, 2020 19:41
Run the code if there is a GitHub update available
# By Davide Castellani (help@castellanidavide.it)
if (-Not ((git pull <github_repositository_path> <main/master>) -Match "Already up to date."))
{
echo "Start other processes"
}
@DavideC03
DavideC03 / autorun_client.bat
Last active October 31, 2020 13:38
VMs automate process
@ECHO OFF
REM AutoRun for VMs communication by Castellani Davide
REM Put this only in client PCs, only normal execution (client)
REM Change direcoty
cd /|\folder/|\
REM Go to netinfo repo