Skip to content

Instantly share code, notes, and snippets.

View aquelito's full-sized avatar

Axel Roche aquelito

  • Craftsman developer
  • France
View GitHub Profile
@aquelito
aquelito / other.md
Last active February 9, 2019 22:46
Drupal Snippet
@aquelito
aquelito / create_file.php
Last active February 9, 2019 23:17 — forked from facine/__INDEX.txt
Drupal 8 - Examples
<?php
// Programmatically create files.
use Drupal\file\Entity\File;
$file = File::create([
'uid' => 1,
'filename' => 'logo.svg',
'uri' => 'public://page/logo.svg',
'status' => 1,
]);
/*doc
---
title: Breadcrumb
component:
notes:
- Note 1
- Note 2
see:
- link1
@aquelito
aquelito / mysql.md
Last active July 1, 2019 10:18
Mysql command shelll

Mysql

Command

Import bdd file into bdd

mysql -u root -p DBB_NAME < /PÄTH_TO_SQL_FILE.sql
@aquelito
aquelito / user.service.js
Created September 15, 2021 10:36
javascript api service file
/**
* @fileOverview The service
*
* @use
*
* const User = require('./user.model')
* const UserService = require('./user.service')
* module.exports = UserService(User)
*
* @requires ...
@aquelito
aquelito / git-command.md
Last active February 22, 2024 12:49
GIT - Ligne de commande principale
title category
Git config
Git

Rappel

Ne pas oublier : l'aide en ligne de commande.