This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:2.7 | |
ADD . /code | |
WORKDIR /code | |
RUN pip install -r requirements.txt | |
CMD python app.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import asyncio | |
import re | |
import asyncio_redis | |
import tornado.concurrent | |
import tornado.httpclient | |
import tornado.web | |
import tornado.platform.asyncio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires aiohttp - navigate to localhost:8080/?domain={domain_to_scrape} | |
from aiohttp import web | |
import aiohttp | |
import asyncio | |
async def handle(request): | |
domain = '//{}'.format(request.GET['domain']) | |
loop = asyncio.get_event_loop() | |
with aiohttp.ClientSession(loop=loop) as session: | |
print("fetching from {}".format(domain)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
hub: | |
image: selenium/hub:${SEL_VERSION} | |
ports: | |
- "4444:4444" | |
firefox: | |
image: selenium/node-firefox:${SEL_VERSION} | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ceback (most recent call last): | |
File "manage.py", line 7, in <module> | |
startup.manage(path=os.path.dirname(os.path.abspath(__file__))) | |
File "/virtualenv/lib/python3.5/site-packages/aldryn_django/startup.py", line 11, in manage | |
utility.execute() | |
File "/virtualenv/lib/python3.5/site-packages/django/core/management/__init__.py", line 346, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/virtualenv/lib/python3.5/site-packages/django/core/management/base.py", line 394, in run_from_argv | |
self.execute(*args, **cmd_options) | |
File "/virtualenv/lib/python3.5/site-packages/django/core/management/base.py", line 445, in execute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
` | |
### WordPress Environment ### | |
Home URL: https://********** | |
Site URL: https://********** | |
WC Version: 3.5.2 | |
Log Directory Writable: ✔ | |
WP Version: ❌ 4.9.8 - There is a newer version of WordPress available (5.0.3) | |
WP Multisite: – | |
WP Memory Limit: 768 MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Object.keys returns an array like ['username/clipname': {name: clipname, mp3_file:<link_to_mp3>}] | |
userClips = Object.keys(clips) | |
// filter the array to only include those that start with the username | |
.filter(clip => !clip.indexOf(`${username}/`)) | |
// reduces the original object key array using object explode syntax | |
.reduce((obj, key)=>{ | |
return { | |
// obj is exploded, its the accumulation of the reduce | |
...obj, | |
// inserts the clip into the accumulator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
newState = Object.assign({}, state), | |
library_clips = newState.library[action.library_owner].clips, | |
clip_index = library_clips.indexOf(`${action.clip.user}/${action.clip.name}`) | |
; | |
library_clips.splice(clip_index, 1) | |
return newState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gameSchedule":{ | |
"season":2018, | |
"seasonType":"PRE", | |
"week":1, | |
"gameId":2018080951, | |
"gameKey":57504, | |
"gameDate":"08/09/2018", | |
"gameTimeEastern":"19:30:00", | |
"gameTimeLocal":"19:30:00", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install the deps | |
sudo apt install libncurses5-dev libgnome2-dev libgnomeui-dev \ | |
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ | |
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ | |
python3-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev git | |
#Remove all the vims | |
sudo apt remove vim vim-runtime gvim vim-tiny vim-common | |
# Make sure they are alllll gone |
OlderNewer