Skip to content

Instantly share code, notes, and snippets.

View Noxilex's full-sized avatar
🏠
Working from home

Benjamin D'Hoop Noxilex

🏠
Working from home
View GitHub Profile
:: ! 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
@Noxilex
Noxilex / git_fetch_all.sh
Created February 5, 2020 15:21
git fetch all
#!/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'
@Noxilex
Noxilex / delete_all.php
Created November 20, 2022 13:44
delete_all.php
<?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);
}