nvm use # Switch node version to supported version *
yarn # Install dependencies* install nvm autoload Read more
| #=========================================================================# | |
| # Default Web Domain Template # | |
| # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # | |
| # https://hestiacp.com/docs/server-administration/web-templates.html # | |
| # /usr/local/hestia/data/templates/web/nginx # | |
| #=========================================================================# | |
| server { | |
| listen %ip%:%web_ssl_port% ssl; | |
| server_name %domain_idn% %alias_idn%; |
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| OLD_EMAIL="your-old-email@example.com" | |
| CORRECT_NAME="Your Correct Name" | |
| CORRECT_EMAIL="your-correct-email@example.com" | |
| if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
| then |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{HTTPS} off | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IfModule> |
| <?php | |
| // morkva-monopay extension | |
| add_action('woocommerce_checkout_create_order', 'add_cheque_metadata', 10, 2); | |
| function add_cheque_metadata($order, $data) { | |
| if($order->get_payment_method() === 'cheque') { | |
| $order->update_meta_data('_pakunok_maluka', 'yes'); | |
| $order->save(); | |
| } | |
| } |
| export const getThumbnail = (id, size = 300) => | |
| `https://drive.google.com/thumbnail?id=${id}&sz=${size}`; | |
| export const getIcon = (mimeType) => | |
| `https://drive-thirdparty.googleusercontent.com/256/type/${mimeType}`; | |
| export const getFile = (id) => `https://drive.google.com/uc?id=${id}`; | |
| const downloadFile = (id) => |
| find . -type f -exec chmod 644 {} + | |
| find . -type d -exec chmod 755 {} + | |
| #fix for wp-config.php and index.php | |
| find . -name "wp-config.php" -exec chmod 444 {} + |
| .input-checkbox { | |
| border : 1px solid map-get($colors, 'ocean'); | |
| position : relative; | |
| transition-duration : 200ms; | |
| -webkit-appearance : none; | |
| appearance : none; | |
| width : 24px; | |
| height : 24px; | |
| &::after { | |
| transition-duration : 100ms; |
nvm use # Switch node version to supported version *
yarn # Install dependencies* install nvm autoload Read more
| import { SitemapStream } from "sitemap"; | |
| import { createWriteStream } from "node:fs"; | |
| import { resolve } from "node:path"; | |
| export function ssrSitemap(opts) { | |
| const pages = new Set(); | |
| let config; | |
| let hasVitePlusinSSR = false; | |
| const defaultOtps = { |
| <?php | |
| $tax = 'YOUR_TAX_HERE'; | |
| $cpt = 'YOUR_CPT_HERE'; | |
| $count = 3; | |
| $types = get_terms(array( | |
| 'taxonomy' => $tax, | |
| 'hide_empty' => false, | |
| 'parent' => 0 | |
| )); | |
| $arr = array( |