See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
<?php | |
// includes | |
require_once("functions.inc"); | |
require_once("system.inc"); | |
require_once("util.inc"); | |
// global dpinger_dont_add_static_routes option | |
$dp_global_sr_disable = (isset($config['system']['dpinger_dont_add_static_routes']) ? 'ENABLED (checked)' : 'default (unchecked)'); | |
printf("==> global `dpinger_dont_add_static_routes` setting: %s\n", $dp_global_sr_disable); |
# Has XFF header with a value | |
acl has-xff req_header X-Forwarded-For ^(([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)|(\[([0-9a-f]+)?:([0-9a-f:]+)?:([0-9a-f]+|0-9\.]+)?\])) | |
# default logformat | |
logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt | |
# default logformat using XFF instead of client IP address | |
logformat squid-xff %ts.%03tu %6tr %{X-Forwarded-For}>h %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt |
This is a dashing job to find users' availability in their Exchange calendar and puts it on a dashboard.
Note: I am not a rubyist. I'd certainly welcome some idiomadicy lessons in the comments.
Drop ews-availability.rb
in jobs/
(or dashing install b084fa409966f22badaf
), and add the following settings to config.ru
:
# set up flags for Numpy C extentions compiling | |
export CFLAGS="-arch i386 -arch x86_64" | |
export FFLAGS="-m32 -m64" | |
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64" | |
export CC=gcc-4.2 | |
export CXX="g++ -arch i386 -arch x86_64" | |
pip install numpy | |
# success! |