Skip to content

Instantly share code, notes, and snippets.

@tnguyen14
tnguyen14 / pom.xml
Created Jun 21, 2019
pom.xml for Jenkins Spock
View pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com</groupId>
<artifactId>jenkins-pipeline-libraries</artifactId>
<version>0.0.0</version> <!-- unused -->
View plantuml.uml
@startuml
Bob -> Alice : hello
@enduml
@tnguyen14
tnguyen14 / floating-ip-apply.log
Last active Sep 7, 2017
terraform openstack provider debug
View floating-ip-apply.log
2017/09/07 12:05:42 [INFO] Terraform version: 0.10.4 10df48ef40aa7fdddb8a13af79a8df9028788f01
2017/09/07 12:05:42 [INFO] Go runtime version: go1.9
2017/09/07 12:05:42 [INFO] CLI args: []string{"/home/tnguyen541/bin/terraform", "apply"}
2017/09/07 12:05:42 [DEBUG] Attempting to open CLI config file: /home/tnguyen541/.terraformrc
2017/09/07 12:05:42 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/09/07 12:05:42 [INFO] CLI command args: []string{"apply"}
2017/09/07 12:05:42 [INFO] command: empty terraform config, returning nil
2017/09/07 12:05:42 [DEBUG] command: no data state file found for backend config
2017/09/07 12:05:42 [DEBUG] New state was assigned lineage "6c482357-c8ba-4e81-8c29-cb94ec7004d0"
2017/09/07 12:05:42 [INFO] command: backend initialized: <nil>
View systemctl-wsl.log
execve("/bin/systemctl", ["systemctl", "status", "nginx"], [/* 88 vars */]) = 0
brk(NULL) = 0x7fffcec7e000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f46d8620000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=90051, ...}) = 0
mmap(NULL, 90051, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f46d860a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@tnguyen14
tnguyen14 / selenium-docker-test.sh
Created Mar 1, 2017
Run functional tests inside a Selenium docker container
View selenium-docker-test.sh
#!/usr/bin/env bash
CONTAINER_NAME="docker-selenium-chrome"
# remove any pre-existing container
if [ $(docker ps -a | grep $CONTAINER_NAME | awk '{print $NF}' | wc -l) -gt 0 ]; then
docker rm -f $CONTAINER_NAME 1>/dev/null
fi
case "$*" in
*--debug*)
@tnguyen14
tnguyen14 / cannotfocuselement.log
Created Apr 12, 2016
selenium log for cannot focus element error
View cannotfocuselement.log
12:32:01.593 INFO - Executing: [find elements: By.cssSelector: input[name=Quantity]])
12:32:01.605 INFO - Done: [find elements: By.cssSelector: input[name=Quantity]]
12:32:01.608 INFO - Executing: [clear: 65 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]]])
12:32:01.608 INFO - Executing: [clear: 64 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]]])
12:32:01.628 INFO - Done: [clear: 65 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]]]
12:32:01.631 INFO - Executing: [send keys: 65 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]], [2]])
12:32:01.654 INFO - Done: [clear: 64 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> css selector: input[name=Quantity]]]
12:32:01.656 INFO - Executing: [send keys: 64 [[ChromeDriver: chrome on MAC (1441b6e4cebce511b25c96f261d2cebf)] -> c
View jenkins.bitbucketpullrequest.log
Feb 01, 2016 2:34:45 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildListener onStarted
BuildListener onStarted called.
Feb 01, 2016 2:38:00 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run
Build Skip.
Feb 01, 2016 2:43:00 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run
Build Skip.
Feb 01, 2016 2:48:00 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger run
Build Skip.
Feb 01, 2016 2:48:59 PM INFO bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildListener onStarted
BuildListener onStarted called.
@tnguyen14
tnguyen14 / carousel.js
Created Jul 27, 2015
webdriverio - click failure
View carousel.js
@tnguyen14
tnguyen14 / localports.json
Created Apr 26, 2015
Local port mappings
View localports.json
{
"ledge-server": "3000",
"ledge": "4001",
"tridnguyen.com": "4000",
"cbtallc.com": "7000",
"read-server": "3030",
"forms": "3000"
}
View chromebook.sh
# To get to linux on chromebook
# Open crosh
:; shell
:; sudo startxfce4 #gui
:; sudo enter-chroot #cli
You can’t perform that action at this time.