Logo Zekun's Zone
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Tags
  • camera
  • chatgpt
  • command
  • configuration
  • connection
  • cuda
  • docker
  • hardware
  • linux
  • mapbox
  • mapnik
  • nlp
  • raspberrypi
  • ssh
  • tiles
  • timelapse
  • vscode
Hero Image
Two Github Accounts with Two SSH Keys

To use two different GitHub accounts, one for work and one for personal use, you will need to create two separate RSA keys. Create Two RSA keys Here are the steps to create two RSA keys: Open your terminal. Input the following command, replacing “email@example.com” with your email address: ssh-keygen -t rsa -C "[email@example.com](mailto:email@example.com)" When asked to enter a file in which to save the key, type in a unique name for each key.

March 27, 2023 Read
Hero Image
Raspberry Pi Connect To WIFI with Command

If you have an extra monitor, keyboard and mouse, then connecting Rapsberry Pi to WIFI is really easy. You just click a few buttons in the GUI and you’re done. However, these gadgets are not always handy. In this case, you will need to connect the Pi with WIFI with command line. This blog shows you how to do it. Things to prepare: Ethernet Cable A device with network connectivity (mine is MacBook) Steps On the WIFI-connected device, type ifconfig | grep broadcast | arp -a.

October 14, 2021 Read
Hero Image
Run jupyter notebook in docker container on remote server

Jupyter notebook is an extremely convieninent tool for debugging a piece of code. It runs on browser and allows you to run code piece by piece instead of fresh from the begining. With docker, jupyter notebook is slightly more confusing than it is on local machine. This short article talks about how to correctly forward the port to run jupyter notebook in docker container on remote server. We will have three locations to deal with; local machine, remote server, docker container.

August 8, 2021 Read
Hero Image
Common Commands

Add python2 kernels to jupyter notebook: (source: https://ipython.readthedocs.io/en/stable/install/kernel_install.html) python2 -m pip install ipykernel python2 -m ipykernel install --user Add python3 kernels to jupyter notebook: python3 -m pip install ipykernel python3 -m ipykernel install --user AttributeError: module ‘matplotlib.colors’ has no attribute ’to_rgba’ Update matplotlib python3 -m pip install --upgrade matplotlib Customized Datagenerator having AttributeError: ‘ProgbarLogger’ object has no attribute ‘log_values’ Check if the data generator could not load data correctly (0 sample)

January 5, 2021 Read
Hero Image
Clean up boot directory when full

When /boot directory is full, errors will occur if we try to install new packages or libraries. Here is a short blog showing how to clean up /boot space by getting rid of outdated kernel files). Identify the current kernel version Use the command below uname -r For me it’s showing up 4.4.25-040425-generic List all the files and folders in /boot directory ls /boot/ Then you will see lots of old kernels.

January 30, 2020 Read
Navigation
  • About
  • Experiences
  • Publications
  • Selected Projects
  • Accomplishments
  • Recent Posts
Contact me:
  • li002666 [Shift+2] umn.edu
  • zekun-li

Toha Theme Logo Toha
© 2023 Copyright.
Powered by Hugo Logo