Skip to content

Instantly share code, notes, and snippets.

View derinbay's full-sized avatar

Taylan Derinbay derinbay

View GitHub Profile
@derinbay
derinbay / qbittorrent.yaml
Created February 10, 2021 10:58
qbittorrent stack
version: "2.1"
services:
qbittorrent:
image: linuxserver/qbittorrent
container_name: qbittorrent
environment:
- PUID=998
- PGID=100
- TZ=Europe/Istanbul
- WEBUI_PORT=8080
private static boolean hasSortedBlocks(Iterable<Double> iterable, Comparator comparator) {
Iterator<Double> it = iterable.iterator();
if (it.hasNext()) {
Double prev = it.next();
Double next;
Double secondNext = null;
Double thirdNext = null;
while (it.hasNext()) {
next = it.next();
if (compare(comparator, prev, next) && it.hasNext()) {
@derinbay
derinbay / nginx.conf
Last active April 21, 2023 13:09
nginx.conf for selenium-grid hub
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
@derinbay
derinbay / launch.sh
Created February 14, 2019 16:04
ubuntu_jmeter_launch_script
slave
---------
#!/bin/bash
sudo apt-get update -y
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
sudo apt install openjdk-8-jre-headless -y
sudo apt-get install -y jmeter
wget -O jmeter-plugins-manager-1.3.jar http://search.maven.org/remotecontent?filepath=kg/apc/jmeter-plugins-manager/1.3/jmeter-plugins-manager-1.3.jar
sudo mv jmeter-plugins-manager-1.3.jar /usr/share/jmeter/lib/ext/
target
.project
.classpath
.settings
*.iml
.idea
.DS_Store
.metadata
.externalToolBuilders
.cache
node {
env.JAVA_HOME = '/usr/java/jdk1.8.0_172'
MAVEN_OPTS = '-Dtarget_platform=test'
stage('Checkout') {
git branch: 'preMaster',
credentialsId: '4b6a43f2-1097-471a-bf9f-8e41066b787c',
url: 'ssh://git@stash.n11.com:7999/web/dmall.git'
}
version: "3.6"
services:
seleniumhub:
image: selenium/hub:3.11.0-dysprosium
container_name: selenium-hub
ports:
- 4444:4444
environment:
- GRID_TIMEOUT=720
- GRID_BROWSER_TIMEOUT=360
@derinbay
derinbay / tree.txt
Last active May 18, 2018 10:02
dependency tree
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] automatedacceptancetest [pom]
[INFO] test-api [jar]
[INFO] mobileapi-api [jar]
[INFO] mallfront-api [jar]
[INFO] backoffice-api [jar]
[INFO] callcenter-api [jar]
#!/bin/bash
#Usage:slackpost<token><channel><message>
#Enterthenameofyourslackhosthere-thethingthatappearsinyourURL:
#https://slackhost.slack.com/
slackhost=n11dev
token=$1
@derinbay
derinbay / checkDeployment.sh
Created March 8, 2018 08:00
deployment check for jenkins
#!/usr/bin/bash
CURL='/usr/bin/curl'
CURLARGS="-g"
URL="https://taylan:xxxxxxxxxxxxxxxxx@jenkins.n11.com/api/xml?tree=jobs[name,color]&xpath=/hudson/job[ends-with(color/text(),\"_anime\")]&wrapper=jobs"
raw=$($CURL $CURLARGS $URL)
echo $raw
if [[ $raw = *"QA"* ]] && [[ $raw = *"Release"* ]]; then