This file contains hidden or 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
As screen is not maintained anymore you should look for modern alternatives like tmux. | |
tmux is superior for many reasons, here are just some examples: | |
Windows can be moved between session and even linked to multiple sessions | |
Windows can be split horizontally and vertically into panes | |
Support for UTF-8 and 256 colour terminals | |
Sessions can be controlled from the shell without the need to enter a session | |
Basic Functionality |
This file contains hidden or 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
Dear BrowserStack User, | |
We are unfortunately displeased to announce that BrowserStack will be shutting down. After much consideration on our part, we have realized we were negligent in the services we claimed to offer. In our terms of service, we state the following: | |
[...] after the restoration process is complete, the virtual machines are guaranteed to be tamper-proof. | |
[...] The machines themselves are in a secure network, and behind strong firewalls to present the safest environment possible. | |
[...] At any given time, you have sole access to a virtual machine. Your testing session cannot be seen or accessed by other users, including BrowserStack administrators. Once you release a virtual machine, it is taken off the grid, and restored to its initial settings. All your data is destroyed in this process. |
This file contains hidden or 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
// selenium tests were failing because an element was not in visual sight | |
// we were using iScroll, so we couldnt scroll using normal functions | |
// how to fix? execute JS in your selenium script. initialize a new IScroll object(preferably similar to the actual initalization in the current script). Scroll to bottom. | |
var NavScroll = new IScroll('#nav-scroll', { | |
mouseWheel: true, | |
scrollbars: 'custom', | |
interactiveScrollbars : true, | |
tap: true, | |
preventDefault: false |
This file contains hidden or 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
grep -F -x -v -f a.txt b.txt |
This file contains hidden or 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
use the following argument to increase the maximum heap size: | |
-Xmx<size> set maximum Java heap size | |
example: | |
java -Xmx512m -jar selenium-server-standalone-2.42.2.jar |
This file contains hidden or 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
dd if=/dev/zero of=output.dat bs=50m count=1 | |
or | |
dd if=/dev/zero of=output.dat bs=1m count=50 |
This file contains hidden or 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
clear cache in settings |
This file contains hidden or 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
curl -o /dev/null --silent --head --write-out '%{http_code}' https://wordpress.org/plugins/ |
This file contains hidden or 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 | |
while read LINE; do | |
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE" | |
echo " $LINE" | |
done < url-list.txt |
This file contains hidden or 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
while true; do wget --spider -S "http://some/url/here" 2>&1 | grep "HTTP/" | awk '{print $2}'; sleep 0; done |