Skip to content

Instantly share code, notes, and snippets.

View lemoinem's full-sized avatar
💭
I may be slow to respond

Mathieu Lemoine lemoinem

💭
I may be slow to respond
  • Montréal, QC, CA
View GitHub Profile
@lemoinem
lemoinem / usocket-debug.lisp
Created August 21, 2012 17:32
PoC hunchentoot/usocket is exhausting our available file descriptors
;; 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)
@lemoinem
lemoinem / rvm-debug-log.log
Created September 22, 2012 02:24
rvm --trace use modifying umask
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 / rvm-debug-cd.log
Created September 24, 2012 00:03
rvm/cd modifying umask
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 / .tmux.conf
Last active December 17, 2015 20:58
tmux-everywhere
# 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
<?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 / ldap.conf
Last active June 15, 2016 07:01
Configurations needed to have sssd backed by an OpenLDAP with as-needed cache and OpenSSH support
base dc=ldap,dc=office
uri ldap://ldap.office
ssl start_tls
tls_cacert /etc/ssl/certs/CA.pem
@lemoinem
lemoinem / parser-data-attribute.js
Last active October 31, 2016 09:04
tablesorter parser using data-tablesorter-value to sort and filter
/*! 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',
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
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