每个平台的信号定义或许有些不同。下面列出了POSIX中定义的信号。 Linux 使用34-64信号用作实时系统中。 命令man 7 signal提供了官方的信号介绍。
在POSIX.1-1990标准中定义的信号列表
每个平台的信号定义或许有些不同。下面列出了POSIX中定义的信号。 Linux 使用34-64信号用作实时系统中。 命令man 7 signal提供了官方的信号介绍。
在POSIX.1-1990标准中定义的信号列表
| # Based on articles: | |
| # https://ruhighload.com/%D0%9A%D1%8D%D1%88%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5+%D1%81+nginx | |
| # https://wiki.enchtex.info/practice/nginx/cache | |
| # https://gist.github.com/yanmhlv/5612256 | |
| # https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html | |
| # https://blog.runcloud.io/2017/10/28/nginx-caching-tutorial-wordpress.html | |
| # https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps | |
| # https://easyengine.io/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/ | |
There are a mess of troubles in sending and receiving files from my macbook to dev server, since I had no permission to excute command scp on dev server. Here is a lightweight, quick, and convenience tools which related with ssh, called lrzsz. lrzsz is a unix communication package providing the XMODEM, YMODEM, ZMODEM file transefer protocol which usually has been already installed in most of servers.
| var collectionNames = db.getCollectionNames(), stats = []; | |
| collectionNames.forEach(function (n) { stats.push(db[n].stats()); }); | |
| stats = stats.sort(function(a, b) { return b['size'] - a['size']; }); | |
| for (var c in stats) { print(stats[c]['ns'] + ": " + stats[c]['size'] + " (" + stats[c]['storageSize'] + ")"); } |
| function randomColor(){ | |
| return "rgb("+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+")"; | |
| } | |
| function showBoxes(window) { | |
| var rects = []; | |
| function getRects(node){ | |
| var range = window.document.createRange(); | |
| range.setStartBefore(node); | |
| range.setEndAfter(node); |
| <!-- test pass with CryptoJS v3.1.2 --> | |
| <script src="rollups/tripledes.js"></script> | |
| <script src="components/mode-ecb.js"></script> | |
| <script> | |
| /** | |
| * Encrypt message by DES in ECB mode and Pkcs7 padding scheme | |
| * | |
| * NOTE: DES is weak, please use 3DES(Triple DES) or AES | |
| * | |
| * @param {String} message |
| # Copyright @ Bjarte Johansen 2012 | |
| # License: http://ljos.mit-license.org/ | |
| from AppKit import NSApplication, NSApp, NSWorkspace | |
| from Foundation import NSObject, NSLog | |
| from PyObjCTools import AppHelper | |
| from Quartz import kCGWindowListOptionOnScreenOnly, kCGNullWindowID, CGWindowListCopyWindowInfo | |
| class AppDelegate(NSObject): | |
| def applicationDidFinishLaunching_(self, notification): |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |