Skip to content

Instantly share code, notes, and snippets.

View qin-yu's full-sized avatar
🦏
Bioimage Safari

Qin Yu qin-yu

🦏
Bioimage Safari
  • EMBL
  • Heidelberg, Germany
  • 06:43 (UTC +02:00)
  • LinkedIn in/qin-yu
View GitHub Profile

Setup Conda Environment for StarDist

$ conda create --name stardist-gpu python=3.7  # Although now we have 3.9 but Conda's `gputools` requires 3.7 or less
$ conda activate stardist-gpu
$ conda install -c anaconda tensorflow-gpu
$ conda install -c talley gputools
$ conda install -c anaconda git  # Just to `git checkout dev` for the `dev` branch
$ conda install -c anaconda natsort colorcet
$ git clone git@github.com:stardist/stardist.git

Useful Resourses

  • For people who sometimes jump from one language/env to another and forget syntax idiosyncrasies: Hyperpolyglot.
  • Also a similar, more reference-style resource: Learn X in Y minutes

Recommended Ubuntu 18.04 Setup

Qin Yu, Apr 2020

User Interface

Regolith

Just change themes

$ sudo apt install gnome-tweaks
$ sudo apt install gnome-shell-extensions

How to Configure Regolith

Qin Yu, Apr 2020

I gave up on Regolith simply because of its terrible mechanism of rearranging windows. I will come back when people deal with this issue.

This is my note on Regolith. The first thing you want to do is to remember this shortcut for help: Super+Shift+?

Regolith is a modern desktop environment designed to let you work faster by reducing unnecessary clutter and ceremony. Built on top of Ubuntu, GNOME, and i3, Regolith stands on a well-supported and consistent foundation.

@qin-yu
qin-yu / jupyter-progress-bar.md
Created April 11, 2020 10:10
How to Use Progress Bar in Jupyter Notebook (light blue bar with question mark denominator explained)
@qin-yu
qin-yu / gpu-tf-ubuntu.md
Last active April 28, 2024 19:39
Use TensorFlow with GPU support on Ubuntu
@qin-yu
qin-yu / thunderbird-exchange.md
Last active March 26, 2020 00:43
Using Microsoft Exchange Email and Calendar on Ubuntu with Thunderbird and Lightning

Using Microsoft Exchange Email and Calendar on Ubuntu with Thunderbird and Lightning

Take UCL's email as an example: Connecting Thunderbird using EWS will allow you to access the UCL Global Address List and UCL exchange calendar. You will need to have the following add-on’s installed in Thunderbird before setting up your UCL email account.

  1. ExQuilla for Microsoft Exchange (available from Thunderbird Add-Ons library)
  2. Lightning Calendar (available from Thunderbird Add-Ons library)
  3. Calendar EWS Provider (available from Treenine)

Note that the Calendar EWS Provider is NOT found in Thunderbird Add-Ons library.

@qin-yu
qin-yu / git-untrack.md
Last active April 6, 2020 20:13
How to detect and delete large file throughout history