Clone Mastodon's repository.
# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live
cd ~/live
| <?php | |
| add_filter( 'wp_resource_hints', 'your_add_resource_hints', 10, 2 ); | |
| /** | |
| * Try to improve performance with resource hints. | |
| * | |
| * WP will output protocol-relative 'dns-prefetch' for all scripts and styles which are enqueued | |
| * from external hosts. | |
| * WP will not do 'preconnect', 'prefetch', or 'prerender' automatically. |
| server: | |
| ########################################################################### | |
| # BASIC SETTINGS | |
| ########################################################################### | |
| # Time to live maximum for RRsets and messages in the cache. If the maximum | |
| # kicks in, responses to clients still get decrementing TTLs based on the | |
| # original (larger) values. When the internal TTL expires, the cache item | |
| # has expired. Can be set lower to force the resolver to query for data | |
| # often, and not trust (very large) TTL values. | |
| cache-max-ttl: 86400 |
| version: "3.2" | |
| services: | |
| # Radarr - https://hotio.dev/containers/radarr/ | |
| radarr: | |
| container_name: radarr | |
| image: ghcr.io/hotio/radarr:latest | |
| restart: unless-stopped | |
| logging: | |
| driver: json-file | |
| network_mode: bridge |
| # Sample toolchain file for building for Windows from an Ubuntu Linux system. | |
| # | |
| # Typical usage: | |
| # *) install cross compiler: `sudo apt-get install mingw-w64` or `brew install mingw-w64` on macOS | |
| # *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake -G Ninja -B build -S . | |
| # *) ninja -C build | |
| set(CMAKE_SYSTEM_NAME Windows) | |
| set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) |
| Aspect or Feature | kubernetes/ingress-nginx | nginxinc/kubernetes-ingress with NGINX | nginxinc/kubernetes-ingress with NGINX Plus |
|---|---|---|---|
| Fundamental | |||
| Authors | Kubernetes community | NGINX Inc and community | NGINX Inc and community |
| NGINX version | Custom NGINX build that includes several third-party modules | NGINX official mainline build | NGINX Plus |
| Commercial support | N/A | N/A | Included |
| Implemented in | Go/Lua (while Nginx is written in C) | Go/Python | Go/Python |
| Load balancing configuration via the Ingress resource |
| // Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included in |
| import ipaddress | |
| import requests | |
| import pandas as pd | |
| def bot_ip_addresses(): | |
| bots_urls = { | |
| 'google': 'https://developers.google.com/search/apis/ipranges/googlebot.json', | |
| 'bing': 'https://www.bing.com/toolbox/bingbot.json' | |
| } |
| server { | |
| listen 80; | |
| server_name example.wiki; | |
| # this config assumes that MediaWiki is installed into /opt/mediawiki/w, | |
| # so LocalSettings.php would be located at /opt/mediawiki/w/LocalSettings.php | |
| root /opt/mediawiki; | |
| index index.php; | |
| # allow larger file uploads and longer script runtimes |