Skip to content

Instantly share code, notes, and snippets.

View iammiracle's full-sized avatar

Miracle Ayodele iammiracle

View GitHub Profile
@iammiracle
iammiracle / Django + Apache Configuration
Created April 17, 2019 06:34
Django + Apache Configuration
<VirtualHost *:80>
ServerName 127.0.0.1
ServerAlias localhost
Alias /static /var/www/project_name/static/
WSGIScriptAlias / /var/www/project_name/project_name/wsgi.py
<Directory /var/www/project_name/>
Order deny,allow
Allow from all
@iammiracle
iammiracle / Django + Apache Configuration
Last active April 17, 2019 06:27
Django + Apache Configuration
<VirtualHost *:80>
ServerName 127.0.0.1
ServerAlias localhost
Alias /static /var/www/project_name/static/
WSGIScriptAlias / /var/www/project_name/project_name/wsgi.py
<Directory /var/www/project_name/>
Order deny,allow
Allow from all
@iammiracle
iammiracle / Odoo 12 Requirements
Created October 18, 2018 09:36
Odoo 12 Requirements
Babel==2.3.4
chardet==3.0.4
decorator==4.0.10
docutils==0.12
ebaysdk==2.1.5
feedparser==5.2.1
gevent==1.1.2 ; sys_platform != 'win32' and python_version < '3.7'
gevent==1.3.4 ; sys_platform != 'win32' and python_version >= '3.7'
greenlet==0.4.10 ; python_version < '3.7'
greenlet==0.4.13 ; python_version >= '3.7'
@iammiracle
iammiracle / twitter crawler.txt
Created April 22, 2018 10:12 — forked from vickyqian/twitter crawler.txt
A Python script to download all the tweets of a hashtag into a csv
import tweepy
import csv
import pandas as pd
####input your credentials here
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
@iammiracle
iammiracle / install.sh
Created March 2, 2018 14:24 — 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`
@iammiracle
iammiracle / 0_reuse_code.js
Created September 29, 2016 11:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console