Skip to content

Instantly share code, notes, and snippets.

View zetako's full-sized avatar
😇

Yexi Zhang zetako

😇
  • National Super Computer Center, Guangzhou, Guangdong, China
  • 07:49 (UTC +08:00)
View GitHub Profile
@zetako
zetako / CWL-Expr-DFA.mmd
Last active September 14, 2023 03:04
DFA for CWL Expr
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zetako
zetako / GetPacmanPkgBySize.sh
Created May 10, 2023 07:56
One Line Commands
# Get all installed pacman package by size
expac -s "%n %m" | sort -rhk 2 | numfmt --to=iec-i --field=2 --suffix=B | column -t | less
# expac is a tool to search pacman db, "%n %m" ask it to output pkgname and size
# sort: -r reverse; -h to sort number; -k to sort part2
# numfmt is a tool to change number to "human-readable"
# column -t can format result like a table
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/zetako/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@zetako
zetako / colorTest.sh
Last active January 2, 2020 02:55
(Terminal ANSI Escape Code) 8-Color Test
echo -e "$(cat colorTest.txt)"
@zetako
zetako / ModelSim 17.1 for (Arch) Linux_CN.md
Last active November 12, 2019 09:05 — forked from dries007/ModelSim 17.1 for (Arch) Linux.md
ModelSim 17.1 for (Arch) Linux

ModelSim 17.1 (Starters Edition) for (Arch) Linux

这是从英文文档翻译和修改得来的

你需要自行下载安装文件并将其与安装脚本放在同一目录下。 作者提供的链接

一个文件名示例 ModelSimSetup-17.1.0.590-linux.run.

  1. 安装依赖(一些是AUR包,32位和64位均需要)