Skip to content

Instantly share code, notes, and snippets.

View yannbertrand's full-sized avatar
:octocat:

Yann Bertrand yannbertrand

:octocat:
View GitHub Profile
@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 %>';
@yannbertrand
yannbertrand / DatepickerDirective.js
Created August 24, 2016 13:16
An Angular datepicker directive (angular-ui-bootstrap datepicker overlay)
(function () {
'use strict';
angular.module('solisPaiementApp.directives')
.directive('myDatepicker', ['$timeout', function ($timeout) {
return {
restrict: 'A',
require: ['^?form', 'ngModel'],
scope: {
@yannbertrand
yannbertrand / Preferences.sublime-settings
Last active November 14, 2016 21:40
My Sublime Text's user preferences settings
{
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"folder_exclude_patterns":
[
"dist",
"node_modules",
".git"
],
"font_options":
[
@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.