154 private links
command
ls -v *.jpg | cat -n | while read n f; do mv -n "$f" "$n.jpg"; done
original content
drwxrwxr-x 55 chchang chchang 4096 Jun 28 09:58 ..
-rw-rw-r-- 1 chchang chchang 177 Jun 28 09:59 README.md
-rw-rw-r-- 1 chchang chchang 2502568 Jun 28 09:59 alexandra-gornago-LrrADFcX80w-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 922144 Jun 28 09:59 douglas-sheppard-9rYfG8sWRVo-unsplash.jpg
-rwxrwxr-x 1 chchang chchang 4462392 Jun 28 09:59 imagebed-github
-rw-rw-r-- 1 chchang chchang 9928644 Jun 28 09:59 jared-rice-PibraWHb4h8-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 1343682 Jun 28 09:59 jeroen-van-pelt-G0uQHBfLTpM-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 1591471 Jun 28 09:59 kam-idris-kyt0PkBSCNQ-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 1153212 Jun 28 09:59 jorge-de-jorge-NvqYkDPE0Rw-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 1772826 Jun 28 09:59 kara-eads-L7EwHkq1B2s-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 2124668 Jun 28 09:59 minh-pham-OtXADkUh3-I-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 1600904 Jun 28 09:59 norbert-levajsics-oTJ92KUXHls-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 1553633 Jun 28 09:59 roberto-nickson-emqnSQwQQDo-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 1640260 Jun 28 09:59 roberto-nickson-tleCJiDOri0-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 2143834 Jun 28 09:59 sam-moqadam-cU5TUyEaZXQ-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 2123133 Jun 28 09:59 sherry-christian-8Myh76_3M2U-unsplash.jpg
-rw-rw-r-- 1 chchang chchang 756974 Jun 28 09:59 vinicius-amnx-amano-17NCG_wOkMY-unsplash.jpg
drwxrwxr-x 3 chchang chchang 4096 Jun 28 10:00 .
drwxrwxr-x 8 chchang chchang 4096 Jun 28 10:00 .git
after command
chchang@hqdc039:~/git/imagebed$ ls -lart
總用量 34828
drwxrwxr-x 55 chchang chchang 4096 Jun 28 09:58 ..
-rw-rw-r-- 1 chchang chchang 177 Jun 28 09:59 1.jpg
-rw-rw-r-- 1 chchang chchang 2502568 Jun 28 09:59 2.jpg
-rw-rw-r-- 1 chchang chchang 922144 Jun 28 09:59 3.jpg
-rwxrwxr-x 1 chchang chchang 4462392 Jun 28 09:59 imagebed-github
-rw-rw-r-- 1 chchang chchang 9928644 Jun 28 09:59 4.jpg
-rw-rw-r-- 1 chchang chchang 1343682 Jun 28 09:59 5.jpg
-rw-rw-r-- 1 chchang chchang 1591471 Jun 28 09:59 7.jpg
-rw-rw-r-- 1 chchang chchang 1153212 Jun 28 09:59 6.jpg
-rw-rw-r-- 1 chchang chchang 1772826 Jun 28 09:59 8.jpg
-rw-rw-r-- 1 chchang chchang 2124668 Jun 28 09:59 9.jpg
-rw-rw-r-- 1 chchang chchang 1600904 Jun 28 09:59 10.jpg
-rw-rw-r-- 1 chchang chchang 1553633 Jun 28 09:59 11.jpg
-rw-rw-r-- 1 chchang chchang 1640260 Jun 28 09:59 12.jpg
-rw-rw-r-- 1 chchang chchang 2143834 Jun 28 09:59 13.jpg
-rw-rw-r-- 1 chchang chchang 2123133 Jun 28 09:59 14.jpg
-rw-rw-r-- 1 chchang chchang 756974 Jun 28 09:59 15.jpg
drwxrwxr-x 8 chchang chchang 4096 Jun 28 10:00 .git
drwxrwxr-x 3 chchang chchang 4096 Jun 28 10:03 .
chchang@hqdc039:~/git/imagebed$ Say you have a big, multi-gigabyte file that you need to securely share with a client. Then, say attempting to upload it via the Nextcloud web UI, WebDAV and curl had all failed. Now, you could try using one of the Nextcloud sync clients, or you could try this command line instead.
Say your data directory on the server is:/var/www/nextcloud/data/files, so I scp'd the file up to there.
After uploading it, change the owner and group to www-data.
The next step is to ask Nextcloud to re-index your data directory. The command to use is occ in the /var/www/nextcloud directory, which you run as the www-data user:
root@39cee95cc745:/data/chchang/files# occ files:scan --all
Starting scan for user 1 out of 2 (admin)
Starting scan for user 2 out of 2 (chchang)
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 16 | 61 | 00:00:00 |
+---------+-------+--------------+
root@39cee95cc745:/data/chchang/files#
Checking the web UI, the file was shown correctly and you can able to share it securely with the client.
This could also be useful if you wanted to add a file directly to another user's area, saving you from having to download the file to your local machine before uploading it to Nextcloud.
Note: If you have the server-side data encryption option enabled in Nextcloud, then this method won't work! In that case, you should use one of the sync clients instead.
IMAP via SSL using port 993:
openssl s_client -showcerts -connect mail.example.com:993 -servername mail.example.com
POP3 via SSL using port 995:
openssl s_client -showcerts -connect mail.example.com:995 -servername mail.example.com
SMTP via SSL using port 465:
openssl s_client -showcerts -connect mail.example.com:465 -servername mail.example.com
SMTP via TLS/StartTLS using port 25 or 587
openssl s_client -starttls smtp -showcerts -connect mail.example.com:25 -servername mail.example.comcubic: 訂製linux LiveCD
systemback: 從現有已安裝的linux 環境製作live CD
respin: 從現有已安裝的linux 環境製作live CD (可以製作liveCD ,但是無法從liveCD安裝系統)
nc -v -u -z -w 3 example.host 20-30
Send UDP packets to ports 20-30 of example.host, and report which ones
did not respond with an ICMP packet after three seconds.
something like
chchang@hqdc039:~/git$ nc -v -u -z -w 3 61.62.189.212 9993
Connection to 61.62.189.212 9993 port [udp/*] succeeded!
chchang@hqdc039:~/git$fcitx-rime config
git clone http://192.168.11.201:3000/changch/rime_config.git unarchive rime.tgz to ~/.config/fcitx/rime
包含了基本的設定,像是可以容錯輸入,也新增了一些標點符號
這個輸入法有個特異功能,跟手機上的輸入法有點類似,就是可以不必全部打完注音就會開始選字
例如 輸入法,我可以不必全部打完,只要輸入三個字的注音開頭就可以了
直接看圖比較清楚

install packages
sudo apt install xrdp tigervnc-standalone-server
update /etc/xrdp/startwm.sh
add these three lines in /etc/xrdp/startwm.sh
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
. $HOME/.profile
restart xrdp service
sudo service xrdp restart
connect with remmina
connect with remmina , choose RDP protocol , and change session to Xvnc , input ID/password