Skip to content

Instantly share code, notes, and snippets.

View Codes-Lab's full-sized avatar
🎯
Focusing

AM Codes-Lab

🎯
Focusing
  • 14:09 (UTC +02:00)
View GitHub Profile
@Codes-Lab
Codes-Lab / DropOracleTablesViewPkgs
Last active August 5, 2025 07:42
Delete all tables, views, packages, procedures, functions, sequences, MaterializerView and index in your Oracle schema.
BEGIN
FOR cur_rec IN (SELECT object_name, object_type
FROM user_objects
WHERE object_type IN
('TABLE',
'VIEW',
'PACKAGE',
'PROCEDURE',
'FUNCTION',
'SEQUENCE'
@Codes-Lab
Codes-Lab / Shrink WSL Docker Disk
Last active August 21, 2025 08:27
Docker wsl disk size Shrink, Shrink Docker desktop Vdisk in Windows
wsl --shutdown
# make sure everything is stopped
wsl --list --verbose
#Verify everything is stopped by:
>> wsl.exe --list --verbose
#Then start diskpart:
>> diskpart
#and inside diskpart type:
@Codes-Lab
Codes-Lab / gist:bc0219c67b4beda4baa0d2e70161658a
Created November 19, 2025 18:08
Install Docker Engine on Ubuntu 24.04
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc