This file contains hidden or 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
# A tool that aims to factory reset Ubuntu | |
sudo dpkg --configure -a | |
sudo apt-get update | |
sudo apt-get -f install | |
sudo apt-get full-upgrade | |
for package in $(snap list | awk '{print $1}' | tail -n +2); do | |
snap remove "$package" | |
done | |
sudo apt-get install --reinstall '~i' --purge | |
sudo rsync -a --delete /etc/skel/ ~/ |
This file contains hidden or 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
/* Copyright (c) 2023, Pranit Shah | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above copyright |