Skip to content

Instantly share code, notes, and snippets.

View HeZhang1994's full-sized avatar

He Zhang HeZhang1994

View GitHub Profile
@HeZhang1994
HeZhang1994 / remove_old_kernels.md
Created March 31, 2023 09:10 — forked from harshalbhakta/remove_old_kernels.md
Ubuntu Software Updater: Not enough free disk space

The upgrade needs a total of 81.5 M free space on disk '/boot'. Please free at least an additional 17.4 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.

http://askubuntu.com/questions/142926/cant-upgrade-due-to-low-disk-space-on-boot

Run below command as suggested in the error message.

$ sudo apt-get clean

First check your current kernel version.

while len(remaining) > 0 and len(et) < len(vertex) - 1:
# Pop the top edge (currently with the least weight) from the 'remaining' edge list.
e = remaining.pop(0) # The 0-th element will be removed from 'remaining'.
print(e.v1)
# Check the two vertices of this edge and the associated groups. ###
gi = group(e.v1, groups)
gj = group(e.v2, groups)
https://www.anaconda.com/
Download and install 'Anaconda Python 3.7 for Windows'. ~10mins
Search and open 'Anaconda Navigator (anaconda3)' from the status bar of Windows.
Click 'Launch' to open Jupyter Notebook on the homepage of Anaconda.
Done.
@HeZhang1994
HeZhang1994 / notes.md
Created March 17, 2019 03:09 — forked from arthur-e/notes.md
Ubuntu for GIS Installation and Setup

Post-Installation Fixes and Setup

# Install compilers and linking tools; other tools
sudo apt-get install g++ swig curl build-essential python-all-dev

# Install package manager
sudo apt-get install synaptic

# Install Unity customization tool

sudo apt-get install unity-tweak-tool

@HeZhang1994
HeZhang1994 / clean-up-boot-partition-ubuntu.md
Created March 17, 2019 02:28 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r