Skip to content

Instantly share code, notes, and snippets.

View turingmachine's full-sized avatar

Simon Josi turingmachine

View GitHub Profile
--- ./lib/TWiki/Plugins/SpreadSheetPlugin/Calc.pm.old 2009-04-08 16:08:28.000000000 +0200
+++ ./lib/TWiki/Plugins/SpreadSheetPlugin/Calc.pm 2009-04-08 16:06:59.000000000 +0200
@@ -1075,8 +1075,10 @@
for my $i (0 .. $#list ) {
$val = $list[$i] || "";
# search first float pattern, skip over HTML tags
- if( $val =~ /^\s*(?:<[^>]*>)*\$?([\-\+]*[0-9\.]+).*/o ) {
- $list[$i] = $1; # untainted variable, possibly undef
+ if( $val =~ /^\s*(?:<[^>]*>)*\$?([\-\+]*[0-9\.,]+).*/o ) {
+ my $number = $1;
!!! XML
!!! Strict
%html{ html_attrs('en-us') }
%head
%meta{'http-equiv' => 'Content-Type', :content => 'text/html'}
%title cinemaniacs
= stylesheet_link_tag 'base'
= stylesheet_link_tag 'themes/default/style.css'
= javascript_include_tag :defaults
= javascript_include_tag 'cinemaniacs'
xhtml_strict do
head do
title 'cinemaniacs!'
stylesheet_link_tag 'base'
stylesheet_link_tag 'themes/default/style.css'
end
body do
div.container! do
if logged_in?
div.header! do
diff --git a/manifests/vhost.pp b/manifests/vhost.pp
index 0f12ece..5016a53 100644
--- a/manifests/vhost.pp
+++ b/manifests/vhost.pp
@@ -22,7 +22,7 @@ define apache::vhost(
$php_session_save_path = 'absent',
$php_use_smarty = false,
$php_use_pear = false,
- $php_safe_mode = true,
+ $php_admin_flags = [],
[root@tsunami auto]# fsck.ext3 /dev/mapper/iscsi_0p1
e2fsck 1.39 (29-May-2006)
/ contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found. Fix<y>? yes
Inode 1507530 was part of the orphaned inode list. FIXED.
Inode 1507532 was part of the orphaned inode list. FIXED.
Inode 1741710 was part of the orphaned inode list. FIXED.
Inode 1741993 was part of the orphaned inode list. FIXED.
# Generate initial file
TEMPFILE=$(mktemp)
LANG=C Xorg -configure -novtswitch :1 > ${TEMPFILE} 2>&1
if [ $? -ne 0 ]; then
logger -t LTSP "Xorg failed to autodetect this card"
exit 1;
fi
INPUT_FILE=$(cat ${TEMPFILE} | grep "Your xorg.conf file is " | tr -d '\n' | cut -d' ' -f5)
root@ltsp:/tmp# cat tmp.KsImRI3843
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
root@ltsp:/etc/init.d# ltspfsd -d
Program started
Packet length: 12
Packet buffer: 000c0001800031
Packet type: LTSPFS_XAUTH
eacces called
status_return STATUS_FAIL
root@ltsp:/etc/init.d#
$ time augtool match /files/etc/services/service-name hp-collector
/files/etc/services/service-name[899]
/files/etc/services/service-name[900]
real 9m57.568s
user 9m30.142s
sys 0m0.818s
Puppet, la solution de gestion de configuration système.
Le framework Puppet vous offre le moyen de formaliser les directives que
vous souhaitez imposer dans votre infrastructure informatique, d'appliquer
ces directives sur vos serveurs pour composer vos services, et finalement
de superviser et d'ajuster ces directives pour permettre une évolution dans
le temps de votre parc.
Puppet permet de concevoir une infrastructure totalement automatisée, sans
intervention humaine. Les avantages d'une telle infrastructure vont au-delà