This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# script to be used in udev IMPORT{program} directive | |
# for naming emcpower devices | |
# | |
# Sample output is the following | |
# #/usr/local/bin/powermt_udev.py /dev/emcpowera | |
# POWERPATH_WWID=0000FFFF12345678BBBB0000 | |
# POWERPATH_VNXNAME=MY_SPOOL_SPACE | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright (c) Twisted Matrix Laboratories. | |
# See LICENSE for details. | |
""" | |
Example using stdio, LineReceiver, ClientFactory and twisted.web.client. | |
This could be used with rsyslog omprog module to forward messages to | |
different servers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- disable some repository from a catch-all mirror --> | |
<mirrors> | |
<mirror> | |
<id>insideFirewallRepo</id> | |
<mirrorOf>!nexus-repo-releases,!nexus-repo-snapshots,*</mirrorOf> | |
<name>Mirror of the world outside.</name> | |
<url>http://nexus_url/nexus/content/groups/public/</url> | |
</mirror> | |
</mirrors> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Those profiles enables arquillian integration tests under | |
* src/it/java | |
* src/it/resources | |
To run them, use eg. | |
# mvn -Darquillian=true -Parq-eap6-managed | |
They rely on src/it/resources/arquillian.xml containing the | |
container qualifiers named: | |
* eap6-managed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cat /etc/rsyslog.d/20-test.conf | |
# Define a new template to trace syslogseverity | |
$template TwistedTmpl,"%TIMESTAMP% %syslogtag% %syslogseverity-text%:%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n" | |
# Then split critical, error, warning, notice in test-rsyslog... | |
if $programname == 'twisted' and $syslogseverity <= 4 then /var/log/test-rsyslog.log;TwistedTmpl | |
& ~ | |
# and debug, info in test-rsyslog-debug | |
if $programname == 'twisted' and $syslogseverity > 4 then /var/log/test-rsyslog-debug.log;TwistedTmpl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function, division | |
from time import gmtime,localtime,strptime,strftime,mktime | |
from sys import argv | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# A set of default configurations for MySQL | |
# | |
[mysql] | |
socket=/var/lib/mysql/mysql.sock | |
# | |
# Configurazione per mysql enterprise backup | |
# | |
[mysqlbackup] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unset DOCKER_HOST DOCKER_MACHINE_NAME DOCKER_MACHINE_NAME DOCKER_TLS_VERIFY DOCKER_CERT_PATH | |
export SWARM_TOKEN=$(cat swarm.token) | |
echo $SWARM_TOKEN | |
CONSUL_IP=$(docker-machine ip consul) | |
_cluster="A" | |
_master=${_cluster}-0 | |
_cert_home="$HOME/.docker/machine/machines/${_master}" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT constraint_name, constraint_type, column_name | |
from user_constraints natural join user_cons_columns | |
where table_name = "my_table_name"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dip(){ | |
# Show docker ips | |
local arg=${1} | |
if [ -z "$arg" ]; then | |
arg=$(docker ps -q) | |
fi | |
/bin/docker inspect --format ' {{.Name}} {{.NetworkSettings.IPAddress}}' $arg | |
} | |
OlderNewer