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
# In this example case when we create paddock objects we want them to be equal | |
# to each other if their name and area are the same and their lat/lng are "close | |
# enough" to each other. In our case we want "close enough" to mean the lat and | |
# lng match up to four decimal places. | |
# | |
# Download this file and the corresponding test case file tc_paddock.rb. Run the | |
# test case file like this `ruby tc_paddock.rb`. Currently all tests fail. | |
# Please make the changes you feel are necessary to make the tests pass, then | |
# make a gist with your version of paddock.rb and let us know. |
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
# Access number | |
cat production.log | grep "^Processing" | wc | awk '{print $1}' | |
# Each IP access number | |
cat production.log | grep “^Processing” | awk ‘{print $4}’ | uniq -c | |
# Independent IP number | |
cat production.log | grep "^Processing" | awk '{print $4}' | uniq | wc | awk '{print $1}' | |
cat production.log | grep “^Processing” | awk ‘{print $4}’ | uniq | wc -l |
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
#! /usr/bin/env bash | |
JENKINS_URL="localhost:8080" | |
JOB_NAME="YourJobName | |
USER_NAME="api" | |
USER_TOKEN="f6706YOURUSERTOKENd2c51" | |
QUEUE_URL=$(curl --silent "http://${JENKINS_URL}/job/${JOB_NAME}/build" \ | |
--user "${USER_NAME}:${USER_TOKEN}" \ | |
--data "token=${JOB_TOKEN}" -XPOST \ |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |