一对一关系:有 A 和 B,A 拥有且仅拥有一个 B
https://github.com/imcj/get-mirror
通过查询当前设备的IP地址,获得在物理位置上比较接近的镜像服务。
vagrant@vagrant:~$ echo $(get-mirror ubuntu)
cn.archive.ubuntu.com
- 查看MySQL服务器配置信息
mysql> show variables;
- 查看MySQL服务器运行的各种状态值
mysql> show global status;
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
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below). | |
proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G; | |
# Gzip was on in another conf file of mine...You may need to uncomment the next line. | |
#gzip on; | |
gzip_disable msie6; | |
gzip_static on; | |
gzip_comp_level 4; | |
gzip_proxied any; | |
# Again, be careful that you aren't overwriting some other setting from another config's http {} section. |
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault
##Steps
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
.random-color { | |
border-top-color: "LightCoral"; | |
border-right-color: #a44b58; | |
border-bottom-color: rgb(108, 188, 134); | |
border-left-color: rgb(24%, 88%, 5%); | |
outline-top-color: hsl(88, 69%, 69%); | |
outline-right-color: rgba(220, 71, 132, 0.69); | |
outline-bottom-color: rgba(79%, 47%, 14%, 0.37); | |
outline-left-color: hsla(111, 31%, 38%, 0.86); | |
} |
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
INDEX | |
----- | |
- BUILD IT YOURSELF | |
- BUILD THE AUDIO SERVICE | |
- BUILDING FOR ANDROID | |
- INSTALL WITHOUT BUILDING | |
BUILD IT YOURSELF | |
----------------- |
- ~/Library/Logs/ (我全删了,没影响)
- ~/Library/Caches/xxxxx(使用 DaisyDisk 找到容量比较大的删除. 不会对系统有影响)
- ~/Library/Caches/com.spotify.client(全删, 正常工作)
- ~/Library/Caches/Google/chrome (全删, 正常工作)
- /Applications/Google Chrome/Contents/Versions/ (只保留最新的那个文件夹, 其他的删除, 正常工作)
- ~/Library/Developer/Xcode/DerivedData/ (全删, 正常工作.)
- DaisyDisk 使用试用版即可,可直观查看文件(夹)大小.