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
ls /opt/xenadm/venv/lib/python2.7/site-packages/ | grep -E -v "egg-info|pyc|py|setuptools|pip" |
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
ls /opt/xenadm/venv/lib/python2.7/site-packages/ | grep -E -v "egg-info|pyc|py|setuptools|pip" | xargs -i --max-args=1 sh -c 'ln -s /opt/xenadm/venv/lib/python2.7/site-packages/{} {}' |
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
package web.acceptance.utility; | |
import org.openqa.selenium.Keys; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.firefox.FirefoxProfile; | |
import org.openqa.selenium.interactions.Actions; | |
public class FirefoxResponsiveMode { | |
public static void pressShortcut(WebDriver driver) { |
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/sh | |
function vowel() { | |
vowels=aeiouy | |
p=$(( $RANDOM % ${#vowels})) | |
echo -n ${vowels:$p:1} | |
} | |
function consonant(){ | |
consonants=bcdfghjklmnpqrstvwxz | |
randomNumber=$(( $RANDOM % ${#consonants})) |
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
mvn dependency:get -DrepoUrl=http://repo1.maven.org/maven2/ -Dartifact=org.glassfish.jersey.archetypes:jersey-example-java8-webapp:2.22.2 | |
mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-grizzly2 -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false -DgroupId=com.webus -DartifactId=simple-service -Dpackage=com.webus -DarchetypeVersion=2.22.2 | |
mvn archetype:generate -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeGroupId=org.glassfish.jersey.archetypes -DinteractiveMode=false -DgroupId=com.webus -DartifactId=simple-service-webapp -Dpackage=com.webus -DarchetypeVersion=2.22.2 | |
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
mvn install:install-file -Dfile=serenity-cucumber-archetype-1.0.7.jar -DgroupId=net.serenity-bdd -DartifactId=serenity-cucumber-archetype -Dversion=1.0.7 -Dpackaging=jar -DgeneratePom=true | |
mvn archetype:generate -DarchetypeGroupId=net.serenity-bdd -DarchetypeArtifactId=serenity-cucumber-archetype -DarchetypeVersion=1.0.7 -DgroupId=sk.webus -DartifactId=featureapp -Dversion=1.0.0 |
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
java -cp bin\tomcat-juli.jar;lib\* org.apache.catalina.realm.RealmBase -a SHA this_is_the_hashed_password |
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
// Place your settings in this file to overwrite default and user settings. | |
{ | |
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", | |
"typescript.tsdk": "./node_modules/typescript/lib", | |
"workbench.editor.enablePreview": false, | |
"workbench.editor.enablePreviewFromQuickOpen": false, | |
"files.eol": "\n", | |
"editor.formatOnSave": true | |
} |
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 | |
awsRegion=eu-west-1 | |
containerName=imagepool_web | |
containerRepository=126375660691.dkr.ecr.eu-west-1.amazonaws.com/image-pool | |
version=0.1 | |
increment_version (){ | |
declare -a part=( ${1//\./ } ) | |
declare new |
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 | |
#usage: source ./tasks/docker-setting.sh | |
echo "# Set environment variables in bash for default docker machine #" | |
echo -en "\n" | |
echo $(docker-machine env default --shell sh/bash) | |
eval $(docker-machine env default --shell sh/bash) |
OlderNewer