Skip to content

Instantly share code, notes, and snippets.

View 64lines's full-sized avatar

Julian Alexander Murillo 64lines

  • Huge Inc.
  • Medellin - Colombia
View GitHub Profile
@64lines
64lines / Rekoda_Readme.md
Last active August 28, 2017 00:50
Rekoda Readme

Rekoda

Desktop Application for recording the clipboard, everytime you copy something Rekoda is going to save it. You can check your clipboard history, navigate through it and re-copy something for further use.

Installation

Clone this repository:

git clone https://github.com/64lines/Rekoda
@64lines
64lines / Vagrantfile
Last active August 25, 2017 22:16
[VAGRANT] - Basic Vagrant File
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "sakai-vm"
config.vm.network :forwarded_port, guest: 80, host: 80, auto_correct: false
config.vm.network :forwarded_port, guest: 8080, host: 8080, auto_correct: false
config.vm.synced_folder ".", "/vagrant"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
@64lines
64lines / Vagrantfile
Created August 25, 2017 14:50
[EDX][VAGRANT] - Vagrantfile
Vagrant.require_version ">= 1.5.3"
VAGRANTFILE_API_VERSION = "2"
MEMORY = 4096
CPU_COUNT = 2
# map the name of the git branch that we use for a release
# to a name and a file path, which are used for retrieving
# a Vagrant box from the internet.
/* Clicks an element */
driver.findElement(By.id("some-button")).click();
/* Write some text on the element */
driver.findElement(By.id("user-name")).sendKeys("Some text");
/* Clicks a link with the text "Download free" */
driver.findElement(By.linkText("Downwload free")).click();
/* Make it wait for some time until something you defined happens like the presence of an element */
package org.openqa.selenium.example;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
public class Selenium2Example {
dependencies {
compile group: 'org.seleniumhq.selenium', name: 'selenium-server', version: '3.0.1'
}
gradlew cucumber -PfeatureFile=cucumber_test/SomeAutomatedTest.feature
apply plugin: 'java'
project.ext {
cucumberVersion = '1.2.5'
junitVersion = '4.12'
}
/**
* Runs a single feature file using -PfeatureFile parameter, i.e:
*
package dummy;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions (plugin ={"pretty", "html:TestResults"}, junit = {"--filename-compatible-names"}, features = "dummy/")
public class RunCukesTest {
}
@64lines
64lines / wget_secuential.sh
Created August 21, 2017 17:33
[WGET] - Sequential wget
for i in $(seq 30); do echo "http://www.example.com/page$i.html" ; done | wget -i -