Skip to content

Instantly share code, notes, and snippets.

View degouville's full-sized avatar
🎯
Available

Mathieu de Gouville degouville

🎯
Available
View GitHub Profile
@degouville
degouville / biome.json
Created April 14, 2025 19:43
Biome 1.9 for Next
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"ignore": ["*.gen.ts", "*config*"]
},
"linter": {
"enabled": true,
@degouville
degouville / falsehoods-programming-time-list.md
Created September 10, 2024 14:43 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@degouville
degouville / falsehoods-programming-time-list.md
Created September 10, 2024 14:43 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@degouville
degouville / getValues.js
Last active March 5, 2022 17:36
Snippet to add more Values for a Record in Airtable Automations
const getValues = (...fields) => baseValues => {
const setValue = key => [key.toLocaleLowerCase(), baseValues.getCellValue(key)]
const keyValues = fields.map(setValue)
const addedValues = Object.fromEntries(keyValues)
return {
...baseValues,
...addedValues
}
}
@degouville
degouville / Prestashop 1.6 Nginx + PHP-FPM config for Multisite
Last active May 27, 2021 20:53
βœ… A working configuration for Nginx + PHP-FPM from PHPBrew for Prestashop Multisites with URL Rewriting
server {
server_name myshopdomain.com;
root /var/www/myshopdomain.com;
index index.html index.php;
# Multisite indexes - Define a new `index` for each sites
location /shop-one/ {
try_files $uri $uri/ /shop-one/index.php?$args;
}
Vue.js 3 hrs 52 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’ 83.2%
JavaScript 44 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 15.8%
Other 1 min β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.7%
JSON 0 secs β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.3%
@degouville
degouville / send_mail.md
Created December 1, 2016 14:18
Send mail with Nginx & PHP-FPM

Send a simple cmd for test

php -r "var_dump(mail('[email protected]', 'test', 'test'));"

@degouville
degouville / nginx_x_wordpress_snippets
Created August 22, 2016 20:00
Nginx X WordPress Snippets
server {
listen 80;
index index.php;
server_name domain.tld;
root /var/www/wordpress;
location = /favicon.ico {
log_not_found off;
access_log off;
@degouville
degouville / Jquery Smooth Scroll
Last active August 14, 2016 14:05
Jquery Smooth Scroll
// Requires HTML tag like :
// <a class="trigger" data-target="foo">Foo</a>
// <a class="trigger" data-target="bar">Bar</a>
// ...
// and
// <div id="foo"></div>
// <div id="bar"></div>
// ...