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
#!/bin/bash | |
arquivo_entrada='script.sql' | |
arquivo_tmp='temporario.sql' | |
arquivo_saida='saida.sql' | |
cp "$arquivo_entrada" "$arquivo_saida" && sed -e "2,\${`head -n1 "$arquivo_entrada" | sed -r -e 's/, /\n/g' | while read var x val; do echo -n "s/$var\\>/$val/g;"; done`}" "$arquivo_saida" |
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
JBOSS_BASE_DIR=/opt/jboss/standalone | |
JBOSS_LOG_DIR=/opt/jboss/standalone/log | |
JBOSS_LOG_CONF=file:/opt/jboss/standalone/configuration/logging.properties | |
JBOSS_MODULEPATH=/opt/jboss/modules | |
JBOSS_MODULES_SYSTEM_PKGS=org.jboss.byteman | |
JAVA_OPTS= \ | |
-Xms1024m -Xmx1024m -XX:MetaspaceSize=512M -XX:MaxMetaspaceSize=512m \ | |
-Djava.net.preferIPv4Stack=true \ | |
-Djava.awt.headless=true | |
SERVER_OPTS=-c standalone.xml |
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
find . -maxdepth 2 -type f -not -newermt 2018-01-01 | while read q ; do d=$(date -r "$q" +`dirname "$q"`/%Y/%m); mkdir -p "$d"; mv -vi "$q" "$d"; done |
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
pacman -Qi | awk -F ' *|:' 'BEGIN{mm["KiB"]=1024; mm["MiB"]=1024*1024; } /^Name/ { n=$4 } /^Installed Size/ { s=$5; s=s*mm[$6]; printf "%s %s\n", s, n } ' | sort -n |
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
#!/bin/sh | |
# This Ansible module makes a very crude and error prone (didn't check all possible cases, "works for me") | |
# conversion from jboss-cli.sh output to JSON so as to provide facts to Ansible. | |
# How to use: | |
# - put it somewhere in your ANSIBLE_MODULES paths, ansible.cfg's library paths, or role/library/ directory | |
# - run the file name as a task | |
# parse ansible args | |
. "$1" |
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/lib/python2.6/site-packages/pip/commands/search.py.orig 2014-04-24 10:31:14.551357257 -0300 | |
+++ /usr/lib/python2.6/site-packages/pip/commands/search.py 2014-04-24 10:57:17.522362125 -0300 | |
@@ -1,5 +1,6 @@ | |
import sys | |
import textwrap | |
+import urllib2 | |
import pip.download | |
@@ -12,6 +13,22 @@ |