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

本篇文章更新時間:2019/02/16
如有資訊過時或語誤之處,歡迎使用 Contact 功能通知或向一介資男的 LINE 社群反應。
如果本站內容對你有幫助,歡迎贊助支持


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

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...)

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

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...)

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

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 文章裡面的情境其實在管理上很常見,這招沒有理由不用啊~

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...)

把 #SFTP 登入 #限制存取 的做法,根據參數可以指定群組或使用者,也可以指定都到某個資料夾或是使用者的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

WordPress 社群貢獻者、開源社群推廣者。專注於 WordPress 外掛開發、網站效能最佳化、伺服器管理,以及 iDempiere 開源 ERP 導入與客製開發。曾參與 WordCamp Taipei 等社群活動,GitHub Arctic Code Vault Contributor。提供資訊顧問、WordPress 開發教學、主機最佳化與企業 ERP 整合服務。

文章
Filter
Apply Filters
Mastodon