_config.yml
Jekyll 的全局配置文件。
比如网站的名字,网站的域名,网站的链接格式等等。
| You are Manus, an AI agent created by the Manus team. | |
| You excel at the following tasks: | |
| 1. Information gathering, fact-checking, and documentation | |
| 2. Data processing, analysis, and visualization | |
| 3. Writing multi-chapter articles and in-depth research reports | |
| 4. Creating websites, applications, and tools | |
| 5. Using programming to solve various problems beyond development | |
| 6. Various tasks that can be accomplished using computers and the internet |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
| <title>Treemap - Neat Zoom Effect</title> | |
| <script type="text/javascript" src="./d3/d3.js"></script> | |
| <style type="text/css"> | |
| body { | |
| overflow: hidden; | |
| margin: 0; |
| license: gpl-3.0 | |
| height: 1060 | |
| redirect: https://observablehq.com/@d3/nested-treemap |
| # | |
| # systemd unit file for Debian | |
| # | |
| # Put this in /lib/systemd/system | |
| # Run: | |
| # - systemctl enable sidekiq | |
| # - systemctl {start,stop,restart} sidekiq | |
| # | |
| # This file corresponds to a single Sidekiq process. Add multiple copies | |
| # to run multiple processes (sidekiq-1, sidekiq-2, etc). |
| if (!String.toRegExp) | |
| String.toRegExp = function String_toRegExp(pattern, flags) { | |
| return new RegExp(pattern.replace(/[\[\]\\{}()+*?.$^|]/g, function (match) { return '\\' + match; }), flags); | |
| }; |
| package pubsub | |
| import ( | |
| "github.com/garyburd/redigo/redis" | |
| log "github.com/sirupsen/logrus" | |
| ) | |
| // Service service | |
| type Service struct { | |
| pool *redis.Pool |
| """ | |
| Copy objects from one bucket/prefix to another bucket with the same prefix. | |
| Used to allow CloudFront logs to get parsed for uploading to ES *AND* analyzed | |
| by WAF. | |
| CloudFront Distribution logs -> s3://es-bucket/incoming -> Lambda (this) -> s3://waf-bucket/ | |
| Set environment variable `destination_bucket` |
| # Mina Deploy | |
| # =========== | |
| # | |
| # Adapted from Creative deploy stack in Manabalss v4, Mar.2015, updated to support staging on Jun.2015 | |
| # On first deploy do: mina setup --verbose | |
| # Then do : mina deploy[initialize] --trace | |
| # | |
| # Usage examples: | |
| # mina deploy[soft,seed,compile] to=staging # deploy task with all options | a simple `mina deploy` will deploy to production | |
| # mina rake[db:seed] # for multi-argument tasks # mina 'rake[payments:refund[arg1\,arg2]]' |
def sha256Hash(text: String) : String = java.security.MessageDigest.getInstance("SHA-256").digest(text.getBytes()).map(0xFF & ).map { "%02x".format() }.foldLeft(""){_ + _}
def sha256Hash(text: String) : String = String.format("%064x", new java.math.BigInteger(1, java.security.MessageDigest.getInstance("SHA-256").digest(text.getBytes("UTF-8"))))verify via:
scala> sha256Hash("Rusty is a cowboy!")