Skip to content

Instantly share code, notes, and snippets.

Avatar
🌐
Working Remotely

Dj ddavison

🌐
Working Remotely
View GitHub Profile
@ddavison
ddavison / ZID Alias.txt
Last active Apr 21, 2021
Indianapolis ARTCC EuroScope Files
View ZID Alias.txt
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)
View guessing-game.py
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):
View scope.coffee
# 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
View gist:1f52de7a5375fd4e2ab9dc48380a142d
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 Apr 3, 2017
Selenium Grid Workshop from Command Line
View hub.sh
java -jar selenium-server-standalone-3.0.1.jar -role hub
View docker-compose.yml
---
hub:
image: selenium/hub
ports:
- 4444:4444
chrome:
image: selenium/node-chrome
links:
- hub
firefox:
View gist:25002ba5fcc07d40204eff20204092da
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 Feb 22, 2016
Run a Jekyll site as an Ubuntu Service
View jekyll-site
#!/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 Feb 3, 2016 — 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.
View dummy-web-server.py
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
View test.md

Hi there

This is an inline code block

This is a

public void JavaCodeBlock() {}