参考链接:
Cron 语法由 5 个字段组成,从左到右分别是:
- 分钟(0-59)
| #!/usr/bin/env bash | |
| # Reference: https://code.visualstudio.com/docs/setup/linux | |
| sudo apt-get install wget gpg | |
| wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
| sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ | |
| sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
| rm -f packages.microsoft.gpg | |
| sudo apt install apt-transport-https |
| Red | |
| 50 #FFEBEE | |
| 100 #FFCDD2 | |
| 200 #EF9A9A | |
| 300 #E57373 | |
| 400 #EF5350 | |
| 500 #F44336 | |
| 600 #E53935 | |
| 700 #D32F2F | |
| 800 #C62828 |
| // Example program | |
| #include <iostream> | |
| #include <memory> | |
| #include <string> | |
| using std::cout; | |
| using std::endl; | |
| using std::make_unique; | |
| using std::unique_ptr; |
| // PIMPL | |
| #include <iostream> | |
| #include <string> | |
| template <typename T> | |
| class Pimpl { | |
| protected: | |
| T *const impl; | |
| public: | |
| Pimpl(); |
| package main | |
| func printN(n int, prev <-chan struct{}, next chan<- struct{}) { | |
| <-prev // wait for the previous signal | |
| println(n) | |
| next <- struct{}{} // activate the next goroutine | |
| } | |
| func printAll(n int) { | |
| if n < 1 { |
| package main | |
| var m = map[int]map[int]struct{}{ | |
| 1: {2: struct{}{}}, | |
| } | |
| func main() { | |
| for _, item := range [][2]int{ | |
| {1, 2}, | |
| {1, 3}, |
参考链接:
Cron 语法由 5 个字段组成,从左到右分别是:
Reference: https://github.com/intel/linux-npu-driver/releases/tag/v1.8.0
First we need to install the NPU drivers.
Ubuntu 24.04
# 1. wget all the driver deb packages
wget https://github.com/intel/linux-npu-driver/releases/download/v1.8.0/intel-driver-compiler-npu_1.8.0.20240916-10885588273_ubuntu24.04_amd64.deb
wget https://github.com/intel/linux-npu-driver/releases/download/v1.8.0/intel-fw-npu_1.8.0.20240916-10885588273_ubuntu24.04_amd64.deb| package main | |
| import ( | |
| "fmt" | |
| "runtime" | |
| "sync" | |
| "time" | |
| ) | |
| func main() { |
Download URLs: