cat appium.txt | grep "your text"
grep "your text" appium.txt
grep --color "your text" appium.txt
ls | grep "your text"
Tmux (split terminal)
import water | |
if __name__ == "__main__": | |
water.auto_water() |
# Usage: | |
# docker-compose up --force-recreate | |
version: '2.1' | |
services: | |
#--------------# | |
zalenium: | |
image: "dosel/zalenium" | |
container_name: zalenium | |
hostname: zalenium |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
export class Flashy extends React.Component { | |
componentWillMount() { | |
alert('AND NOW, FOR THE FIRST TIME EVER... FLASHY!!!!'); | |
} | |
componentDidMount() { | |
alert('YOU JUST WITNESSED THE DEBUT OF... FLASHY!!!!!!!'); |
#!/bin/sh -e | |
table=$1 | |
psql -U $DBUSER -h $DBHOST -p $DBPORT $DBNAME -c \ | |
"COPY (SELECT * FROM $table) TO STDOUT WITH CSV HEADER" |
#!/usr/bin/env bash | |
# | |
# Install WebDrivers for Linux | |
# ---------------------------- | |
# * Binary webdrivers are required to drive Firefox and Chrome browsers from Selenium. | |
# * This script will fetch the 64-bit binaries (geckodriver/chromedriver) for Linux. | |
set -e |
componentDidMount() { | |
this.props.navigation.setParams({ | |
onTabFocus: this.getFeeds | |
}); | |
this.getFeeds() | |
} |
# add this to the beginning of a bash script to ensure it can only be run with root access. | |
if [[ $EUID -ne 0 ]]; then | |
echo "permission denied." | |
echo "$(basename $0) must be run as root." | |
exit 1 | |
fi |
# Source this file in your .zshrc BEFORE "source $ZSH/oh-my-zsh.sh" | |
export TERM="xterm-256color" | |
# Set your username here | |
export DEFAULT_USER= | |
# Digital Ocean Token | |
export DO_TOKEN= | |
# Path to Android SDK |
import json | |
def writeToJSONFile(path, fileName, data): | |
filePathNameWExt = './' + path + '/' + fileName + '.json' | |
with open(filePathNameWExt, 'w') as fp: | |
json.dump(data, fp) | |
# Example | |
data = {} |