Skip to content

Instantly share code, notes, and snippets.

View raphink's full-sized avatar
🐝
eBPF everything!

Raphaël Pinson raphink

🐝
eBPF everything!
View GitHub Profile
tcp 0 0 localhost:47708 localhost:61614 ESTABLISHED
tcp 0 0 localhost:47725 localhost:61614 ESTABLISHED
tcp 0 0 localhost:47707 localhost:61614 ESTABLISHED
tcp 0 0 localhost:47740 localhost:61614 ESTABLISHED
tcp 0 0 localhost:47715 localhost:61614 ESTABLISHED
tcp6 96 0 localhost:61614 localhost:47708 ESTABLISHED
tcp6 94 0 ip-10-49-21-59.eu:61614 ip-10-49-21-59.eu:40823 CLOSE_WAIT
tcp6 96 0 localhost:61614 localhost:47740 ESTABLISHED
tcp6 1 0 ip-10-49-21-59.eu:61614 ip-10-49-21-59.eu:40806 CLOSE_WAIT
tcp6 96 0 localhost:61614 localhost:47715 ESTABLISHED
@raphink
raphink / gist:4123876
Created November 21, 2012 08:52
Proposition for a setlist API entry

Proposition for a setlist API entry

In order to easily manage multiple entries in the tree, it would be useful to have a setlist API entry, which would manage both named nodes as well as seq ones. It could look like this:

setlist <path> <label|seq> <replace|add|merge> <value> [value [value […]]]

For example, having /files/etc/ssh/sshd_config/AcceptEnv as:

{ "AcceptEnv"

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 1 more
# puppet resource puppet_auth
puppet_auth { 'Auth rule for /':
ensure => 'absent',
}
puppet_auth { 'Auth rule for /certificate/':
ensure => 'absent',
}
puppet_auth { 'Auth rule for /certificate/ca':
ensure => 'absent',
}
[root@centos6-x86_64 ~]# /usr/bin/yum -d 0 -e 0 -y install mod_auth_cas
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
The GPG keys listed for the "Extra Packages for Enterprise Linux 6 - x86_64" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
if not before.nil?
# Insert before given path
aug.insert(before, "path", true)
entry_path = "#{fpath}/path[count(*)=0]"
elsif not after.nil?
# Insert after given path
aug.insert(after, "path", false)
entry_path = "#{fpath}/path[count(*)=0]"
end
(*
Module: Bacula
Parses: /etc/bacula/*.conf
Author: Domen Kožar <[email protected]>
About: Reference
This lens tries to be ...
About: License
#!/bin/bash
PDF=$1
if [ -z $PDF ]; then
echo "Usage: $0 <file.pdf>"
exit 1
fi
NAME=${PDF%%.pdf}
rpinson@wrk4:~/dev/augeasproviders$ rspec spec/unit/puppet/nrpe_command_spec.rb
WARNING: SimpleCov is activated, but you're not running Ruby 1.9+ - no coverage analysis will happen
WARNING: SimpleCov is activated, but you're not running Ruby 1.9+ - no coverage analysis will happen
FFFFF
Failures:
1) Puppet::Type::Nrpe_command::ProviderAugeas with empty file should create new entry
Failure/Error: apply!(Puppet::Type.type(:nrpe_command).new(
Puppet::Error:
\documentclass[preview,border=1cm]{standalone}
\usepackage[french]{babel}
\usepackage{fontspec}
\usepackage{xunicode}
\setmainfont{Linux Libertine O}
\newfontfamily{\ezr}[Script=Hebrew]{EzraSIL}
\usepackage{amsmath}