| Emoji | Name | Text example |
|---|---|---|
| 🚀 | Rocket | You're up |
| 📦 | Package | Installing additional dependencies... |
| ⚓ | Hook | Running completion hooks... |
| 📄 | Document | Generating README.md... |
| 🎉 | Party | Successfully created project hello-vue. |
| 👉 | Next | Get started with the following commands: |
| ✔ | Tick | Task completed |
| ✨ | Magic | Assembling project... |
This file contains hidden or 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
| <?php | |
| /* | |
| * Display LibreNMS interface graphs in Netbox | |
| * | |
| * 1. Upload this file into the plugin folder of LibreNMS. | |
| * 2. Generate an API key in LibreNMS and insert the connection details below. | |
| * 3. Create graphs in Netbox using the following URL scheme. | |
| * https://nms.level66.network/plugins/netbox-graph.php?device={{ obj.device.name }}&interface={{ obj.name }}&duration=8h | |
| * 4. Save time in your daily work! | |
| * |
This file contains hidden or 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
| # More info here: http://wiki.nginx.org/HttpProxyModule | |
| # Source from Centos Web Panel | |
| proxy_buffering off; | |
| proxy_connect_timeout 59s; | |
| proxy_send_timeout 600; | |
| proxy_read_timeout 600; | |
| proxy_buffer_size 64k; | |
| proxy_buffers 16 32k; | |
| proxy_busy_buffers_size 64k; |
This file contains hidden or 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
| #!/bin/bash | |
| set -o errexit | |
| clear | |
| printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n" | |
| ### HOW TO USE | |
| ### Pre-req: | |
| ### - run on a Proxmox 6 server | |
| ### - a dhcp server should be active on vmbr1 |
This is a very often asked question among PHP developers. This gist aims to answer it.
- Done in DigitalOcean, cheapest droplet ($5), located in Singapore, using Ubuntu Server 18.04.3. (Referral link for anybody interested.)
- System configured with (mostly) default configuration, using what's available from the package installation.
In this exemple of configuration, if the first server fail (proxy_connect_timeout) one time (max_fails), the second server will be used for 60s (fail_timeout).
The SSL certificate need to be configure on the ReverseProxy server AND the proxyied servers. You can use the same certificate and configurations on all servers.
To test the configuration you can change your host file to simulate the correct domain name.
Use the following tool to configure SSL with optimal configuration.
This file contains hidden or 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
| <?php | |
| /** | |
| * Plugin Name: CF Show Pro UI | |
| * Description: Show Caldera Forms pro settings | |
| * Author: Caldera Forms | |
| **/ | |
| //Force Pro settings to show | |
| add_filter('caldera_forms_show_pro_ui', '__return_true'); |
This file contains hidden or 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
| function upload_svg_files( $allowed ) { | |
| if ( !current_user_can( 'manage_options' ) ) | |
| return $allowed; | |
| $allowed['svg'] = 'image/svg+xml'; | |
| return $allowed; | |
| } | |
| add_filter( 'upload_mimes', 'upload_svg_files'); |
This file contains hidden or 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
| <?php | |
| /** | |
| * @author Drajat Hasan | |
| * @email [email protected] | |
| * @create date 2020-08-15 08:39:32 | |
| * @modify date 2021-06-18 08:39:32 | |
| * @license GPL v3 | |
| */ | |
| // Source https://subinsb.com/php-download-extract-zip-archives/ |