Skip to content

Instantly share code, notes, and snippets.

View tchia04's full-sized avatar

Tony Chia tchia04

View GitHub Profile
2019-06-24 23:56:57 DEBUG Webdrivers A working webdriver version is already on the system
2019-06-24 23:57:37 INFO Webdrivers webdriver log file is set to ./webdrivers.log
2019-06-24 23:57:37 INFO Webdrivers webdriver binary is going to be installed to ./webdrivers
2019-06-24 23:57:37 INFO Webdrivers Running under Linux. Need special handling since under Ubuntu it seems to ignore the WD_CHROME_PATH
2019-06-24 23:57:37 INFO Webdrivers Running under Jenkins / Ubuntu
2019-06-24 23:57:37 DEBUG Webdrivers Checking current version
2019-06-24 23:57:37 DEBUG Webdrivers /home/jenkins/workspace/webdriver69_affiliate/label_exp/qa-test-qa-slave/spec_file_path/affiliates_login_spec.rb/webdrivers/chromedriver is not already downloaded
2019-06-24 23:57:37 DEBUG Webdrivers WD_CHROME_PATH: /home/jenkins/workspace/webdriver69_affiliate/label_exp/qa-test-qa-slave/spec_file_path/affiliates_login_spec.rb/chrome/opt/google/chrome/chrome
2019-06-24 23:57:37 DEBUG Webdrivers making System call: ["/home/jenkins/workspace/webdriver69_
@tchia04
tchia04 / ansible-summary.md
Created April 18, 2018 00:40 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

FROM python:2.7-alpine
RUN mkdir /app
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
docker image build --no-cache -t web .
Sending build context to Docker daemon 5.632kB
Step 1/8 : FROM python:2.7-alpine
---> 9b06bbaac1c7
Step 2/8 : RUN mkdir /app
---> Running in 40023c9de219
---> f89e81b020da
Removing intermediate container 40023c9de219
Step 3/8 : WORKDIR /app
---> 39183ff3f1be
@tchia04
tchia04 / elasticat.json
Created June 28, 2017 22:58 — forked from donavanm/elasticat.json
CloudFormation EC2 & Route53 template
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Create an EC2 instance, set up Apache, and create Route53 A records",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type" : "String",
@tchia04
tchia04 / gist:c5733826ee44d95762d30c66047b558f
Created August 5, 2016 22:48
pip_install_from_requirement.txt
ubuntu@ip-172-30-112-127:~$ cat install2.log
Downloading/unpacking backports.ssl-match-hostname==3.4.0.2 (from -r requirements.txt (line 1))
Downloading backports.ssl_match_hostname-3.4.0.2.tar.gz
Running setup.py (path:/tmp/pip_build_root/backports.ssl-match-hostname/setup.py) egg_info for package backports.ssl-match-hostname
Downloading/unpacking boto==2.2.2 (from -r requirements.txt (line 2))
Running setup.py (path:/tmp/pip_build_root/boto/setup.py) egg_info for package boto
@tchia04
tchia04 / Jenkinsfile
Created June 2, 2016 13:16 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
@tchia04
tchia04 / The Technical Interview Cheat Sheet.md
Created April 8, 2016 23:12 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.