Skip to content

Instantly share code, notes, and snippets.

View emilorol's full-sized avatar

Emil Orol emilorol

  • Miami, FL
View GitHub Profile
@emilorol
emilorol / bootable-win10.sh
Last active April 4, 2024 19:01
Windows 10 ISO to bootable USB in MacOS (balenaEtcher, Rufus and Unetbooting alternative)
# inspiration from here as I was looking for an alternative to balenaEtcher, Rufus and Unetbooting
#
# https://forums.balena.io/t/missing-partition-table-issue/175129/10
#
# there is a single file sources/install.wim that is larger than 4GB
# and the FAT32 file system has an issue with that, so we will use this
# to split it into chunks that are less than 4 GB each
brew install wimlib
# check the file name of the ISO downloaded from microsoft.com
@emilorol
emilorol / README.md
Created March 9, 2020 16:27
Playbook provision your SSH key on remote servers

Add your ssh key to server

ansible-playbook ssh-provision.yml -i hosts -e "target=testing" --limit "testing" --user=$USER --ask-pass -vv
@emilorol
emilorol / SeleniumDockerGrid.groovy
Created October 11, 2019 13:50
Selenium docker grid in Jenkins
#!/bin/groovy
package com.company.devops;
def withDockerNetwork(Closure inner) {
try {
networkId = UUID.randomUUID().toString()
sh "docker network create ${networkId}"
inner.call(networkId)
} finally {
sh "docker network rm ${networkId}"
@emilorol
emilorol / Installing_jenkins_with_openshift.md
Created June 6, 2019 18:39 — forked from h-parekh/Installing_jenkins_with_openshift.md
Setup Jenkins (LTS) using Minishift and Docker Hub

Assumptions

  • You are using MacOS 10 or above
  • Have Homebrew installed
  • You need a dev-only setup

Commands

Step 1: Install Minishift and a VirtualBox hypervisor

brew cask install minishift

brew cask install virtualbox

@emilorol
emilorol / casInstall.sh
Created April 24, 2019 19:33 — forked from obedmhg/casInstall.sh
Installing CAS
#create a response file cas_response.properties
vi cas_response.properties
INSTALLDIR=/home/<user>/endeca/CAS
CASPORT=8500
CASSHUTDOWNPORT=8506
ENDECA_TOOLS_ROOT=/home/<user>/endeca/ToolsAndFrameworks/11.2.0
ENDECA_TOOLS_CONF=/home/<user>/endeca/ToolsAndFrameworks/11.2.0/server/workspace
#Then run the silent install as follows:
#Edit the exisitng silent_response.rsp that exist already where the installer lives
vi /cd/Disk1/install/silent_response.rsp which is at just change the
#Change the UNIX_GROUP_NAME to match with the user that is doing the installation
UNIX_GROUP_NAME="<user>"
#Run the silent installer, this will be ask for the response file we just editted, the name of the Folder that will be installed, along with the path to install.
#We will use the standar and recomendation which is ToolsAndFrameworks
./silent_install.sh /media/sf_shared/EndecaInstallers/3ToolsAndFrameworks/cd/Disk1/install/silent_response.rsp ToolsAndFrameworks /home/<user>/endeca/ToolsAndFrameworks
@emilorol
emilorol / platformServicesInstall.sh
Created April 24, 2019 19:33 — forked from obedmhg/platformServicesInstall.sh
install PlatformServices
#Create the sile response file
vi ps_response.properties
INSTALLDIR=/home/<user>/endeca/PlatformServices
ETOOLS_HTTP_PORT=8888
ETOOLS_SERVER_PORT=8090
EAC_MDEX_ROOT=/home/<user>/endeca/MDEX/6.5.2
#run the installer
./OCplatformservices11.2.0-Linux64.bin -i silent -f ps_response.properties
@emilorol
emilorol / platformServicesInstall.sh
Created April 24, 2019 19:33 — forked from obedmhg/platformServicesInstall.sh
install PlatformServices
#Create the sile response file
vi ps_response.properties
INSTALLDIR=/home/<user>/endeca/PlatformServices
ETOOLS_HTTP_PORT=8888
ETOOLS_SERVER_PORT=8090
EAC_MDEX_ROOT=/home/<user>/endeca/MDEX/6.5.2
#run the installer
./OCplatformservices11.2.0-Linux64.bin -i silent -f ps_response.properties
@emilorol
emilorol / mdexInstall.sh
Created April 24, 2019 19:32 — forked from obedmhg/mdexInstall.sh
Installing MDEX
#Create mdex_response.properties for silent instalation
vi mdex_response.properties
USER_INSTALL_DIR=/home/<user>
./OCmdex6.5.2-Linux64_962107.bin -i silent -f mdex_response.properties
#This will install Mdex at This will install everything at /home/<user>/endeca/MDEX
#After silent install is done, source mdex_setup_sh.ini, to set up Endeca env Variables.
cd /home/<user>/endeca/MDEX/6.5.2
source mdex_setup_sh.ini
@emilorol
emilorol / add_users.sh
Created April 4, 2019 21:16
Creating new Drupal users using old version of Drush from the shell script command line
#!/usr/bin/env bash
#
# Create users from list on the array and loop thru it to import them.
#
# List structure ( Important: elements have to be separated by a pipe ( | ) character )
#
# username|password|username@server.com|5|UserRoleName
#
# Note: the last two elements are for the user role. In the example the number "5" indicate
# the id of the role in Drupal and "UserRoleName" the name of the role