-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improves examples copy&paste-ability #97
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -355,8 +355,8 @@ Tomcat on the vagrant VMs named "byon1" to "byon4": | |
|
||
{% highlight bash %} | ||
$ for i in byon{1..4}; do | ||
$ vagrant ssh ${i} --command 'ps aux | grep -i tomcat | grep -v grep | awk '\''{print $2}'\'' | xargs kill -9' | ||
$ done | ||
vagrant ssh ${i} --command 'ps aux | grep -i tomcat | grep -v grep | awk '\''{print $2}'\'' | xargs kill -9' | ||
done | ||
{% endhighlight %} | ||
|
||
You can view the state of the Tomcat server with the command below (which drills into the | ||
|
@@ -435,14 +435,14 @@ you could use a load generator like jmeter, or use a script such as the one show | |
(changing URL for the URL of your load-balancer): | ||
|
||
{% highlight bash %} | ||
$ URL=http://10.10.10.101:8000/ | ||
$ URL=http://10.10.10.101:8080/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought nginx would come up on 8000, rather than 8080 (which is the port that the first tomcat would use). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, will revert. |
||
$ for i in {1..600}; do | ||
$ for j in {1..50}; do | ||
$ curl -saefafefj ${URL} > /dev/null || echo "Curl failed with exit code $?" | ||
$ done | ||
$ echo "Finished batch $i" | ||
$ sleep 1 | ||
$ done | ||
for j in {1..50}; do | ||
curl -saefafefj ${URL} > /dev/null || echo "Curl failed with exit code $?" | ||
done | ||
echo "Finished batch $i" | ||
sleep 1 | ||
done | ||
{% endhighlight %} | ||
|
||
While those curl commands run in a separate terminal, you can look at the metrics for the first | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is our magic that used to treat "$" prefix in a special way (putting it into a separate div, so it wouldn't be included if someone highlighted the text to copy-paste it)? I can't find it.
@drigodwin said that he thinks it may have broken at around the same time as someone did a bootstrap upgrade.
@ahgittin @sjcorbett do you know where that code is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's in
_layouts/base.html
sectionClipboard support
. I'll investigate.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clipboard support is working fine for me -- just click the icon
would be nice to exclude it from a manual copy/paste but that's harder. gonna experiment with http://stackoverflow.com/questions/22159929/html-exclude-text-from-clipboard-copy