Skip to content

Instantly share code, notes, and snippets.

View inode64's full-sized avatar

Francisco Javier inode64

View GitHub Profile
@inode64
inode64 / cancel_jobs.sh
Created August 23, 2021 09:56
Cancel all waiting jobs in bareos or bacula
#!/bin/bash
for fn in $(echo "s dir" | bconsole | awk '/is waiting/ {print $1}' | sort -r); do
echo "cancel jobid=$fn"
done | bconsole
@inode64
inode64 / DriveClean.ps1
Created April 3, 2023 08:57 — forked from mark05e/DriveClean.ps1
Simple script to clear temp files and browser cache/history
#------------------------------------------------------------------#
#- Clear-GlobalWindowsCache #
#------------------------------------------------------------------#
Function Clear-GlobalWindowsCache {
Remove-CacheFiles 'C:\Windows\Temp'
Remove-CacheFiles "C:\`$Recycle.Bin"
Remove-CacheFiles "C:\Windows\Prefetch"
C:\Windows\System32\rundll32.exe InetCpl.cpl, ClearMyTracksByProcess 255
C:\Windows\System32\rundll32.exe InetCpl.cpl, ClearMyTracksByProcess 4351
}