Skip to content

Instantly share code, notes, and snippets.

@kkrieger85
kkrieger85 / install-docker-ubuntu-2025.md
Created March 15, 2026 08:18 — forked from cybergitt/install-docker-ubuntu-2025.md
How to Install Rootless Docker on Ubuntu on 2025

Rootless Docker

This guide teaches how to use Rootlesskit and Docker to install a Rootless Docker and run Docker containers in Rootless mode. The setup works for Linux (Ubuntu, Debian, etc.), and Raspberry PI Docker allows you to create Rootless containers. This means, Docker Engine will create and run these containers in Rootless mode. They will run as unprivileged to the user namespaces creating them.

Install Rootless Docker Kit and Run Rootless Container Mode

You will learn different ways to get Rootless container ready:

  • Using Docker Engine
  • Using Rootlesskit
@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
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
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 \