Skip to content

Instantly share code, notes, and snippets.

View turingmachine's full-sized avatar

Simon Josi turingmachine

View GitHub Profile
USER_LDFLAGS = /lib64/libgstreamer-0.10.so /lib64/libgstapp-0.10.so.0 /lib64/libgstvideo-0.10.so.0 /lib64/libopencv_calib3d.so.2.4 /lib64/libX11.so.6 /lib64/libXi.so.6 /lib64/libXrandr.so.2 /lib64/libXxf86vm.so.1 /lib64/libudev.so.1 /lib64/libGLEW.so.1.9.0 /usr/lib64/libPocoNetSSL.so.11 /lib64/libPocoXML.so.11
# use this to add system libraries for example:
# USER_LIBS = -lpango
USER_LIBS =-lpthread -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_flann -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_ts -lopencv_video -lgstbase-0.10
1017 ? Ssl 0:38 /usr/bin/docker -d -s btrfs --dns=172.17.42.1
2802 ? Sl 0:00 \_ docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 5000 -container-ip 172.17.0.2 -container-port 5000
2811 ? Sl 0:00 \_ docke 1017 ? Ssl 0:38 /usr/bin/docker -d -s btrfs --dns=172.17.42.1
2802 ? Sl 0:00 \_ docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 5000 -container-ip 172.17.0.2 -container-port 5000
2811 ? Sl 0:00 \_ docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9100 -container-ip 172.17.0.3 -container-port 9100
2817 ? Ss 0:00 \_ /bin/sh -c /opt/elasticsearch-0.90.9/bin/elasticsearch -f -Des.node.name=elasticsearch-serviced -Des.cluster.name=e88lu5eqrcjgb6l0brrquke0i
2854 ? Sl 1:31 | \_ /usr/bin/java -Xms256m -Xmx1g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiating
2821 ? Ss 0:00 \_ /bin/sh -c DOCKER_REGISTRY_CONFIG=/d
# Interfaces: alert when ifOperStatus =! 1 and when interface does not match regex
(streams
(where (type "interface")
(where (not (ifOperState 1))
(where (not (interface #"^FastEthernet.*"))
(with :state "critical")))))
--- a/hotwire.py
+++ b/hotwire.py
@@ -197,6 +197,7 @@ class HotWireGame():
self.rankings_current += 1
if self.rankings_current == len(self.rankings):
self.rankings_current = 0
+ self.display.blank()
self.display_update()
def show_tribute_display(self):
diff -ru original/classes/Tools.php anpassungen/classes/Tools.php
--- original/classes/Tools.php 2015-08-06 01:01:52.116643359 +0200
+++ anpassungen/classes/Tools.php 2015-08-08 18:24:17.166218907 +0200
@@ -1626,6 +1626,8 @@
case PS_ROUND_HALF_ODD:
return Tools::math_round($value, $precision, Tools::$round_mode);
case PS_ROUND_HALF_UP:
+ case PS_ROUND_CHF_5CTS:
+ return round(20 * $value) / 20;
default:
--- ./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.