Skip to content

Instantly share code, notes, and snippets.

View GSmurf's full-sized avatar
🏠
Working from home

GSmurf GSmurf

🏠
Working from home
View GitHub Profile
@GSmurf
GSmurf / stylus trello.css
Last active June 10, 2020 07:55
Trello, Johane custom
/*****************************************************************************************\
* Stylus *
* https://chrome.google.com/webstore/detail/stylus-beta/apmmpaebfobifelkijhaljbmpcgbjbdo *
\*****************************************************************************************/
/* Afficher les labels */
.body-board-view .list-card-labels .card-label {
text-transform: uppercase;
letter-spacing: 0.1em !important;
line-height: 14px !important;
@GSmurf
GSmurf / day-mode
Created August 31, 2017 22:16 — forked from Skehmatics/day-mode
#!/bin/bash
# export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me
PID=$(pgrep -u USER gnome-session-b)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
/usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH'
/usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected] set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(69,90,100)'
@GSmurf
GSmurf / bash
Last active April 30, 2017 14:14
Docker clean all exited containers
docker rm $(docker ps -qa --no-trunc --filter "status=exited") # ceci supprime tous les containers exited
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") # ceci supprime toutes les images non tag
@GSmurf
GSmurf / README.md
Created April 7, 2017 13:08 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&amp;&amp; echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" &gt; /usr/local/etc/php/conf.d/xdebug.ini \
# STEP 1: ENSURE COMPLETION AND PROMPT FUNCTION ARE LOADED
# ========================================================
# OPTION 1: If on OSX using Homebrew:
#
# source $(brew --prefix)/etc/bash_completion.d/git-prompt.sh
# source $(brew --prefix)/etc/bash_completion.d/git-completion.bash
# OPTION 2: If on OSX using built-in Git (also works on ZSH):
#