Skip to content

Instantly share code, notes, and snippets.

@sibinx7
Last active July 30, 2020 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sibinx7/88f514c8b26448bb2a578a609fe5e32b to your computer and use it in GitHub Desktop.
Save sibinx7/88f514c8b26448bb2a578a609fe5e32b to your computer and use it in GitHub Desktop.
Remove hash mismatch repos on ubuntu and linux mint

Hash Mispatch in Ubuntu packages

sudo rm -rf /var/lib/apt/lists/partial
sudo apt-get update -o Acquire::CompressionTypes::Order::=gz

Remove files and folders recursively on Windows powershell

Remove-Item -Recurse -Force some_dir

Create multiple files using terminal

touch _settings-{membership,password,payment-financials,trust-verification,account}.haml

Remove SWAP

sudo swapoff -a  

is the usual way to turn off swap, with the swapon -a command used to turn it back on. See man swapoff for more information about turning off swap for explicit devices.

Disable Swap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment