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: 'publication', | |
initial: 'draft', | |
states: { | |
draft: { | |
on: { | |
PUBLISH: 'published', | |
SCHEDULE: 'scheduled', | |
FROZE: 'frozen', | |
DELETE: 'deleted', |
const fetchMachine = Machine({ | |
id: 'proofreading', | |
initial: 'unread', | |
states: { | |
unread: { | |
on: { | |
ASK_PROOFREADING: 'submitted_proofreading', | |
}, | |
}, | |
submitted_proofreading: { |
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... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<style type="text/css"> | |
a { text-decoration: none; } | |
a:hover { text-decoration: underline; } | |
h1 { font-family: arial, helvetica, sans-serif; font-size: 18pt; font-weight: bold;} | |
h2 { font-family: arial, helvetica, sans-serif; font-size: 14pt; font-weight: bold;} | |
body, td { font-family: arial, helvetica, sans-serif; font-size: 10pt; } | |
th { font-family: arial, helvetica, sans-serif; font-size: 11pt; font-weight: bold; } |
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" |