Skip to content

Instantly share code, notes, and snippets.

View 0x2539's full-sized avatar

Alex Buicescu 0x2539

  • Teleport
  • Granada, Spain
View GitHub Profile
@0x2539
0x2539 / health_checking_db.sh
Last active January 8, 2019 18:18
A bash script for health checking a PostgreSQL. See the start of the script for instructions in how to run it.
#!/usr/bin/env bash
# How to run:
# 1) `chmod +x health_checking_db.sh`
# 2) `./health_checking_db.sh --password=123 --user=my_user --db_name=my_db --port=5432 --host=localhost --timeout=60`
# Notes for mac:
# Install libpq for psql (https://stackoverflow.com/a/49689589/1651296):
# `brew install libpq`
# `export PATH=$PATH:/usr/local/Cellar/libpq/11.1/bin`
@0x2539
0x2539 / health_checking.sh
Last active January 9, 2019 16:38
A bash script for health checking a URL. See the start of the script for instructions in how to run it.
#!/usr/bin/env bash
# How to run:
# 1) chmod +x health_checking.sh
# 2) ./health_checking.sh --url=http://localhost:8000 --timeout=60
# Define a timestamp function
timestamp() {
date +"%s"
}
@0x2539
0x2539 / README.md
Last active August 22, 2019 12:25
Jenkins Setup
  1. Update JAVA_ARGS:
sudo vim /etc/default/jenkins
# update to:
# JAVA_ARGS="-Xmx1648m -XX:MaxPermSize=756m -Djava.awt.headless=true"
sudo /etc/init.d/jenkins restart
  1. Update the interface:
  2. Check the Blue Ocean (BlueOcean Aggregator) plugin
  3. Check Monitoring plugin
[Appium] Welcome to Appium v1.6.5
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/alexbuicescu/git/instacar/instacar-front-rnw/ios/build/Build/Products/Debug-iphonesimulator/instacarFront.app","platformName":"iOS","platformVersion":"10.3","deviceName":"iPhone 7 Plus","autoAcceptAlerts":true,"autoGrantPermissions":true},"requiredCapabilities":{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/alexbuicescu/git/instacar/instacar-front-rnw/ios/build/Build/Products/Debug-iphonesimulator/instacarFront.app","platformName":"iOS","platformVersion":"10.3","deviceName":"iPhone 7 Plus","autoAcceptAlerts":true,"autoGrantPermissions":true},{},null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1504571074897 (03:24:34 GMT+0300 (EEST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 an
[Appium] Welcome to Appium v1.6.5
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/alexbuicescu/git/instacar/instacar-front-rnw/ios/build/Build/Products/Debug-iphonesimulator/instacarFront.app","platformName":"iOS","platformVersion":"10.3","deviceName":"iPhone 7 Plus","autoAcceptAlerts":true,"autoGrantPermissions":true},"requiredCapabilities":{}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/alexbuicescu/git/instacar/instacar-front-rnw/ios/build/Build/Products/Debug-iphonesimulator/instacarFront.app","platformName":"iOS","platformVersion":"10.3","deviceName":"iPhone 7 Plus","autoAcceptAlerts":true,"autoGrantPermissions":true},{},null]
[BaseDriver] Event 'newSessionRequested' logged at 1504418850726 (09:07:30 GMT+0300 (EEST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] C
@0x2539
0x2539 / appium-logs
Last active September 3, 2017 06:06
[Appium] Welcome to Appium v1.6.5
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/alexbuicescu/git/instacar/instacar-front-rnw/ios/build/Build/Products/Debug-iphonesimulator/instacarFront.app","platformName":"iOS","platformVersion":"10.3","deviceName":"iPhone 7 Plus","autoAcceptAlerts":true,"autoGrantPermissions":true},"requiredCapabilities":{}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/alexbuicescu/git/instacar/instacar-front-rnw/ios/build/Build/Products/Debug-iphonesimulator/instacarFront.app","platformName":"iOS","platformVersion":"10.3","deviceName":"iPhone 7 Plus","autoAcceptAlerts":true,"autoGrantPermissions":true},{},null]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1504416418050 (08:26:58 GMT+0300 (EEST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 an
@0x2539
0x2539 / install_rtorrent.sh
Created March 3, 2017 22:01
Script to install rtorrent and rutorrent for raspberry pi
-#!/bin/bash
VERSION="1.0, 27 January 2013"
# INTRODUCTION
# This script installs and configures rTorrent on a Raspberry Pi.
# Included: ruTorrent, nginx, php5-fpm
# HOW TO USE THIS SCRIPT
# Log in to the RPi.
# Open a terminal if you are in GUI mode.