Skip to content

Instantly share code, notes, and snippets.

@wogho
wogho / Kali-OCI.sh
Last active August 17, 2022 07:21 — forked from AnoRebel/Kali-WSL.sh
Oracle Cloud set up kali Linux
sudo -i
free -m
sudo dd if=/dev/zero of=/mnt/swap.0 bs=5024 count=1048576 && sudo mkswap /mnt/swap.0 && echo "/mnt/swap.0 swap swap defaults 0 0" >> /etc/fstab && swapon /mnt/swap.0 && sudo swapon -s
apt update && DEBIAN_FRONTEND=noninteractive apt install -y wget kali-linux-headless
vi xfce4.sh
#!/bin/sh
#echo "[i] Updating and upgrading Kali (this will take a while)"
@mark05e
mark05e / DriveClean.ps1
Last active July 11, 2024 22:59 — forked from pmsmith/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
}