Only useful if you
- use pinentry (like gpg signing, manage credentials with pass)
- ssh to your desktop sometimes
- Install
pinentry-qtorpinentry-gnome. - Install
pinentry-cursesorpinentry-tty. - Create the installer script and run it with root:
| #!/usr/bin/bash | |
| # This script assumes you | |
| # | |
| # - use key to authorize | |
| # - have an entry in known hosts file (eg. ssh to remote host once) | |
| # | |
| # You should check the "Options=" line to add or change sshfs/fuse options, especially | |
| # the path to key file (default to "${HOME}/.ssh/id_ed25519") and known_hosts file. |
By default, cache location when running CI tasks is /opt/hostedtoolcache. It's okay to change it by setting 3 envvars in config.yaml
runner:
envs:
RUNNER_TOOL_CACHE: /path/to/cache
AGENT_TOOLSDIRECTORY: /path/to/cache
RUN_TOOL_CACHE: /path/to/cache使用 Automate 啟動 Binary Eye 掃碼後,自動傳送簡訊到 1922
Automate 預設簡訊每小時只能發 10 封,若經常需要出入實聯制場所,請自行更改設定 (在主選單的 Settings -> SMS sent limit)
| ((前 轉 前) 反轉) |
| <?php | |
| class SomeClass { | |
| public function process($c) { | |
| if ($c instanceof ClassA) { | |
| $this->processA($c); | |
| } elseif ($c instanceof ClassB) { | |
| $this->processB($c); | |
| } else { | |
| // error process |
This benchmark matches the last route and unknown route. It generates a randomly prefixed and suffixed route in an attempt to thwart any optimization. 1,000 routes each with 9 arguments.
This benchmark consists of 16 tests. Each test is executed 1,000 times, the results pruned, and then averaged. Values that fall outside of 3 standard deviations of the mean are discarded.
| Test Name | Results | Time | + Interval | Change |
|---|---|---|---|---|
| r3 - unknown route (1000 routes) | 995 | 0.0000081977 | +0.0000000000 | baseline |
| r3 - last route (1000 routes) | 997 | 0.0000102492 | +0.0000020514 | 25% slower |
| <?php | |
| class FruitRouteKitGeneratedMux implements Fruit\RouteKit\Router | |
| { | |
| public function __construct() | |
| { | |
| } | |
| private function dispatchGET($uri) | |
| { |
| <?php | |
| require('vendor/autoload.php'); | |
| $mux = new Fruit\RouteKit\Mux; | |
| $mux | |
| ->get('/', ['\A\B\C', 'methodA']) | |
| ->get('/obj/methodA', ['Obj', 'methodA']) | |
| ->get('/obj/methodB', ['Obj', 'methodB']) |