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
<?php | |
function recursiveDelete($str) { | |
if (is_file($str)) { | |
return @unlink($str); | |
} | |
elseif (is_dir($str)) { | |
$scan = glob(rtrim($str,'/').'/*'); | |
foreach($scan as $index=>$path) { | |
recursiveDelete($path); | |
} |
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/bash | |
# Checks if all subdirectories are up-to-date with their current git branch | |
REPOSITORIES=`pwd` | |
SUCCESS='✔️ ' | |
PROBLEM='✖️ ' | |
WARNING='⚠️ ' | |
BOLD='\033[1m' | |
RED='\033[0;31m' |
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
:: ! Important: Run as Administrator | |
:: Install chocolatey | |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
:: Install each software one by one | |
:: -f force install | |
:: -y says yes to prompt | |
choco install chocolatey -y | |
choco install driverbooster -y |