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
/** | |
* Here you'll find some swipe methods for a native iOS or Android app | |
* which can be used when you are using webdriver.io | |
* | |
* I work a lot based on percentages, so it is working on all screens and all devices | |
* and I hope you understand how to use it based on the docs. | |
* | |
* Feel free to use it for all kinds of purposes, a star is much appreciated ;-) | |
* | |
* Grtz, |
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
--- | |
- name: Install docker | |
gather_facts: No | |
hosts: default | |
tasks: | |
- name: Install yum utils | |
yum: | |
name: yum-utils | |
state: latest |
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 | |
### | |
# Requires Null Keyboard https://play.google.com/store/apps/details?id=com.wparam.nullkeyboard | |
# Author: Volodymyr Shymanskyy | |
### | |
brightness=$(adb shell settings get system screen_brightness) | |
ime=$(adb shell settings get secure default_input_method) |
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
When I have this problem, I disable IPv6 in Ubuntu and that fix the problem, in order to do that, please follow these steps: | |
To disable IPv6, you have to open /etc/sysctl.conf using any text editor and add the following lines at the end: | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 | |
net.ipv6.conf.lo.disable_ipv6 = 1 | |
If IPv6 is still enabled, then the problem is that sysctl.conf is still not activated. | |
In that case, open a terminal(Ctrl+Alt+T) and type the command: |
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 random | |
num_people_in_room = 20 #Change This Number | |
#Simulate a room with a certain number of people | |
def simulate(num_people): | |
birthdays = [] | |
print("Here's what our room looks like:\n") | |
months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] |
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.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention( RetentionPolicy.RUNTIME ) | |
@Target( { | |
java.lang.annotation.ElementType.METHOD | |
} ) | |
public @interface Repeat { | |
public abstract int times(); |
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
Windows Jenkins server | |
A permanent fix is to change a line in [Jenkins directory]\jenkins.xml (for me it's at C:\Jenkins\jenkins.xml) | |
<executable>java.exe</executable> | |
<arguments>[arguments are here]</arguments> | |
Add the following argument to the whitespace-separated list of arguments: | |
-Dhudson.model.DirectoryBrowserSupport.CSP= | |
-Dfile.encoding=UTF-8 |
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
# /etc/systemd/system/xvfb.service | |
[Unit] | |
Description=X virtual framebuffer | |
[Service] | |
Type=simple | |
User=root | |
ExecStart=/usr/bin/Xvfb :99 -ac |
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
# /etc/systemd/system/selenium.service | |
# assumes selenium server and chromedriver exist in the following paths: | |
# /var/selenium/selenium-server-standalone-2.45.0.jar | |
# /var/selenium/chromedriver | |
[Unit] | |
Description=Selenium Standalone Server | |
Requires=xvfb.service | |
After=xvfb.service |
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
#!/usr/bin/env bash | |
# check-grid.sh | |
set -e | |
HOST="localhost" | |
PORT="4444" | |
echoerr() { echo "$@" 1>&2; } |
NewerOlder