Skip to content

Instantly share code, notes, and snippets.

View rmarren1's full-sized avatar

Ryan Marren rmarren1

  • NYC
View GitHub Profile
@rmarren1
rmarren1 / install.sh
Created June 8, 2018 02:00 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@rmarren1
rmarren1 / kill_port_process.sh
Created May 1, 2018 17:19 — forked from marcosvidolin/kill_port_process.sh
Linux: How to list and kill a process using a port
# to list all ports that are used
sudo netstat -ntlp | grep LISTEN
# you can obtain a specific port using the following command
sudo netstat -ntlp | grep :8080
# when you execute the command above you will see some thing like that
tcp 0 0 0.0.0.0:27370 0.0.0.0:* LISTEN 4394/skype
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 2216/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4912/cupsd
@rmarren1
rmarren1 / chord.py
Created March 30, 2018 03:38
Plotly Filled Chord Diagram
import numpy as np
import plotly.graph_objs as go
import colorlover as cl
def get_spaced_colors(n, randomized=False):
if n > 0:
max_value = 255
interval = max_value / n
hues = np.arange(0, max_value, interval)