- 安装 git
sudo apt install git
- 安装 zsh
sudo apt install zsh
sudo apt install git
sudo apt install zsh
设置别名:
git config --global alias.%ALIAS% %COMMAND%
显示已设置的别名:
git config --get-regexp alias
常用别名:
# References: | |
# https://cmake.org/cmake/help/latest/command/add_custom_target.html | |
# https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/ | |
# https://gist.github.com/socantre/7ee63133a0a3a08f3990 | |
# https://stackoverflow.com/questions/24163778/how-to-add-custom-target-that-depends-on-make-install | |
# https://stackoverflow.com/questions/30719275/add-custom-command-is-not-generating-a-target | |
# https://stackoverflow.com/questions/26024235/how-to-call-a-cmake-function-from-add-custom-target-command | |
# https://blog.csdn.net/gubenpeiyuan/article/details/51096777 | |
cmake_minimum_required(VERSION 3.10) |
#include "Halide.h" | |
#include <halide_benchmark.h> | |
#include <halide_image_io.h> | |
#include <iostream> | |
using namespace Halide; | |
using namespace std; | |
int main(int argc, char** argv) | |
{ |
# | |
# /etc/pacman.conf | |
# | |
# See the pacman.conf(5) manpage for option and repository directives | |
# | |
# GENERAL OPTIONS | |
# | |
[options] | |
# The following paths are commented out with their default values listed. |
# This will define the following variables: | |
# onnxruntime_FOUND -- True if the system has the onnxruntime library | |
# onnxruntime_INCLUDE_DIRS -- The include directories for onnxruntime | |
# onnxruntime_LIBRARIES -- Libraries to link against | |
# onnxruntime_CXX_FLAGS -- Additional (required) compiler flags | |
include(FindPackageHandleStandardArgs) | |
# Assume we are in <install-prefix>/share/cmake/onnxruntime/onnxruntimeConfig.cmake | |
get_filename_component(CMAKE_CURRENT_LIST_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) |
#!/usr/bin/env python | |
import json | |
import tqdm | |
from pathlib import Path | |
import shutil | |
def load_night_and_dawn_list(fn): | |
print('loading night&dawn image list from', fn) | |
fns_night = [] |
#!/usr/bin/env python3 | |
import argparse | |
import paramiko | |
def try_connect(host, user, password) -> bool: | |
ssh = paramiko.SSHClient() | |
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
try: | |
ssh.connect(host, username=user, password=password) |
#!/usr/bin/env python3 | |
# prerequisites: | |
# - sshexec.py | |
# - notify-send package on remote mechine | |
import argparse | |
import sshexec | |
import getpass | |
import subprocess |
#! /usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
# | |
# @file ftp.py | |
# @brief ftp.py | |
# @version V1.0 | |
# @author Nick.Liao | |
# @date 2017-10-18 | |
# |