Skip to content

Instantly share code, notes, and snippets.

@kkrieger85
kkrieger85 / generate-docs-gitlab.yml
Created September 1, 2020 14:05 — forked from aronbudinszky/generate-docs-gitlab.yml
Generate docs from open api spec in Gitlab using a shared runner.
image: node:latest
pages:
stage: deploy
script:
- npm install -g redoc-cli
- redoc-cli bundle -o public/index.html documentation/openapi.yaml
artifacts:
paths:
- public
@kkrieger85
kkrieger85 / app.scss
Created June 18, 2020 12:50 — forked from skydiver/app.scss
Laravel + Tailwind CSS + Hot Reload
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@kkrieger85
kkrieger85 / app.scss
Created June 18, 2020 12:50 — forked from skydiver/app.scss
Laravel + Tailwind CSS + Hot Reload
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@kkrieger85
kkrieger85 / clean-magento_ce-db-extended.sql
Created March 3, 2020 11:30 — forked from frozenminds/clean-magento_ce-db-extended.sql
Clean Magento database of junk and unnecessary data
--
-- Magento CE database clean-up extended
--
-- This is an extended clean-up which will clean search, import/export, reports, etc.
--
-- @author Constantin Bejenaru <boby@frozenminds.com>
-- @copyright Copyright (c) Constantin Bejenaru (http://frozenminds.com/)
-- @license http://www.opensource.org/licenses/mit-license.html MIT License
--
@kkrieger85
kkrieger85 / clean-magento_ce-db-extended.sql
Created March 3, 2020 11:30 — forked from frozenminds/clean-magento_ce-db-extended.sql
Clean Magento database of junk and unnecessary data
--
-- Magento CE database clean-up extended
--
-- This is an extended clean-up which will clean search, import/export, reports, etc.
--
-- @author Constantin Bejenaru <boby@frozenminds.com>
-- @copyright Copyright (c) Constantin Bejenaru (http://frozenminds.com/)
-- @license http://www.opensource.org/licenses/mit-license.html MIT License
--
@kkrieger85
kkrieger85 / magento-nginx.conf
Created January 12, 2020 18:33 — forked from gwillem/magento-nginx.conf
Battle-tested Nginx configuration for Magento (source: www.hypernode.com)
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com
# See https://www.byte.nl/blog/magento-cacheleak-issue
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!!
user app;
worker_processes 4;
pid /var/run/nginx.pid;
events {
@kkrieger85
kkrieger85 / magento-nginx.conf
Created January 12, 2020 18:33 — forked from gwillem/magento-nginx.conf
Battle-tested Nginx configuration for Magento (source: www.hypernode.com)
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com
# See https://www.byte.nl/blog/magento-cacheleak-issue
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!!
user app;
worker_processes 4;
pid /var/run/nginx.pid;
events {
@kkrieger85
kkrieger85 / gist:baccbab54a26974d75fb70a23bc6b210
Created June 27, 2019 10:39 — forked from orlov0562/gist:9569dce2759087e92324
Exception back trace with no truncated strings
<?php
// source: http://stackoverflow.com/questions/1949345/how-can-i-get-the-full-string-of-php-s-gettraceasstring
function getExceptionTraceAsString($exception) {
$rtn = "";
$count = 0;
foreach ($exception->getTrace() as $frame) {
$args = "";
if (isset($frame['args'])) {
$args = array();
@kkrieger85
kkrieger85 / ttfb.sh
Created February 21, 2019 10:59 — forked from sandeepraju/ttfb.sh
curl command to check the time to first byte
#!/bin/bash
# file: ttfb.sh
# curl command to check the time to first byte
# ** usage **
# 1. ./ttfb.sh "https://google.com"
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com"
curl -o /dev/null \
-H 'Cache-Control: no-cache' \
-s \
@kkrieger85
kkrieger85 / robots.txt
Created January 23, 2019 15:46 — forked from petskratt/robots.txt
Magento robots.txt
# robots.txt for Magento 1.9.x / v1.6 2018-08-19 / Peeter Marvet
# (original version from 2015, edited in 2017 to add filter query parameter disallow samples + some wildcards,
# edited in 2018 to add query params blocking to Yandex as named User-agent does not read *)
# based on:
# http://inchoo.net/ecommerce/ultimate-magento-robots-txt-file-examples/
# http://www.byte.nl/blog/magento-robots-txt/
# https://astrio.net/blog/optimize-robots-txt-for-magento/
#
# comment and clone at https://gist.github.com/petskratt/016c9dbf159a81b9d6aa
# Keep in mind that by standard robots.txt should NOT contain empty lines, except between UA blocks!