Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / links.txt
Last active October 27, 2023 11:46
Formation IMT 2023
@yannbertrand
yannbertrand / autoexec.cfg
Last active January 30, 2022 01:11
CS:GO autoexec file
//C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg
cl_autowepswitch "0" // we dont want to pick up & switch to a rifle up if we're in the middle of firing
cl_disablefreezecam "1"
cl_downloadfilter "nosounds"
cl_disablehtmlmotd "1" // Disables The Servers Message of The Day.
cl_forcepreload "1" // Preloads The Whole Map & Sounds.
@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 / angular-bullshit.js
Last active June 13, 2018 17:48
Bullshit code from Angular
$resource(a, b, {
getSomething: {
method: 'GET',
url: baseUrl + ':id' // work if you pass the `id` param in the parameters object
},
postSomething: {
method: 'POST',
url: baseUrl + ':id', // you need to add the next line to make it work for post requests (didn't try with other verbs)
params: { id: '@id' }
}
@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 / implode-explode.js
Last active April 6, 2017 13:36
How to implode/explode an array in JS?
// explode -> .split
console.log(['Hello', 'World'].join()) // ',' is optional
// → "Hello,World"
// implode -> .join
console.log('Hello,World'.split(','))
// → Array [ "Hello", "World" ]
@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