2016 年 第 2 週 Facebook 同步週報 (4 篇)

本篇文章更新時間:2019/02/16
如有資訊過時或語誤之處,歡迎使用 Contact 功能通知。
一介資男的 LINE 社群開站囉!歡迎入群聊聊~
如果本站內容對你有幫助,歡迎使用 BFX Pay 加密貨幣新台幣 贊助支持。


本文引用圖文皆取自[來信]告知。

1.

Alan Storm is a human being living in Portland, OR by way of Seattle, WA by way of Portland, OR by way of Rochester, NY. He likes making computers do things, and talks about that here.(圖片描述:Alan Storm is a human being li...)

一定要直攻核心, 與 PHP 機制息息相關,這篇也在官方文件中視為必讀,推薦。

http://alanstorm.com/drupal_module_hooks

2016-01-10 15:05:36 發佈 | 內文分享連結

2.

PHP supports the concept of variable functions. This means that if a variable name has parentheses appended to it, PHP will look for a function with the same name as whatever the variable evaluates to, and will attempt to execute it. Among other things, this can be used to implement callbacks, funct…(圖片描述:PHP supports the concept of va...)

的機制很妙,但對於可以輸入程式碼來執行的網站而言可一點都不好玩~

http://php.net/manual/en/functions.variable-functions.php

2016-01-10 13:59:21 發佈 | 內文分享連結

3.

SSH agent forwarding 可以讓本地的 SSH Key 在遠端 Server 上進行轉送,也就是當你需要在選端 Server 上使用 SSH Key 時,就不需要將你的 key pair 手動複製到 server 上,是個暨方便又安全的作法。 舉例來說,首先 SSH 登入進 Server1,接著在 Server1 上登入 Server2 時,就會自動使用你本地的 SSH Ke…(圖片描述:SSH agent forwarding 可以讓本地的 SS...)

文章裡面的情境其實在管理上很常見,這招沒有理由不用啊~

SSH agent forwarding 的應用

2016-01-08 15:41:44 發佈 | 內文分享連結

4.

Restricting remote users to their home directories, only allowing access to SFTP for transferring files.(圖片描述:Restricting remote users to th...)

登入 #限制存取 的做法,根據參數可以指定群組或使用者,也可以指定都到某個資料夾或是使用者的home目錄。

1. https://www.linode.com/docs/tools-reference/tools/limiting-access-with-sftp-jails-on-debian-and-ubuntu

2. https://bensmann.no/restrict-sftp-users-to-home-folder/

2016-01-07 15:41:19 發佈 | 內文分享連結

以上資訊由 FB轉發機器人V2.0 彙整發佈。


Share:

作者: Chun

資訊愛好人士。主張「人人都該為了偷懶而進步」。期許自己成為斜槓到變進度條 100% 的年輕人。[///////////____36%_________]

文章
Filter
Apply Filters
Mastodon