text stringlengths 0 834k |
|---|
REM Set intermediate env vars because the %VAR:x=y% notation below |
REM (which replaces the string x with the string y in VAR) |
REM doesn't handle undefined environment variables. This way |
REM we're always dealing with defined variables in those tests. |
set CHK_HOME=_%AWS_AUTO_SCALING_HOME% |
if ""%CHK_HOME:""=%"" == ""_"" goto HOME_MISSING |
""%AWS_AUTO_SCALING_HOME:""=%\bin\as-cmd.cmd"" as-set-instance-health %* |
goto DONE |
:HOME_MISSING |
echo AWS_AUTO_SCALING_HOME is not set |
exit /b 1 |
:DONE |
",25.25,69,0.7722772277 |
219813,f31eaa71b91f5cddcc3ca7b0a945aaeee1d57b7e,688,cmd,Batchfile,build.cmd,Georninja/VRCX,7d64073f272be3c2313fad0013c02a86bc290e18,['MIT'],,,,build.cmd,Georninja/VRCX,7d64073f272be3c2313fad0013c02a86bc290e18,['MIT'],,,,build.cmd,Georninja/VRCX,7d64073f272be3c2313fad0013c02a86bc290e18,['MIT'],,,,"@echo off |
setlocal |
cd /d %~dp0 |
msbuild -t:restore -p:RestorePackagesConfig=true |
msbuild VRCX.sln /p:Configuration=Release /p:Platform=x64 -m |
cd html |
call npm ci |
call npm run production |
cd .. |
mklink /J ""%~dp0\bin\x64\Release\html"" ""%~dp0\html\dist"" |
for /f %%a in ('powershell -Command ""Get-Date -format yyyyMMdd""') do set TODAY=%%a |
set ZIP_NAME=VRCX_%TODAY%.zip |
echo %ZIP_NAME% |
rem using bandizip (https://www.bandisoft.com/bandizip) |
cd ""%~dp0\bin\x64\Release"" |
bz c -l:9 -r -storeroot:yes -ex:""cache;userdata;*.log;VRCX.json;VRCX.sqlite3"" -cmt:""https://github.com/pypy-vrc/VRCX"" %ZIP_NAME% * |
cd ""%~dp0"" |
move ""%~dp0\bin\x64\Release\%ZIP_NAME%"" ""%~dp0"" |
rd ""%~dp0\bin\x64\Release\html"" |
pause |
",32.7619047619,130,0.7165697674 |
219814,f31edda06eabbc40091ce446f63fc25bc482cde0,1165,bat,Batchfile,build.bat,PPatBoyd/valorant-skin-cli,1278b5d7aa2462fa6bef5a3c69d9cbcbb593fe7d,['MIT'],2.0,2021-08-11T02:09:15.000Z,2021-08-11T02:09:19.000Z,build.bat,PPatBoyd/valorant-skin-cli,1278b5d7aa2462fa6bef5a3c69d9cbcbb593fe7d,['MIT'],,,,build.bat,PPatBoyd/valorant-skin-cli,1278b5d7aa2462fa6bef5a3c69d9cbcbb593fe7d,['MIT'],,,,"@echo off |
:: BatchGotAdmin |
:------------------------------------- |
REM --> Check for permissions |
IF ""%PROCESSOR_ARCHITECTURE%"" EQU ""amd64"" ( |
>nul 2>&1 ""%SYSTEMROOT%\SysWOW64\cacls.exe"" ""%SYSTEMROOT%\SysWOW64\config\system"" |
) ELSE ( |
>nul 2>&1 ""%SYSTEMROOT%\system32\cacls.exe"" ""%SYSTEMROOT%\system32\config\system"" |
) |
REM --> If error flag set, we do not have admin. |
if '%errorlevel%' NEQ '0' ( |
echo Requesting administrative privileges... |
goto UACPrompt |
) else ( goto gotAdmin ) |
:UACPrompt |
echo Set UAC = CreateObject^(""Shell.Application""^) > ""%temp%\getadmin.vbs"" |
set params= %* |
echo UAC.ShellExecute ""cmd.exe"", ""/c """"%~s0"""" %params:""=""""%"", """", ""runas"", 1 >> ""%temp%\getadmin.vbs"" |
""%temp%\getadmin.vbs"" |
del ""%temp%\getadmin.vbs"" |
exit /B |
:gotAdmin |
pushd ""%CD%"" |
CD /D ""%~dp0"" |
:-------------------------------------- |
""C:/Program Files/Python37/python.exe"" -m pip install -r requirements.txt |
""C:/Program Files/Python37/python.exe"" -m pip install -r requirements.txt --upgrade |
""C:/Program Files/Python37/python.exe"" -m PyInstaller main.py --noconfirm --icon=favicon.ico --name=""valorant-skin-cli"" --onefile |
pause",34.2647058824,131,0.6214592275 |
219815,f31f05749370cfe817b73a69868a4bef82c386f7,2800,cmd,Batchfile,HOLs/HOL-ACSwithLocalSTS/Source/Setup/scripts/CreateVirtualDirectories.cmd,sudozz/MicrosoftAzureTrainingKit,d1a7734f56e04f734e0c6efa3dd152ec37f3a12d,['Apache-2.0'],1.0,2016-10-05T15:13:09.000Z,2016-10-05T15:13:09.000Z,HOLs/HOL-ACSwithLocalSTS/Source/Setup/scripts/CreateVirtualDirectories.cmd,PankajRawat333/MicrosoftAzureTrainingKit,d1a7734f56e04f734e0c6efa3dd152ec37f3a12d,['Apache-2.0'],,,,HOLs/HOL-ACSwithLocalSTS/Source/Setup/scripts/CreateVirtualDirectories.cmd,PankajRawat333/MicrosoftAzureTrainingKit,d1a7734f56e04f734e0c6efa3dd152ec37f3a12d,['Apache-2.0'],,,,"@echo off |
set OS_VERSION= |
set OS_MAJOR= |
set OS_MINOR= |
set OS_BUILD= |
set IsVistaOrHigher= |
set IsWin7OrHigher= |
set IsWin2K3= |
set OS_ARCHITECTURE= |
Set Script_Path= |
for /f ""skip=1"" %%i in ( 'wmic os get version' ) do ( |
set OS_VERSION=%%i |
goto:__ver_done |
) |
:__ver_done |
for /f ""delims=. tokens=1,2,3"" %%i in (""%OS_VERSION%"") do ( |
set OS_MAJOR=%%i&set OS_MINOR=%%j&set OS_BUILD=%%k |
goto :__ver_split_done |
) |
:__ver_split_done |
if ""%OS_MAJOR%"" GEQ ""6"" ( |
set IsVistaOrHigher=true |
if ""%OS_MINOR%"" == ""1"" ( |
set IsWin7OrHigher=true |
goto :__ver_set_done |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.