Skip to content

Instantly share code, notes, and snippets.

BEGIN promise 'promise_cf_served_cf_66' of type "access" (pass 0)
rudder verbose: P: Promiser/affected object: '/var/rudder/shared-files/4b081f1c-0d8f-4'
rudder verbose: P: Part of bundle: access_rules
rudder verbose: P: Base context class: any
rudder verbose: P: Stack path: /default/access_rules/access/'/var/rudder/shared-files/4b081f1c-0d8f-4198-8616-cbedba9e89d1/'[1]
rudder info: Failed to canonicalise filename '/var/rudder/shared-files/4b081f1c-0d8f-4198-8616-cbedba9e89d1/' (realpath: No such file or directory)
rudder info: Path does not exist, it's added as-is in access rules: /var/rudder/shared-files/4b081f1c-0d8f-4198-8616-cbedba9e89d1/
rudder info: WARNING: this means that (not) having a trailing slash defines if it's (not) a directory!
rudder verbose: P: .........................................................
rudder verbose: P: BEGIN promise 'promise_cf_served_cf_71' of type "access" (pass 0)
rudder info: Can't stat file '/var/rudder/share/6149530e-db36-49d3-81da-ed3c450ce692/rules/cfengine-community/rudder_promises_generated' on '10.222.111.37' in files.copy_from promise
rudder info: Automatically promoting context scope for 'rudder_promises_generated_tmp_file_error' to namespace visibility, due to persistence
rudder info: Automatically promoting context scope for 'rudder_tools_updated_kept' to namespace visibility, due to persistence
rudder info: Automatically promoting context scope for 'rudder_tools_updated_kept' to namespace visibility, due to persistence
R: *********************************************************************************
* rudder-agent could not get an updated configuration from the policy server. *
* This can be caused by: *
* * an incorrect DNS resolution of this node *
* * an agent key that has been changed *
* * if this no
#!/bin/bash
mysqld start
sleep 10
mysql -u foo -e "create database bar"
select field, sum(field) from (subquery);
-- example
-- field | sum(field)
-- 1 | 11
-- 5 | 11
-- 4 | 11
-- 1 | 11
import java.lang.Math; // headers MUST be above the first class
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
// one class needs to have a main() method
public class HelloWorld
{
// arguments are passed using the text field below this editor
public static void main(String[] args)
{
#!/bin/bash
# What is wrong with this code?
#
#./test.sh -i foo
# output: "has value foo" , as expected
#
#./test.sh -i
# output: nothing , expected "don't have a value"
#
irb(main):001:0> require 'net/fping'
=> true
irb(main):002:0> Net::Fping::latency("192.168.70.6", "68", "6", "1000")
Errno::ENOENT: No such file or directory - fping
from /usr/lib/ruby/2.3.0/open3.rb:199:in `spawn'
from /usr/lib/ruby/2.3.0/open3.rb:199:in `popen_run'
from /usr/lib/ruby/2.3.0/open3.rb:95:in `popen3'
from /var/lib/gems/2.3.0/gems/net-fping-0.3.1/lib/net/fping.rb:54:in `latency'
from (irb):2
from /usr/bin/irb:11:in `<main>'
#!/bin/sh
exec /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config
cat /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:90>
DocumentRoot /var/www/html/smokeping/
<Directory "/var/www/html/smokeping/">
#Options Indexes FollowSymLinks
#AllowOverride All
#Order allow,deny
#Allow from all
Options +ExecCGI
AddHandler cgi-script .cgi .fcgi
# col_name data_type comment
treceived string
unix_tstamp bigint
tryear int
trmonth int
trday int
trhour int
trminute int
trsec int