Skip to content

Instantly share code, notes, and snippets.

View jjsaunier's full-sized avatar

Johann Saunier jjsaunier

View GitHub Profile
@jjsaunier
jjsaunier / Dockerfile
Last active August 14, 2018 18:56
PPM under PHAR
FROM php-cgi #custom
COPY api.phar /api.phar
EXPOSE 8888
CMD ["/api.phar", "start", "-c", "ppm.json"]
Inch Size meters of led strip required
26 ″ 57,6 x 32,4 cm 1,8
28″ 62 x 34,9 cm 1,94
30″ 66,4 x 37,4 cm 2,08
32″ 70,8 x 39,8 cm 2,21
39″ 86,3 x 48,6 cm 2,70
40″ 88,6 x 49,8 cm 2,77
42″ 93 x 52,3 cm 2,91
46″ 101,8 x 57,3 cm 3,18
47″ 104 x 58,5 cm 3,25

Keybase proof

I hereby claim:

  • I am prophet777 on github.
  • I am sko777 (https://keybase.io/sko777) on keybase.
  • I have a public key ASDBltkKpqAY6j1HaE_0qPkKqILf_AsyXylsmVoHXFN-Nwo

To claim this, I am signing this object:

@jjsaunier
jjsaunier / sh
Created November 9, 2017 19:47
Share media with any DLNA ready device in the most simple way with docker
docker run --net host -v /home/johann/Videos/:/media -e MINIDLNA_MEDIA_DIR=/media -e MINIDLNA_PORT=8200 -e MINIDLNA_FRIENDLY_NAME=johann-arc -p 8200:8200 bobrik/minidlna
<?php
$strategist = new Strategist();
$strategist->respect(function () use ($var) {
return true === $var;
})->then(function () use ($whatever) {
return $whatever->getTrue();
});
$strategist->respect(function () use ($var) {
@jjsaunier
jjsaunier / SassMeister-input.scss
Created August 17, 2015 21:01
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$warning: #f0ad4e;
$info: #5bc0de;
$error: #d9534f;
$min-width: 1024px;
$font-size: 13px;
@jjsaunier
jjsaunier / gist:21eac350aa64abf88585
Created July 20, 2015 13:14
Agnoster theme zsh
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
@jjsaunier
jjsaunier / snippet.sh
Last active August 29, 2015 14:13
git snippet
Update submodule
git submodule foreach "(git checkout master; git pull; cd ..; git add '$path'; git commit -m 'Submodule Sync')"
Syncronized branch with remote
git fetch origin && git reset --hard origin/master && git clean -f -d
@jjsaunier
jjsaunier / redis.sh
Last active August 29, 2015 14:01
PHP extension
#!/bin/bash
apt-get update
apt-get upgrade
apt-get install apt-get install php5-dev
git clone git://github.com/nicolasff/phpredis.git
cd phpredis
phpize
./configure
make && make install
cd ../
@jjsaunier
jjsaunier / sensio-cs-fixer.sh
Last active December 30, 2015 16:39
PHP CS FIXER
php php-cs-fixer.phar fix /path/to/project --level=all