Skip to content

Instantly share code, notes, and snippets.

View kingtuna's full-sized avatar

Terrence Gareau kingtuna

  • Mirage Messaging
  • Miami, FL
View GitHub Profile
@kingtuna
kingtuna / openresty-ubuntu-install.sh
Last active July 24, 2020 01:07 — forked from alex-roman/openresty-ubuntu-install.sh
Easy install openresty (used and tested on Ubuntu 14.04, 15.10 and 16.04)
#!/bin/bash
apt-get -y update
apt-get -y install nginx-extras build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev
wget -c https://openresty.org/download/openresty-1.11.2.1.tar.gz
tar zxvf openresty-1.11.2.1.tar.gz
cd openresty-1.11.2.1
./configure \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
@kingtuna
kingtuna / run.py
Created August 1, 2017 18:05 — forked from pathcl/run.py
Bottle && selenium
from bottle import run, request, Bottle
from selenium import webdriver
from jinja2 import Environment, FileSystemLoader
import re
import os
app = Bottle()
path = os.getcwd()
urls = path + '/urls.txt'