Skip to content

Instantly share code, notes, and snippets.

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

Andres Haro hvaandres

🏠
Working from home
View GitHub Profile
@hvaandres
hvaandres / .docker
Created March 21, 2023 17:41
Elastic_Search_Docker_Compose
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
container_name: elasticsearch
restart: always
environment:
- xpack.security.enabled=true
- xpack.security.authc.api_key.enabled=true
- discovery.type=single-node
[
{
"id" : "cricket",
"name" : "Cricket",
"headline" : "Crickets are Orthopteran insects which are related to bush crickets, and, more distantly, to grasshoppers.",
"description" : "In older literature, such as Imms,'crickets' were placed at the family level (i.e. Gryllidae), but contemporary authorities including Otte now place them in the superfamily Grylloidea.[1] The word has been used in combination to describe more distantly related taxa[3] in the suborder Ensifera, such as king crickets and mole crickets. They have mainly cylindrically-shaped bodies, round heads, and long antennae. Behind the head is a smooth, robust pronotum. The abdomen ends in a pair of long cerci; females have a long, cylindrical ovipositor. Diagnostic features include legs with 3-segmented tarsi; as with many Orthoptera, the hind legs have enlarged femora, providing power for jumping. The front wings are adapted as tough, leathery elytra, and some crickets chirp by rubbing parts of these together. The h
@hvaandres
hvaandres / byPassPlaid.spec.js
Last active March 21, 2021 01:51
How to bypass Plaid within Cypress.io
#To Look at the Plaid iFrame, you should look into this website https://plaid.com/demo/?utm_source=google&utm_medium=search&utm_campaign=Search_G_Non-Brand_DSA&utm_content=Plaid.com&utm_term=&utm_creative=499104059499&gclid=Cj0KCQjwutaCBhDfARIsAJHWnHv3PEKZXa3bzupUbBp63jBHtob8aFTTVGLYPsug5t2SEtMGbZuEX2waAv8qEALw_wcB&countryCode=US&language=en&product=transactions
describe('Plad Testing', () => {
it('Request Loan', () => {
cy.get('https://plaid.com/demo/?utm_source=google&utm_medium=search&utm_campaign=Search_G_Non-Brand_DSA&utm_content=Plaid.com&utm_term=&utm_creative=499104059499&gclid=Cj0KCQjwutaCBhDfARIsAJHWnHv3PEKZXa3bzupUbBp63jBHtob8aFTTVGLYPsug5t2SEtMGbZuEX2waAv8qEALw_wcB&countryCode=US&language=en&product=transactions)
cy.get('iframe#plaid-link-iframe-1', { timeout: 30000 }).then(iframe => {
cy.wrap(iframe) // from Cypress blog ref above
.its('0.contentDocument.body')