Skip to content

Instantly share code, notes, and snippets.

View YannRobert's full-sized avatar
🏠
Working from home

Yann ROBERT YannRobert

🏠
Working from home
  • Paris, France
View GitHub Profile
@YannRobert
YannRobert / 1-openssl-connect-shows-issue.log
Last active October 8, 2015 13:13
TLS certificate issue with carbon.hostedgraphite.com:20030
# openssl s_client -connect carbon.hostedgraphite.com:20030
CONNECTED(00000003)
depth=0 OU = Domain Control Validated, OU = PositiveSSL Wildcard, CN = *.hostedgraphite.com
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 OU = Domain Control Validated, OU = PositiveSSL Wildcard, CN = *.hostedgraphite.com
verify error:num=27:certificate not trusted
verify return:1
depth=0 OU = Domain Control Validated, OU = PositiveSSL Wildcard, CN = *.hostedgraphite.com
verify error:num=21:unable to verify the first certificate
--- linux.rb.ori 2012-09-24 19:20:39.094577648 +0200
+++ linux.rb 2012-09-24 19:41:02.079583990 +0200
@@ -42,14 +42,27 @@
@ui.info I18n.t("vagrant.hosts.linux.nfs_export")
sleep 0.5
+ # as we are potentially asking for a password when using sudo, the user may appreciate some log info
+
nfs_cleanup(id)
@YannRobert
YannRobert / gist:4557761
Last active December 11, 2015 06:18
Patch proposal for linkedin/glu#196
--- a/utils/org.linkedin.glu.utils/src/main/java/org/linkedin/glu/utils/core/DisabledFeatureProxy.java
+++ b/utils/org.linkedin.glu.utils/src/main/java/org/linkedin/glu/utils/core/DisabledFeatureProxy.java
@@ -39,6 +39,14 @@ public class DisabledFeatureProxy implements InvocationHandler
@Override
public Object invoke(Object o, Method method, Object[] objects) throws Throwable
{
- throw new DisabledFeatureException(_feature);
+ final String methodName = method.getName();
+ if (methodName.equals("hashCode") && method.getParameterTypes().length == 0) {
+ return o.hashCode();
@YannRobert
YannRobert / gist:4691758
Created February 1, 2013 14:51
a GLU console-server stderr.log file content to serve as support for an issue report
2013-02-01 09:07:43.253:INFO::jetty-7.2.2.v20101205
2013-02-01 09:07:43.270:INFO::Deployment monitor /<somewhere>/console-server/jetty-distribution-7.2.2.v20101205/webapps at interval 1
2013-02-01 09:07:43.274:INFO::Deployment monitor /<somewhere>/console-server/jetty-distribution-7.2.2.v20101205/contexts at interval 1
2013-02-01 09:07:43.275:INFO::Deployable added: /<somewhere>/console-server/jetty-distribution-7.2.2.v20101205/contexts/console-jetty-context.xml
2013-02-01 09:07:48.728:INFO:/console:Initializing Spring root WebApplicationContext
0 [main] INFO grails.spring.BeanBuilder - [RuntimeConfiguration] Configuring data source for environment: PRODUCTION
824 [main] INFO grails.spring.BeanBuilder - Setting leafExecutorService thread pool size to [6]
1236 [main] INFO grails.spring.BeanBuilder - Registering realm: org.linkedin.glu.console.realms.ShiroLdapRealm
3590 [main] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml fou
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
@YannRobert
YannRobert / fail2ban-allstatus.sh
Created December 21, 2015 16:56 — forked from kamermans/fail2ban-allstatus.sh
Show status of all fail2ban jails at once
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done
@YannRobert
YannRobert / minimal-sepamail-soap-request.xml
Last active January 4, 2016 21:59
Minimal SEPAmail SOAP request (SOAP 1.2 with sample content)
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Header/><env:Body><ns3:sendMissive xmlns:ns3="http://xsd.sepamail.eu/1206/wsdl"><in>aGVsbG8=</in></ns3:sendMissive></env:Body></env:Envelope>
@YannRobert
YannRobert / init-graphite-container-volumes.sh
Last active March 1, 2016 10:56
initialisation of volumes for graphite container hopsoft/graphite-statsd
#!/bin/sh
set -e
set -x
LOG_DIR=$HOME/graphite-volumes/var-log
DATA_DIR=$HOME/graphite-volumes/graphite-storage
VOLUMES_INIT_CONTAINER_NAME=graphite-volumes-init
@YannRobert
YannRobert / save-load-docker-images.sh
Last active December 20, 2021 06:34 — forked from mmrko/save-load-docker-images.sh
Script to (selectively) save/load multiple Docker images
#!/usr/bin/env bash
# Script to (selectively) save/load multiple Docker images to/from a directory.
# Run ./save-load-docker-images.sh for help.
set -e
directory=$PWD
filter=""
compress=0
@YannRobert
YannRobert / 20-3proxy.conf
Last active February 26, 2024 23:50
working 3proxy configuration for a personal usage proxy
# /etc/fail2ban/jail.d/20-3proxy.conf
[3proxy]
enabled = true
filter = 3proxy
action = iptables[name=3proxy, port=3128, protocol=tcp]
logpath = /var/log/3proxy/3proxy.log*
maxretry = 3
bantime = 3600 ; 1 hour
findtime = 3600 ; 1 hour