Skip to content

Instantly share code, notes, and snippets.

Mathieu Lemoine lemoinem

Block or report user

Report or block lemoinem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View many-properties-petstore.yaml
swagger: '2.0'
info:
description: 'This is a sample.'
version: 1.0.0
title: OpenAPI Petstore
license:
name: Apache-2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
host: petstore.swagger.io
basePath: /v2
View recursive-pet-store-v2.yaml
swagger: '2.0'
info:
description: "This spec is mainly for testing Petstore server"
version: 1.0.0
title: OpenAPI Petstore
license:
name: Apache-2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
host: petstore.swagger.io:80
basePath: /v2
View OnClearListener.php
<?php
namespace AppBundle\Listener;
use JMS\DiExtraBundle\Annotation\InjectParams;
use JMS\DiExtraBundle\Annotation\Inject;
use JMS\DiExtraBundle\Annotation\Service;
use JMS\DiExtraBundle\Annotation\Tag;
use Sonata\MediaBundle\Listener\ORM\MediaEventSubscriber;
/**
@lemoinem
lemoinem / parser-data-attribute.js
Last active Oct 31, 2016
tablesorter parser using data-tablesorter-value to sort and filter
View parser-data-attribute.js
/*! data attribute parser
* This parser will use the data-tablesorter-value to extract the cell's value
* Written by Mathieu Lemoine :https://github.com/lemoinem
*/
/*global jQuery: false */
;(function($){
"use strict";
$.tablesorter.addParser({
id : 'data-attribute',
View collections-add-delete-links.js
@lemoinem
lemoinem / .tmux.conf
Last active Dec 17, 2015
tmux-everywhere
View .tmux.conf
# Make it use M-f, compatible with both emacs, screen and most console interactive applications...
bind-key M-f last-window
bind-key f send-prefix
set -g prefix M-f
# New window on M-f M-c
bind-key M-c new-window
# Reload key
bind r source-file ~/.tmux.conf
@lemoinem
lemoinem / ldap.conf
Last active Jun 15, 2016
Configurations needed to have sssd backed by an OpenLDAP with as-needed cache and OpenSSH support
View ldap.conf
base dc=ldap,dc=office
uri ldap://ldap.office
ssl start_tls
tls_cacert /etc/ssl/certs/CA.pem
@lemoinem
lemoinem / rvm-debug-cd.log
Created Sep 24, 2012
rvm/cd modifying umask
View rvm-debug-cd.log
mlemoine@my-server:~$ umask
0002
mlemoine@my-server:~$ umask 067
mlemoine@my-server:~$ umask
0067
mlemoine@my-server:~$ ( export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > " ; set -x ; cd )
+ : 4 > cd
+ /scripts/cd : cd() 1 > builtin cd
+ /scripts/cd : cd() 3 > [[ -n '' ]]
+ /scripts/cd : cd() 3 > true
@lemoinem
lemoinem / rvm-debug-log.log
Created Sep 22, 2012
rvm --trace use modifying umask
View rvm-debug-log.log
mlemoine@laptop:~$ ssh my-server
Last login: Mon Jan 01 00:00:00 1970 from 0.0.0.0
mlemoine@my-server:~$ umask
0047
mlemoine@my-server:~$ umask 067
mlemoine@my-server:~$ umask
0067
mlemoine@my-server:~$ rvm --trace use ruby-1.9.2-p320
+ [[ -n '' ]]
+ export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
@lemoinem
lemoinem / usocket-debug.lisp
Created Aug 21, 2012
PoC hunchentoot/usocket is exhausting our available file descriptors
View usocket-debug.lisp
;; v1 ::
;; neither https://github.com/lemoinem/hunchentoot/issues/1
;; nor https://github.com/lemoinem/hunchentoot/issues/2
;; are fixed in this version.
(cl:in-package :cl-user)
(defpackage usocket-debug
(:nicknames ud)
(:shadow #:timeout)
You can’t perform that action at this time.