next.js, nginx, reverse-proxy, ssl
$ sudo apt-get update
$ sudo apt-get install nginx letsencrypt| // 1-я задача | |
| function foo() { | |
| const x = 10; | |
| return { | |
| x: 20, | |
| bar: () => { | |
| console.log(this.x); | |
| }, | |
| baz: function () { | |
| console.log(this.x); |
| /// Base interface | |
| import 'remote_config_base.dart'; | |
| /// Conditional import | |
| import 'remote_config_mobile.dart' | |
| // ignore: uri_does_not_exist | |
| if (dart.library.html) 'remote_config_web.dart'; | |
| ... | |
| final config = await getRemoteConfig(); |
If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, open your browser’s dev tools and run the code below in the console:
Last confirmed working: May 2025 on version 7.94
var filename = 'FILENAME.wpress';
| #!/bin/bash | |
| # Script for automatically updating the DNS records using the DirectAdmin API. | |
| # Requires you to have curl, dig and json installed. | |
| # | |
| # By Daniël van de Giessen, 2018-09-10 | |
| # https://www.dvdgiessen.nl | |
| # Configuration | |
| DOMAINNAME="example.com" |
| <?php | |
| /** | |
| * single-{category_slug}.php || single-post-type.php || single.php | |
| * | |
| * Gets post cat slug, post type and look matching single- templates. | |
| * If $categories is not empty, get the category slug, and look for single-{$category_slug}.php. If this file doesn't exist then return single.php. | |
| * If $categories is empty, then check the post_type. If its not equal to post, then we are using a custom post type. Look for | |
| * single-{$post_type}.php. If this file doesn't exist then use single.php. | |
| * If $categories is empty and post_type is equal to post then use single.php. | |
| * |
| // Place this in wp-config | |
| define( 'ACF_5_KEY', 'yourkeyhere' ); | |
| // Set ACF 5 license key on theme activation. Stick in your functions.php or equivalent. | |
| function auto_set_license_keys() { | |
| if ( ! get_option( 'acf_pro_license' ) && defined( 'ACF_5_KEY' ) ) { | |
| $save = array( | |
| 'key' => ACF_5_KEY, |
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0-modified | 20110126 | |
| License: none (public domain) | |
| */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, |
| add_filter( 'woocommerce_billing_fields', 'custom_woocommerce_billing_fields' ); | |
| function custom_woocommerce_billing_fields( $fields ) { | |
| // Over-ride a single label | |
| $fields['billing_first_name']['label'] = 'Your label'; | |
| // Over-ride a single required value | |
| $fields['billing_first_name']['required'] = false; |