-
cd /var/www/
-
sudo mkdir -p subdomain/public_html
-
cd subdomain/pub*
-
sudo chown $USER:$USER -R .
-
wp core download
-
sudo chown www-data:www-data -R .
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
/** | |
* goes inside your beloved functions.php | |
*/ | |
add_shortcode( 'recently_viewed_products', 'code_recently_viewed_products' ); | |
function code_recently_viewed_products() { | |
$viewed_products = ! empty( $_COOKIE['woocommerce_recently_viewed'] ) ? (array) explode( '|', wp_unslash( $_COOKIE['woocommerce_recently_viewed'] ) ) : array(); | |
$viewed_products = array_reverse( array_filter( array_map( 'absint', $viewed_products ) ) ); |
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
<body | |
class="text-gray-700 bg-white" | |
style="font-family: 'Source Sans Pro', sans-serif" | |
> | |
<!--Nav--> | |
<nav> | |
<div | |
class="container mx-auto px-6 py-2 flex justify-between items-center" | |
> | |
<a class="font-bold text-2xl lg:text-4xl" href="#"> |
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
filtered_boats: function () { | |
let filtered = this.boats; | |
// the minimums | |
let mins = { | |
"minPrice": 'price', | |
"minLength": 'length', | |
... | |
}; |
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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- import CSS --> | |
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> | |
</head> | |
<body> |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmOIdNdk22jNmqMwaG4EcZQDmQwIRDG4rBvsdLpcXveDHiqantr4Qgc5W/Zhq3psIMCoqOoHrKN6U/Mwvsj9Wi9ECTvV0mwj9vWo55oAdOHXTNyddqAjnK1mmLd8yUzqHH1gqxGSU5tMRLyA1DgeEjQ1p5tVoY86cPVKJKpvBfiscuc+m387nN9TcJLNfl7dbap0bnN1w0ioilY5SlP86bdUA2Gt0cuGuTQBmq9MiQD0PDOawGrl9PiqUqdHovP6jT4BFJEKdW3/1jV5yyD96FrKdWODKd1FUj5f54IeAc1x5cTFshv1kpLWdRW6e7Cw5lwnufsKopbzhLEpCOOMF9 ghost@hell |
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
// Init MYSQL instance | |
// docker run --name mysql-api -e MYSQL_ROOT_PASSWORD=simsalabim -p 3306:3306 -d mysql | |
// docker exec -ti mysql-api mysql --user root --password | |
// > CREATE DATABASE honey; | |
package main | |
import ( | |
"fmt" | |
"github.com/jinzhu/gorm" |
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
var data = [{ | |
id: 7485, | |
name: "Klädseltvätt", | |
categories: [{ | |
id: 189, | |
name: "Tjänster", | |
slug: "services" | |
}, { | |
id: 207, | |
name: "Rekond", |
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 custom_inject() { | |
// promise-polyfill - Lär dig var det används för | |
echo '<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.8.3/polyfill.min.js"></script>'; | |
echo '<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>'; | |
echo '<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-sweetalert/1.0.1/sweetalert.min.css" />'; | |
// Nu har alla nödvändiga filer lästs in, vi är redo att anropa popup | |
echo <<<EOL | |
<script> | |
Swal.fire({ | |
title: "AM's fotvård har tagits över av Mitt i Livet", |
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
package consumer | |
import ( | |
"context" | |
"log" | |
"./gabatcher" | |
) | |
type event struct { |