Skip to content

Instantly share code, notes, and snippets.

Olivier Audard dharFr

Block or report user

Report or block dharFr

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
dharFr / pre-commit
Created Mar 26, 2017
Shellcheck pre-commit hook
View pre-commit
# This pre-commit hook run `shellcheck` against your code when you go to commit.
# See:
# To use this script copy it to .git/hooks/pre-commit and make it executable.
# Work out what to diff against, really HEAD will work for any established repository.
if git rev-parse --verify HEAD >/dev/null 2>&1
dharFr /
Last active Mar 26, 2017
Open JIRA from the terminal


  • Copy/Paste the function defined in in you .bash_profile or .bashrc
  • Export JIRA_ROOT variable in your environemnt (most likely in your .bash_profile/.bashrc as well) : export JIRA_ROOT=''


jira [issue]
dharFr /
Last active Aug 29, 2015

Keybase proof

I hereby claim:

  • I am dharfr on github.
  • I am oad ( on keybase.
  • I have a public key whose fingerprint is 562F CA1A 515F D1B7 D0B8 2EA9 9967 66E6 24A9 4F77

To claim this, I am signing this object:

dharFr /
Last active Jan 4, 2016
Quikly setup a local HTTPS server for dev/test purpose

1- Generate a self-signed SSL certificate using openssl

1.1- Generate a key file

> openssl genrsa -out key.pem 1024

1.2- Create a certificate request (CSR) with that key

dharFr /
Created Oct 29, 2013
Testing keyboard (aka remote) events received in a few TV browsers.

Here is the results of a few tests I ran on various "TV browsers" environments.

I wanted to know how those TV environements behaves regarding keyboard events. Is there a reliable standard way of handling remote controllers that we can work with?

The simple JS script I used to test keyCode behavior is available here :

Tested devices :

dharFr /
Last active Dec 20, 2015
Quickly share your local GIT repo

On your side :

> cd ~/path/to/your/repo/
> git daemon --reuseaddr --verbose  --base-path=. --export-all ./.git

On your co-worker side :

View jsbin.ehasok.html
<!DOCTYPE html>
<meta name="description" content="A Simple Video Instant Preview Demo" />
<meta charset=utf-8 />
<title>JS Bin</title>
<video id="video" controls></video>
dharFr /
Last active Dec 11, 2015
Web is more beautiful in Full Screen : A simple bookmarklet to toogle fullScreenMode in modern browsers.

Web is more beautiful in Full Screen

Toogle Fullscreen Bookmarklet

A simple bookmarklet to enable fullScreenMode in modern browsers.


  • Copy loader.js code into a bookmark's location field.
  • Press Ctrl+Enter to toogle fullscreen mode
dharFr / Sample output
Created Aug 23, 2012
grailsenv - Dynamically switch your GRAILS_HOME
View Sample output
oaudard@work:~/Projects/sample-grails-project$ grailsenv
You can’t perform that action at this time.