This file contains 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
# /etc/systemd/system/docker.service.d/http-proxy.conf | |
[Service] | |
EnvironmentFile=-/opt/proxy/bin/.docker_env |
This file contains 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
# /etc/sysconfig/docker | |
OPTIONS="--bip=20.18.9.1/24 --fixed-cidr=20.18.9.0/24" |
This file contains 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
ID=$(id -u) | |
PROXYON="${http_proxy}" | |
if [ ${ID} != 0 ] ; | |
then | |
echo "Debes ejecutar este comando como root" | |
else | |
if [ "${PROXYON}X" != "X" ] ; | |
then | |
sed -i "s/\(.*\)\(PROXY\|proxy\)\(=\)/#\1\2\3/" /etc/environment |
This file contains 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
var unirest = require('unirest'); | |
unirest | |
.get('https://some.selfsigned.cert.domain.com') | |
.strictSSL(false) | |
.end(function(response){ | |
console.log(response.body); | |
}); |
This file contains 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
@echo off | |
set WEBDRIVER_HOME="c:\put\your\webdriver\home" | |
set PATH=%WEBDRIVER_HOME%;%PATH% | |
set GRID_HOST="put your GRID HOST here" | |
set GRID_PORT=4444 | |
java -jar selenium-server-standalone-3.4.0.jar -role node -hub http://%GRID_HOST%:%GRID_PORT%/grid/register | |
@echo on |
This file contains 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
WEBDRIVER_HOME="/path/to/webdrivers" | |
JAVA_BIN="/path/to/java_exe" | |
SELENIUM_SERVER_JAR="/path/to/selenium_server_jar" | |
GRID_HOST="Put your GRID HOST here" | |
GRID_PORT=4444 | |
export PATH=$WEBDRIVER_HOME:$PATH | |
$JAVA_BIN -jar $SELENIUM_SERVER_JAR -role node -hub http://$GRID_HOST:$GRID_PORT/grid/register |
This file contains 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
# Para usar esta shell realice los siguientes pasos: | |
# 1.- wget https://gist.githubusercontent.com/pascencio/06ccb1d74ca555b371d04cad810bd484/raw/41cc6f84434576f6b45b88daa30dbddc11a65254/add_proxy.sh | |
# 2.- chmod +x add_proxy.sh | |
# 3.- ./add_proxy.sh | |
read -p "Ingrese el host del proxy: " host | |
reap -p "Ingrese el puerto del proxy: " port | |
echo export HTTP_PROXY=http://${host}:${port} >> ~/.bashrc | |
export HTTPS_PROXY=http://${host}:${port} >> ~/.bashrc |
This file contains 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
{ | |
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", | |
"host": "<ip-del-nodo>", | |
"port": <puerto-del-nodo>, | |
"register": true, | |
"hub": "http://<ip-del-hub>:<puerto-del-hub>" | |
} |
This file contains 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
-- Validamos que el procedimiento existe | |
IF OBJECT_ID ( 'spHelloWorld', 'P' ) IS NOT NULL | |
-- Si existe lo eliminamos para evitar el error al crear | |
DROP PROCEDURE [dbo].[spHelloWorld]; | |
GO | |
CREATE PROCEDURE [dbo].[spHelloWorld]( | |
@name VARCHAR(100) | |
,@code INT OUTPUT -- Debe ser referenciado como '@code' | |
,@message VARCHAR(100) OUTPUT -- Debe ser referenciado como '@message' |
This file contains 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 | |
LIST_ARCHIVOS="$(egrep -l '\<Jan\ 30\,\ 2017\ 4\:.*PM.*\>' *)" | |
CANT_ARCHIVOS="$(egrep -l '\<Jan\ 30\,\ 2017\ 4\:.*PM.*\>' * | wc -l)" | |
declare -a ARRAY_ARCHIVOS | |
declare -a ARRAY_LINEA_INICIAL | |
declare -a ARRAY_LINEA_FINAL | |
for (( i=1; i<=$CANT_ARCHIVOS; i++ )) | |
do |
OlderNewer