Skip to content

Instantly share code, notes, and snippets.

@yannbertrand
yannbertrand / links.txt
Last active October 27, 2023 11:46
Formation IMT 2023
@yannbertrand
yannbertrand / settings.json
Last active February 18, 2024 20:19
VS Code config
{
"window.zoomLevel": 2,
"window.autoDetectColorScheme": true,
// Editor
"editor.renderWhitespace": "trailing",
"editor.formatOnSave": true,
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
@yannbertrand
yannbertrand / homebrew-cheatsheet.md
Last active December 11, 2021 13:40
homebrew cheatsheet

Current version: 3.3.7

Install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)

BREW

@yannbertrand
yannbertrand / fixtures.json
Created February 2, 2019 11:09
2019 Six Nations fixtures
[
{
"matchNumber": 1,
"kickOff": "2019-02-01T20:00:00.000Z",
"teamA": "France",
"teamB": "Wales",
"location": "Stade de France, Paris",
"finalScore": "19-24"
},
{
@yannbertrand
yannbertrand / index.js
Created January 14, 2017 20:12
electron-config default usage not working
const Config = require('electron-config');
const config = new Config();
config.set('unicorn', '🦄');
console.log(config.get('unicorn'));
//=> '🦄'
// use dot-notation to access nested properties
config.set('foo.bar', true);
console.log(config.get('foo'));
@yannbertrand
yannbertrand / using_xdebug_with_postman.md
Created December 6, 2016 15:04
Using xDebug with POSTMAN

Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION=PHPSTORM

@yannbertrand
yannbertrand / useful-mac-apps.md
Last active March 23, 2017 01:03
The Mac apps I'm using

f.lux - Make the color of your computer's display adapt to the time of day

Bartender - Organize your menu bar apps

Clean My Mac - Cleaning software

Molotov - French live TV and VOD

CyberDuck - Libre FTP, SFTP, WebDAV, S3, Backblaze B2, Azure & OpenStack Swift browser

@yannbertrand
yannbertrand / mysql-cheatsheet.md
Last active April 6, 2017 13:45
MySQL Cheat Sheet

MySQL Cheat Sheet

connect to MySQL as a root

$ mysql -u root -proot

show the list of databases

mysql> show databases;
@yannbertrand
yannbertrand / index.css
Last active October 2, 2016 09:00
Electron drag macOS
html,
body {
padding: 0;
margin: 0;
}
body {
font-family: -apple-system, 'Helvetica Neue', Helvetica, sans-serif;
-webkit-app-region: drag;
}
@yannbertrand
yannbertrand / gulpfile.js
Created September 11, 2016 15:48
Issue #58 electron-connect
const gulp = require('gulp');
const babel = require('gulp-babel');
const debug = require('gulp-debug');
const cache = require('gulp-cached');
const plumber = require('gulp-plumber');
const notify = require("gulp-notify");
const electron = require('electron-connect').server.create();
const errorTemplate = '<%= error.message %>';