Skip to content

Instantly share code, notes, and snippets.

View mathieutu's full-sized avatar
🚴

Mathieu TUDISCO mathieutu

🚴
View GitHub Profile
@mathieutu
mathieutu / README.md
Created April 2, 2020 14:16
Readme projet
@mathieutu
mathieutu / back.yml
Created March 25, 2020 18:18
Github action php laravel
name: Back
on: [push]
jobs:
tests:
name: Tests d'API
runs-on: ubuntu-latest
services:
postgres:
@mathieutu
mathieutu / eslintrc.js
Created March 25, 2020 18:12
config Eslint
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['airbnb', 'plugin:@typescript-eslint/recommended'],
plugins: ['@typescript-eslint/eslint-plugin', 'react-hooks'],
env: {
browser: true,
node: true,
jest: true,
},
rules: {
@mathieutu
mathieutu / jquery.html
Last active July 19, 2021 00:02
Jquery to vue start
<!doctype html>
<html lang="fr">
<head>
<title>jQuery example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
@mathieutu
mathieutu / server.js
Created March 5, 2019 16:38
Nuxt v1 https
const { Nuxt } = require('nuxt')
const https = require('https')
const { readFileSync } = require('fs')
const port = 443
const config = require('./nuxt.config.js')
const nuxt = new Nuxt(config)
const options = {
key: readFileSync('/home/store/certs/store.key'),
@mathieutu
mathieutu / index.d.ts
Last active January 22, 2023 01:12
PackageJson Typescript definitions.
export interface PackageJSON extends Object {
name: string
version?: string
description?: string
keywords?: string[]
homepage?: string
bugs?: string | Bugs
license?: string
author?: string | Author
contributors?: string[] | Author[]
@mathieutu
mathieutu / nah.sh
Created January 29, 2019 17:58
Git nah
git reset --hard; git clean -df
@mathieutu
mathieutu / database.php
Last active November 30, 2018 17:08
Database config postgres laravel
<?php
$parseUrl = function ($config, $default = null) {
return data_get(parse_url(env("DB_URL", env("DATABASE_URL"))), $config) ?: $default;
};
return [
/*
|--------------------------------------------------------------------------
@mathieutu
mathieutu / project.sh
Last active November 26, 2018 22:03
project launcher
#!/bin/sh
function dkc() {
docker-compose $@
}
function dkcU() {
dkc up -d $@
}
@mathieutu
mathieutu / AllowAllForNova.php
Created November 22, 2018 08:07
Nova policies
<?php
namespace App\Policies;
class AllowAllForNova
{
public function viewAny()
{
return $this->sameForAll();
}