Skip to content

Instantly share code, notes, and snippets.

View manuelcoppotelli's full-sized avatar
👨‍💻

Manuel Coppotelli manuelcoppotelli

👨‍💻
View GitHub Profile
@manuelcoppotelli
manuelcoppotelli / LICENSE
Created October 27, 2022 19:57 — forked from suhailpatel/LICENSE
Implementation of a database for "Dissecting the humble LSM Tree and SSTable" for SRECon EMEA 2022
The MIT License (MIT)
Copyright (c) 2022 Suhail Patel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
apiVersion: v1
kind: Pod
metadata:
generateName: node-shell-
namespace: kube-system
spec:
containers:
- image: alpine:3.9
name: shell
command: ["nsenter"]
@manuelcoppotelli
manuelcoppotelli / 1-add-middleware.php
Created February 16, 2018 10:51 — forked from adamwathan/1-add-macros.php
Multiformat Endpoints in Laravel
<?php
namespace App\Http\Middleware;
class CaptureRequestExtension
{
public function handle($request, $next)
{
if ($request->route()->parameter('_extension') !== null) {
$request->attributes->set('_extension', substr($request->route()->parameter('_extension'), 1));
@manuelcoppotelli
manuelcoppotelli / boudaries.css
Created February 13, 2018 09:14
Quickly see the boundaries of every element without affecting the layout
* {
outline: 1px solid red !important;
}
@manuelcoppotelli
manuelcoppotelli / loading.css
Created February 13, 2018 09:08
Creates a CSS-only loading spinner.
.is-loading {
color: transparent !important;
pointer-events: none;
}
.is-loading:after {
-webkit-animation: spinAround 500ms infinite linear;
animation: spinAround 500ms infinite linear;
border: 2px solid #dbdbdb;
border-radius: 290486px;
@manuelcoppotelli
manuelcoppotelli / LocalServiceProviderProvider.php
Last active June 10, 2016 07:40
Allow to register some Service Providers only for a specific environment in Laravel 5.1
<?php
namespace Larabook\Providers;
use Illuminate\Support\ServiceProvider;
class LocalServiceProviderProvider extends ServiceProvider
{