Skip to content

Instantly share code, notes, and snippets.

View jmfergeau's full-sized avatar
🗼
Nous n'avons pas besoin de vinaigre balsamique après tout...

JM Fergeau jmfergeau

🗼
Nous n'avons pas besoin de vinaigre balsamique après tout...
View GitHub Profile
@MarkMaldaba
MarkMaldaba / MP3MediaHandler.php
Last active July 3, 2017 20:03
MP3 media handler for MediaWiki
<?php
# Stream MP3 using HTML5 <audio> tag
$wgMediaHandlers['audio/mp3'] = 'MP3MediaHandler';
$wgFileExtensions[] = 'mp3';
$wgExtensionCredits['parserhook'][] = array(
'name' => 'MP3MediaHandler',
'description' => 'Provides an in-page mp3 player.',
@kemitchell
kemitchell / -
Last active April 9, 2024 13:13
npm license values
74925 NONE
54706 MIT
9268 ISC
3050 BSD
1521 BSD-2-CLAUSE
791 APACHE-2.0
699 APACHE 2.0
392 BSD-3-CLAUSE
364 WTFPL
346 UNKNOWN
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@nikoheikkila
nikoheikkila / dosbox-0.74.conf
Created August 30, 2013 17:18
DOSBox 0.74 configuration
# This is the configurationfile for DOSBox 0.74. (Please use the latest version of DOSBox)
# Lines starting with a # are commentlines and are ignored by DOSBox.
# They are used to (briefly) document the effect of each option.
[sdl]
# fullscreen: Start dosbox directly in fullscreen. (Press ALT-Enter to go back)
# fulldouble: Use double buffering in fullscreen. It can reduce screen flickering, but it can also result in a slow DOSBox.
# fullresolution: What resolution to use for fullscreen: original or fixed size (e.g. 1024x768).
# Using your monitor's native resolution with aspect=true might give the best results.
# If you end up with small window on a large screen, try an output different from surface.
@mvilrokx
mvilrokx / opendyslexic.css
Created January 15, 2013 06:09
OpenDyslexic CSS
@font-face {
font-family: 'opendyslexic';
src: url('http://dyslexicfonts.com/fonts/OpenDyslexic-Regular.otf');
font-style: normal;
font-weight: normal;
}
@font-face {
font-family: 'opendyslexic';
src: url('http://dyslexicfonts.com/fonts/OpenDyslexic-Italic.ttf');