Skip to content

Instantly share code, notes, and snippets.

alias gv='goss validate'
@spham
spham / Kernel.php
Created February 26, 2021 09:25 — forked from phillipsharring/Kernel.php
Laravel Artisan command to perform MySQL Dump using database connection information in the .env file. Forked from https://gist.github.com/kkiernan/bdd0954d0149b89c372a
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
import {
sleep,
group
} from "k6";
import http from "k6/http";
export const options = {
stages: [{
duration: "1m",
target: 10
@spham
spham / Laravel 6.x Github Action with SQLite
Created May 10, 2020 18:50 — forked from djaiss/Laravel 6.x Github Action with SQLite
Working example on how to use SQLite with a Laravel 6.x installation.
name: Unit tests
on: [push]
jobs:
phpunit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Copy .env
// upload des images dans un dossiers externe a l'application
public function postAction()
{
$config = Zend_Registry::get(Cadif_Enum_RegistryKeys::CONFIG);
$dossier = $config->application->uploadCommonPath . $_POST['id_contenu']; // dossier avec numero de contenu
$nom_du_fichier_recu = $_FILES["file"]['name'];
$mon_fichier = $dossier . DIRECTORY_SEPARATOR . $nom_du_fichier_recu;
@spham
spham / dabblet.css
Created December 9, 2019 13:29
Untitled
.toto {
border : 1px dotted black;
padding: 10px;
}
@spham
spham / dabblet.css
Created December 8, 2019 15:08
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@spham
spham / dabblet.css
Last active December 8, 2019 15:08
Untitled
*. {
box-sizing: border-box;
}
body{
margin: 0;
min-width:100vw;
min-height:100vh;}
.centrer{
@spham
spham / dabblet.css
Created December 8, 2019 15:08
Untitled
*. {
box-sizing: border-box;
}
body{
margin: 0;
min-width:100vw;
min-height:100vh;}
.centrer{
@spham
spham / dabblet.css
Last active December 7, 2019 14:46
Untitled
*. {
box-sizing: border-box;
}
body{
min-width:100vw;
min-height:100vh;}
.centrer{
position:absolute;