diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d34c795 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,64 @@ +# Python CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-python/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` + - image: circleci/python:3.6.1 + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/repo + + steps: + - checkout + + - run: + name: install dependencies + command: | + python3 -m venv venv + . venv/bin/activate + pip install requests + + + - run: + name: run script + command: | + . venv/bin/activate + python scripts/main.py + + + - run: + name: Commit data back to Github + command: | + git config user.email "avicoder@outlook.com" + git config user.name "avicoder" + DATE_TODAY=$(date +"%Y-%m-%d") + git pull + git add api/mailproviders.json + git commit -m "[skip ci] Updating Data ${DATE_TODAY} --allow-empty" + git push origin master + + +workflows: + version: 2 + commit: + jobs: + - build + scheduled-workflow: + triggers: + - schedule: + cron: "0 0 * * *" + filters: + branches: + only: + - master + jobs: + - build diff --git a/.gitignore b/.gitignore index badbc02..e21876c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,141 @@ _site .sass-cache + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ diff --git a/CERTIFICATIONS.HTML b/CERTIFICATIONS.HTML new file mode 100644 index 0000000..7c3d009 --- /dev/null +++ b/CERTIFICATIONS.HTML @@ -0,0 +1,5 @@ +--- + +--- + + diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..8572d2f --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +gem "jekyll" + +gem "webrick", "~> 1.7" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..07c3575 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,80 @@ +GEM + specs: + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + base64 (0.2.0) + bigdecimal (3.1.5) + colorator (1.1.0) + concurrent-ruby (1.3.5) + csv (3.2.8) + em-websocket (0.5.3) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0) + eventmachine (1.2.7) + ffi (1.17.1-x86_64-darwin) + forwardable-extended (2.6.0) + google-protobuf (4.30.2-x86_64-darwin) + bigdecimal + rake (>= 13) + http_parser.rb (0.8.0) + i18n (1.14.7) + concurrent-ruby (~> 1.0) + jekyll (4.4.1) + addressable (~> 2.4) + base64 (~> 0.2) + colorator (~> 1.0) + csv (~> 3.0) + em-websocket (~> 0.5) + i18n (~> 1.0) + jekyll-sass-converter (>= 2.0, < 4.0) + jekyll-watch (~> 2.0) + json (~> 2.6) + kramdown (~> 2.3, >= 2.3.1) + kramdown-parser-gfm (~> 1.0) + liquid (~> 4.0) + mercenary (~> 0.3, >= 0.3.6) + pathutil (~> 0.9) + rouge (>= 3.0, < 5.0) + safe_yaml (~> 1.0) + terminal-table (>= 1.8, < 4.0) + webrick (~> 1.7) + jekyll-sass-converter (3.1.0) + sass-embedded (~> 1.75) + jekyll-watch (2.2.1) + listen (~> 3.0) + json (2.7.2) + kramdown (2.5.1) + rexml (>= 3.3.9) + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.4) + listen (3.9.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.4.0) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (5.0.4) + rake (13.1.0) + rb-fsevent (0.11.2) + rb-inotify (0.11.1) + ffi (~> 1.0) + rexml (3.3.9) + rouge (4.5.1) + safe_yaml (1.0.5) + sass-embedded (1.86.3-x86_64-darwin) + google-protobuf (~> 4.30) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.5.0) + webrick (1.9.1) + +PLATFORMS + x86_64-darwin + +DEPENDENCIES + jekyll + webrick (~> 1.7) + +BUNDLED WITH + 2.6.8 diff --git a/_config.yml b/_config.yml index db2fa2a..f0fab15 100644 --- a/_config.yml +++ b/_config.yml @@ -1,6 +1,6 @@ # Site settings title: Whiskey Tango Foxtrot -description: Random Talk +description: "Let's explore security adventures and get some vitamins together." baseurl: "" # the subpath of your site, e.g. /blog/ url: "https://avicoder.me" # the base hostname & protocol for your site @@ -13,7 +13,7 @@ author: google_analytics: 'UA-42564637-2' # Syntax highlighting -highlightstyle: '' +highlightstyle: 'monokai_sublime' styles: [agate, androidstudio, arta, asceti, atelier-cave.dark, atelier-cave.light, atelier-dune.dark, atelier-dune.light, atelier-estuary.dark, atelier-estuary.light, atelier-forest.dark, atelier-forest.light, atelier-heath.dark, atelier-heath.light, atelier-lakeside.dark, atelier-lakeside.light, atelier-plateau.dark, atelier-plateau.light, atelier-savanna.dark, atelier-savanna.light, atelier-seaside.dark, atelier-seaside.light, atelier-sulphurpool.dark, atelier-sulphurpool.light, brown_paper, codepen-embed, color-brewer, dark, darkula, default, docco, far, foundation, github, github-gist, googlecode, grayscale, hopscotch, hybrid, idea, ir_black, kimbie.dark, kimbie.light, magula, mono-blue, monokai, monokai_sublime, obsidian, paraiso.dark, paraiso.light, pojoaque, railscast, rainbow, school_book, solarized_dark, solarized_light, styles_list.txt, sunburst, tomorrow, tomorrow-night-blue, tomorrow-night-bright, tomorrow-night, tomorrow-night-eightie, v, xcode, zenburn] # Handling Reading diff --git a/_includes/category/title.html b/_includes/category/title.html index d4d4b60..1ea6c97 100644 --- a/_includes/category/title.html +++ b/_includes/category/title.html @@ -7,4 +7,4 @@

{{ category_name }}
Articles on the category ‘{{ category_name }}’
-

\ No newline at end of file + diff --git a/_includes/externals/styling.html b/_includes/externals/styling.html index 887a21d..fa72d40 100644 --- a/_includes/externals/styling.html +++ b/_includes/externals/styling.html @@ -11,3 +11,7 @@ + + + + \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index 122c206..042fe82 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -4,23 +4,28 @@ -