Skip to content

Instantly share code, notes, and snippets.

View ddavison's full-sized avatar
🌐
Working Remotely

Dj ddavison

🌐
Working Remotely
View GitHub Profile
@ddavison
ddavison / ZID Alias.txt
Last active April 21, 2021 12:57
Indianapolis ARTCC EuroScope Files
ALTIMETER SETTINGS
.acvg Cincinnati/Northern Kentucky altimeter is $altim(KCVG)
.aind Indianapolis altimeter is $altim(KIND)
.asdf Louisville altimeter is $altim(KSDF)
.acmh Port Columbus altimeter is $altim(KCMH)
.aevv Evansville altimeter is $altim(KEVV)
.acrw Charleston altimeter is $altim(KCRW)
.aday Dayton-Cox altimeter is $altim(KDAY)
.aluk Lunken altimeter is $altim(KLUK)
.aosu Ohio-State altimeter is $altim(KOSU)
import random
# simple guessing game
# We get the user input, if it's less than the right number, output. if it's greater than, same.
# If the number is matched. YOU WIN.
# You only have 10 tries.
# right number will be between 0 and 100
class GuessingGame:
def __init__(self):
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$(document).ready ->
$('#btn-submit-bundle').click (e) ->
e.preventDefault()
vals = []
$("select[name^='component_bundle'].select2-package").toArray().forEach((e) -> vals.append(e.value))
if vals.length < 1
Waiting xvfb...
20:25:26.952 INFO - Selenium build info: version: '3.4.0', revision: 'unknown'
20:25:26.953 INFO - Launching a Selenium Grid node
11/05/2017 20:25:27 passing arg to libvncserver: -rfbport
11/05/2017 20:25:27 passing arg to libvncserver: 5900
11/05/2017 20:25:27 -usepw: found /root/.vnc/passwd
11/05/2017 20:25:27 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 100
11/05/2017 20:25:27 Using X display :99.0
11/05/2017 20:25:27 rootwin: 0x25c reswin: 0x200001 dpy: 0x1f519b0
11/05/2017 20:25:27
@ddavison
ddavison / hub.sh
Last active April 3, 2017 14:42
Selenium Grid Workshop from Command Line
java -jar selenium-server-standalone-3.0.1.jar -role hub
@ddavison
ddavison / docker-compose.yml
Created February 20, 2017 20:11
Quick Start Docker
---
hub:
image: selenium/hub
ports:
- 4444:4444
chrome:
image: selenium/node-chrome
links:
- hub
firefox:
dj@Daniels-MBP:~/downloads|⇒ java -jar selenium-server-standalone-3.0.0.jar -role node -remoteHost http://127.0.0.1:4444
Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -remoteHost
at com.beust.jcommander.JCommander.parseValues(JCommander.java:742)
at com.beust.jcommander.JCommander.parse(JCommander.java:282)
at com.beust.jcommander.JCommander.parse(JCommander.java:265)
at com.beust.jcommander.JCommander.<init>(JCommander.java:210)
at org.openqa.grid.selenium.GridLauncherV3$3.setConfiguration(GridLauncherV3.java:257)
at org.openqa.grid.selenium.GridLauncherV3.buildLauncher(GridLauncherV3.java:147)
at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:73)
@ddavison
ddavison / jekyll-site
Created February 22, 2016 00:38
Run a Jekyll site as an Ubuntu Service
#!/bin/sh -e
# ========================
# Start a Jekyll Server
# ========================
#
# Usage: /etc/init.d/jekyll-site {start|stop|force-reload|restart|status}
#
### BEGIN INIT INFO
# Provides: jekyll-site
@ddavison
ddavison / dummy-web-server.py
Created February 3, 2016 19:37 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@ddavison
ddavison / test.md
Last active December 31, 2015 08:13

Hi there

This is an inline code block

This is a

public void JavaCodeBlock() {}