docker history --human --format "{{.CreatedBy}}: {{.Size}}" docker-image
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
//* Disable Purchases | |
add_filter( 'woocommerce_is_purchasable', '__return_false'); |
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
/*---------------------------------------------------------------------------------- | |
TABLE OF CONTENT | |
1. Reset | |
2. General Styling (default font, color, lists, headings, form elements, etc.) | |
3. Structure (page width & layout containers) | |
4. Grid (column width) | |
5. Header (logo, tagline, social widget, search form, main menu) | |
6. Page (page title, author page, pagination) | |
7. Post (post layouts & styling, comments, post navigation) |
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 | |
/** | |
* Delete an object, set the ID to 0, and return result. | |
* | |
* @param bool $force_delete | |
* @return bool result | |
*/ | |
public function delete( $force_delete = false ) { | |
// Trigger action before deleting from DB. Allows you to adjust some related object props before delete. | |
do_action( 'woocommerce_before_' . $this->object_type . '_object_delete', $this, $this->data_store ); |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use Automattic\WooCommerce\Client; | |
use Automattic\WooCommerce\HttpClient\HttpClientException; | |
function getWoocommerceConfig() | |
{ | |
$woocommerce = new Client( | |
'https://www.dbogarin.com', | |
'ck_6df71ec5e7d1f63df2a5a08101fcefdcf67a4b51', | |
'cs_cff7aaed1533c3efc88514ad87d503a8727a423a', |
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
axios.interceptors.response.use(function(response) { | |
return response; | |
}, async function(error) { | |
await new Promise(function(res) { | |
setTimeout(function() {res()}, 10000); | |
}); | |
const originalRequest = error.config; | |
if (error.response.status===401 && !originalRequest._retry) { |
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
Dockerfile changes: | |
# Install dependencies only when needed | |
FROM node:14-alpine AS deps | |
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | |
RUN apk add --no-cache libc6-compat | |
WORKDIR /app | |
COPY package.json yarn.lock ./ | |
**COPY ./prisma/schema.prisma ./prisma/schema.prisma** | |
RUN yarn install --frozen-lockfile |
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
"traefik.enable=true" | |
"traefik.docker.network=proxy" | |
"traefik.http.routers.app-secure.entrypoints=websecure" | |
"traefik.http.routers.app-secure.rule=Host(`domain.name`)" |
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
// Create a form synamically | |
var form = document.createElement("form"); | |
form.setAttribute("method", "post"); | |
form.setAttribute("action", "submit.php"); | |
// Create an input element for Full Name | |
var FN = document.createElement("input"); | |
FN.setAttribute("type", "text"); | |
FN.setAttribute("name", "FullName"); | |
FN.setAttribute("placeholder", "Full Name"); |
OlderNewer