I hereby claim:
- I am j0k3r on github.
- I am j0k (https://keybase.io/j0k) on keybase.
- I have a public key ASBc10HMzZ8qQQMykV78NkiCTPzwuFkrJ3SBAAt_Nt-qrAo
To claim this, I am signing this object:
| const fetchMachine = Machine({ | |
| id: 'proofreading', | |
| initial: 'unread', | |
| states: { | |
| unread: { | |
| on: { | |
| ASK_PROOFREADING: 'submitted_proofreading', | |
| }, | |
| }, | |
| submitted_proofreading: { |
| const fetchMachine = Machine({ | |
| id: 'publication', | |
| initial: 'draft', | |
| states: { | |
| draft: { | |
| on: { | |
| PUBLISH: 'published', | |
| SCHEDULE: 'scheduled', | |
| FROZE: 'frozen', | |
| DELETE: 'deleted', |
| FROM debian:jessie | |
| RUN sed -i '/jessie\-updates/d' /etc/apt/sources.list \ | |
| && echo "Acquire::Check-Valid-Until no;" > /etc/apt/apt.conf.d/99no-check-valid-until | |
| RUN apt-get update | |
| # etc... |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| // instead of using | |
| sfContext::getInstance()->getConfiguration()->loadHelpers('Url'); | |
| // use | |
| sfApplicationConfiguration::getActive()->loadHelpers(array('Url')); |
| # Colorize SVN | |
| # ------------ | |
| # Adds color to the output of commands like svn status and svn update. | |
| # The original version of the script was posted by Ash_ on Stackoverflow | |
| # Source: http://stackoverflow.com/questions/8786400/svn-add-colors-on-command-line-svn-with-awk-in-bash | |
| function svn { | |
| # Skip the color script when running an svn commit. | |
| for x in "$@"; do | |
| if [ $x = commit ] || [ $x = ci ]; then | |
| command svn "$@"; |
| <?php | |
| // from @ubermuda: https://twitter.com/#!/ubermuda/status/85465832217518080 | |
| preg_replace('/[^(\x20-\x7F)]+/', '', $text); |
| <?php | |
| public static function hideInProd(){ | |
| if(sfConfig::get('sf_environment') == 'prod'){ | |
| return " style=\"display:none;\""; | |
| } | |
| } |
| $HTTP["url"] =~ "^/(front|back)end_dev" | |
| { | |
| auth.backend = "htpasswd" | |
| auth.backend.htpasswd.userfile = "/path/to/.passwdstats" | |
| auth.require = | |
| ( "" => | |
| ( | |
| "method" => "basic", | |
| "realm" => "auth required", | |
| "require" => "valid-user" |
| <?php | |
| echo format_number_choice( | |
| '[0] aucun commentaire|[1] 1 commentaire|(1, +Inf] %1% commentaires', | |
| array('%1%' => $nb_results), | |
| $nb_results | |
| ) | |
| ?> |