Comprehensive stress testing on CPU, memory, system I/O and disk
stress
jq
lm-sensors
[193902.436087] netifd[1935]: segfault at 7fdc67b48098 ip 000000000041bbd6 sp 00007ffc3dc65900 error 4 in netifd[404000+1b000] | |
[193902.437573] Code: 01 75 31 48 8b 53 58 be fe 3b 42 00 bf 02 00 00 00 31 c0 e8 01 e6 ff ff 48 89 df e8 23 f0 ff ff c7 83 90 00 00 00 00 00 00 00 8b 7b 68 5b e9 f1 cf ff ff 5b c3 53 48 8d 9f 48 ff ff ff 83 fa | |
[193907.509469] br-lan: port 2(eth2) entered disabled state | |
[193907.510528] br-lan: port 1(eth0) entered disabled state | |
[193907.515712] device eth3 left promiscuous mode | |
[193907.516764] br-lan: port 3(eth3) entered disabled state | |
[193907.536369] device eth2 left promiscuous mode | |
[193907.537567] br-lan: port 2(eth2) entered disabled state | |
[193907.557992] device eth0 left promiscuous mode | |
[193907.559029] br-lan: port 1(eth0) entered disabled state |
import os | |
import pandas as pd | |
lower_bound = int(input("Please enter the lower bound: ")) | |
upper_bound = int(input("Please enter the upper bound: ")) | |
file_list = [] | |
for file_name in os.listdir("."): | |
if file_name.endswith(".csv"): | |
file_list.append(file_name) |
Make, Ninja, Ant, Gradle, MSVC are some of the build systems. They help us to drive the compiler and other build tools. You may need to write a ‘build file’ to tell them the dependency information for them to build a software.
While this is already very convenient, the building of C/C++ projects is not standard across the platforms. Then you may need a ‘meta-build system’ to help you generate ‘build’ files for different build systems.
CMake is such a ‘meta-build system’ that can generate platform based system files by setting some flags.
See this article about the details of a buildsystem: What Is a Build System? - Scott Dorman
It’s annoying on macOS that, if you have an app running in one desktop, and try to open another instance in a separate desktop by clicking on it or spotlight, the OS will jump to the original one, instead of opening a new instance.
This can be solved by Automator
app. You can do some pre-build actions or run scripts with it, and Actions created with Automator
can be indexed by spotlight.
You can open new instances of applications either with shell command or applescript.
open -na <app>
to open a new instance of app. Note that this may mess up your dock since it will likely create separate icons for each instance.
Refer to the manual (man open
) for more info.# Rime alternative settings | |
# encoding: utf-8 | |
# | |
# description: | |
# | |
# difference from default settings: | |
# 1. ascii-style punctuation in half-shape mode | |
# 2. [ ] as paging keys | |
# | |
# save this file as: |
// ==UserScript== | |
// @name 教学立方课件下载脚本 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.6 | |
// @description 在课件页点击导航栏"显示下载链接", 无论课件是否开放下载权限. 仅作学习研究之用, 敬请尊重版权! | |
// @author Richard | |
// @match https://teaching.applysquare.com/S/Course/index/cid/* | |
// @grant none | |
// ==/UserScript== |
[Interface] | |
PrivateKey = your-private-key-here | |
ListenPort = 12345 | |
Address = 172.16.0.2/32, fd01:5ca1:ab1e:819c:1099:903f:1f44:84e8/128 | |
DNS = 1.1.1.1 | |
MTU = 1280 | |
[Peer] | |
PublicKey = your-public-key-here | |
AllowedIPs = 0.0.0.0/1, 128.0.0.0/1, ::/1, 8000::/1 |
mixed-port: 7890 | |
#---------------------------------------------------# | |
## 配置文件需要放置在 $HOME/.config/clash/*.yaml | |
allow-lan: false | |
mode: Rule | |
log-level: silent | |
external-controller: 127.0.0.1:60000 | |
# 节点配置文件统一存放在 ./profiles/proxies/ 目录中 | |
proxy-providers: |