All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fcitx5+rime的方案不稳定,我推荐使用ibus的方式 | |
$ yay -S ibus ibus-sunpinyin sunpinyin ibus-pinyin | |
# ibus-pinyin 可以选择繁体字输入,sunpinyin可以自然码输入 | |
$ cat ~/.xinitrc | |
#!/bin/bash | |
... | |
export XMODIFIERS=@im=ibus | |
export QT_IM_MODULE=ibus | |
export GTK_IM_MODULE=ibus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# A CORS (Cross-Origin Resouce Sharing) config for nginx | |
# | |
# == Purpose | |
# | |
# This nginx configuration enables CORS requests in the following way: | |
# - enables CORS just for origins on a whitelist specified by a regular expression | |
# - CORS preflight request (OPTIONS) are responded immediately | |
# - Access-Control-Allow-Credentials=true for GET and POST requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$list = []; | |
for ($i = 0; $i < 10; $i++) { | |
$obj = new \stdClass(); | |
$list[] = $obj; | |
$obj->val = $i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$a1 = ["a","b","c"]; | |
$a2 = ["i","j","o"]; | |
$a3 = ["x","y","z"]; | |
function arraysFullCombination() { | |
$arrays = func_get_args(); |