Function | Shortcut |
---|---|
New Tab | β + T |
Close Tab or Window | β + W (same as many mac apps) |
Go to Tab | β + Number Key (ie: β2 is 2nd tab) |
Go to Split Pane by Direction | β + Option + Arrow Key |
Cycle iTerm Windows | β + backtick (true of all mac apps and works with desktops/mission control) |
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
package engine.test.selenium.common.helper; | |
import org.testng.IInvokedMethod; | |
import org.testng.IReporter; | |
import org.testng.IResultMap; | |
import org.testng.ISuite; | |
import org.testng.ISuiteResult; | |
import org.testng.ITestClass; | |
import org.testng.ITestContext; | |
import org.testng.ITestNGMethod; |
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
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.hadoop.yarn.api.records.ApplicationId; | |
import org.apache.hadoop.yarn.api.records.ApplicationReport; | |
import org.apache.hadoop.yarn.api.records.YarnApplicationState; | |
import org.apache.hadoop.yarn.client.api.YarnClient; | |
import org.apache.hadoop.yarn.conf.YarnConfiguration; | |
import org.apache.hadoop.yarn.exceptions.YarnException; |
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
import org.testng.Reporter; | |
import java.io.File; | |
import java.util.Enumeration; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
import org.apache.log4j.Appender; | |
import org.apache.log4j.FileAppender; | |
import org.apache.log4j.Layout; | |
import org.apache.log4j.Level; | |
import org.apache.log4j.Logger; |
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
<scheme name="Eclectide Monokai" version="142" parent_scheme="Default"> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="295622" /> | |
<option name="ANNOTATIONS_COLOR" value="b2c0c6" /> | |
<option name="CARET_COLOR" value="bbbbbb" /> | |
<option name="CARET_ROW_COLOR" value="" /> | |
<option name="CONSOLE_BACKGROUND_KEY" value="1c1c1c" /> | |
<option name="FILESTATUS_ADDED" value="629755" /> | |
<option name="FILESTATUS_DELETED" value="6c6c6c" /> | |
<option name="FILESTATUS_IDEA_FILESTATUS_DELETED_FROM_FILE_SYSTEM" value="6c6c6c" /> |
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: for testing against email regex | |
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses | |
List of Valid Email Addresses | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] |
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
package com.cloudwick.mapreduce.FileSystemAPI; | |
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; |
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
// Run this in the F12 javascript console in chrome | |
// if a redirect happens, the page will pause | |
// this helps because chrome's network tab's | |
// "preserve log" seems to technically preserve the log | |
// but you can't actually LOOK at it... | |
// also the "replay xhr" feature does not work after reload | |
// even if you "preserve log". | |
window.addEventListener("beforeunload", function() { debugger; }, 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
=Navigating= | |
baseUrl = "http://site.com"; | |
open("/login"); | |
open("http://google.com"); | |
switchTo().frame($("#myFrame").toWebElement()); | |
=Alert= | |
switchTo().alert().accept(); |
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 | |
clear | |
username=$(whoami) | |
interface=`ip route show | cut -d ' ' -f 3 | head -1` | |
interface=$(ip route show | awk '{print $NF}' | tail -1) | |
echo "What is the full path of the directory containing your music?" | |
read -e -p "> " music_dir | |
if test -n "$(pgrep pulseaudio)"; | |
then |