mirror of https://github.com/uriel1998/khalo
parent
d1cd646d90
commit
f339211adc
@ -0,0 +1,176 @@ |
||||
# reference, old shit |
||||
1_reference/ |
||||
|
||||
# macOS Junks |
||||
.DS_Store |
||||
|
||||
# VSCode Junks |
||||
.vscode |
||||
.vscode/* |
||||
|
||||
# Microsoft Office Junks |
||||
~$*.* |
||||
|
||||
# C/C++ Junks |
||||
# Prerequisites |
||||
*.d |
||||
|
||||
# Compiled Object files |
||||
*.slo |
||||
*.lo |
||||
*.o |
||||
*.obj |
||||
|
||||
# Precompiled Headers |
||||
*.gch |
||||
*.pch |
||||
|
||||
# Compiled Dynamic libraries |
||||
*.so |
||||
*.dylib |
||||
*.dll |
||||
|
||||
# Fortran module files |
||||
*.mod |
||||
*.smod |
||||
|
||||
# Compiled Static libraries |
||||
*.lai |
||||
*.la |
||||
*.a |
||||
*.lib |
||||
|
||||
# Executables |
||||
*.exe |
||||
*.out |
||||
*.app |
||||
|
||||
# Python Junks |
||||
# 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/ |
||||
pip-wheel-metadata/ |
||||
share/python-wheels/ |
||||
*.egg-info/ |
||||
.installed.cfg |
||||
*.egg |
||||
MANIFEST |
||||
share/ |
||||
bin/ |
||||
bin/* |
||||
include/ |
||||
include/* |
||||
|
||||
# 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 |
||||
.hypothesis/ |
||||
.pytest_cache/ |
||||
|
||||
# Translations |
||||
*.mo |
||||
*.pot |
||||
|
||||
# Django stuff: |
||||
*.log |
||||
local_settings.py |
||||
db.sqlite3 |
||||
|
||||
# Flask stuff: |
||||
instance/ |
||||
.webassets-cache |
||||
|
||||
# Scrapy stuff: |
||||
.scrapy |
||||
|
||||
# Sphinx documentation |
||||
docs/_build/ |
||||
|
||||
# PyBuilder |
||||
target/ |
||||
|
||||
# Jupyter Notebook |
||||
.ipynb_checkpoints |
||||
|
||||
# IPython |
||||
profile_default/ |
||||
ipython_config.py |
||||
|
||||
# pyenv |
||||
.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 |
||||
|
||||
# celery beat schedule file |
||||
celerybeat-schedule |
||||
|
||||
# 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/ |
@ -0,0 +1,45 @@ |
||||
# khalo |
||||
A selfhosted way to create images with quotations |
||||
|
||||
![Output example](https://raw.githubusercontent.com/uriel1998/khalo/master/output.jpg "Example output") |
||||
|
||||
## Contents |
||||
1. [About](#1-about) |
||||
2. [License](#2-license) |
||||
3. [Prerequisites](#3-prerequisites) |
||||
4. [How to use](#4-how-to-use) |
||||
5. [TODO](#5-todo) |
||||
|
||||
*** |
||||
|
||||
## 1. About |
||||
|
||||
These programs creates an image with text upon it from either a `fortune` file or a plain text file. You can read the [blog post about it here.](https://ideatrash.net/?p=70844) |
||||
|
||||
## 2. License |
||||
|
||||
This project is licensed under the MIT license. For the full license, see `LICENSE`. |
||||
|
||||
## 3. Prerequisites |
||||
|
||||
### These may already be installed on your system. |
||||
|
||||
* `imagemagick` command-line tool for manipulating images. `imagemagick` can be found on major Linux distributions. |
||||
* `wget` command-line tool for downloading files. `wget` can be found on major Linux distributions. |
||||
|
||||
### Optional |
||||
|
||||
* `fortune` command-line tool for providing "fortunes". `fortune` can be found on major Linux distributions. |
||||
* `slugify` if you wish to have filenames that mirror the text of the quotation. I used [slugify-cli](https://github.com/sindresorhus/slugify-cli), which is a node.js program. |
||||
|
||||
## 4. How to use |
||||
|
||||
* If you wish to use your fortune file and get one quotation a day, use `fortune_image.sh`. As configured now, it will output one image to your `$HOME` directory. |
||||
* If you wish to specify which fortune file to use, edit `Fortune=$(/usr/games/fortune)` to read `Fortune=$(/usr/games/fortune MyFortuneFile)` |
||||
|
||||
* If you wish to use a plain text file and output all of the quotations at once to your home directory, use `all_fortune_image.sh` with the text file as the first argument. |
||||
* Note that you will have to edit the sizes on lines 23 and 30 to get different output sizes. |
||||
|
||||
## 5. Todo |
||||
|
||||
* TBH, I'm probably not going to clean this up a lot more; there are too many variables possible for me to account for all of them. |
@ -0,0 +1 @@ |
||||
theme: jekyll-theme-midnight |
@ -0,0 +1,74 @@ |
||||
<!doctype html> |
||||
<html lang="{{ site.lang | default: "en-US" }}"> |
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
||||
|
||||
{% seo %} |
||||
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}"> |
||||
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> |
||||
<script src="{{ '/assets/js/respond.js' | relative_url }}"></script> |
||||
<!--[if lt IE 9]> |
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> |
||||
<![endif]--> |
||||
<!--[if lt IE 8]> |
||||
<link rel="stylesheet" href="{{ '/assets/css/ie.css' | relative_url }}"> |
||||
<![endif]--> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> |
||||
|
||||
</head> |
||||
<body> |
||||
<div id="header"> |
||||
<nav style="margin: 0 auto;"> |
||||
<li class="fork" style="margin-left: 5px !important;margin-right: 5px !important;"><a href="{{ site.github.repository_url }}" target="_blank">View On GitHub</a></li> |
||||
<li class="fork" style="margin-left: 5px !important;margin-right: 5px !important;"><a href="https://gitlab.com/uriel1998/{{ site.github.repository_name }}" target="_blank">View On GitLab</a></li> |
||||
<li class="fork" style="margin-left: 5px !important;margin-right: 5px !important;"><a href="https://git.faithcollapsing.com/{{ site.github.repository_name }}" target="_blank">View On My Git</a></li> |
||||
{% if site.show_downloads %} |
||||
<li class="downloads"><a href="{{ site.github.zip_url }}">ZIP</a></li> |
||||
<li class="downloads"><a href="{{ site.github.tar_url }}">TAR</a></li> |
||||
<li class="title">DOWNLOADS</li> |
||||
{% endif %} |
||||
</nav> |
||||
</div><!-- end header --> |
||||
<div class="wrapper"> |
||||
<section> |
||||
<div id="title"> |
||||
<h1>{{ site.title | default: site.github.repository_name }}</h1> |
||||
<p>{{ site.description | default: site.github.project_tagline }}</p> |
||||
<hr> |
||||
<span class="credits left">Project maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></span> |
||||
<span class="credits right">Hosted on GitHub Pages — Theme by <a href="https://twitter.com/mattgraham">mattgraham</a></span> |
||||
</div> |
||||
|
||||
{{ content }} |
||||
|
||||
</section> |
||||
<hr /> |
||||
<p><a href="https://uriel1998.github.io/" target="_blank">Steven Saus</a> injects people with radioactivity for his day job, but only to serve the forces of good.<br />Mostly.</p> |
||||
<div style="margin: 0 auto;"> |
||||
<a href="http://feeds.feedburner.com/Ideatrash" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/rss-solid.svg"></a> |
||||
<a href="https://faithcollapsing.com/users/StevenSaus" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/mastodon.svg"></a> |
||||
<a href="http://www.facebook.com/pages/Steven-Saus/328725503674" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/facebook-f.svg"></a> |
||||
<a href="http://www.twitter.com/uriel1998" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/twitter.svg"></a> |
||||
<a href="https://www.instagram.com/uriel1998/" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/instagram.svg"></a> |
||||
<a href="http://www.goodreads.com/author/show/3145527.Steven_Saus" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/goodreads.svg"></a> |
||||
<a href="https://git.faithcollapsing.com" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/git.svg"></a> |
||||
<a href="https://github.com/uriel1998" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/github.svg"></a> |
||||
<a href="https://gitlab.com/uriel1998" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/gitlab.svg"></a> |
||||
<a href="http://www.linkedin.com/in/stevensaus" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/linkedin-in.svg"></a> |
||||
<a href="https://www.amazon.com/author/stevensaus" target="_blank"><img width=32px height=32px src="https://raw.githubusercontent.com/uriel1998/uriel1998/main/icons/amazon.svg"></a> |
||||
</div> |
||||
</div> |
||||
|
||||
{% if site.google_analytics %} |
||||
<script> |
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
||||
ga('create', '{{ site.google_analytics }}', 'auto'); |
||||
ga('send', 'pageview'); |
||||
</script> |
||||
{% endif %} |
||||
</body> |
||||
</html> |
@ -0,0 +1,15 @@ |
||||
--- |
||||
--- |
||||
|
||||
@import "{{ site.theme }}"; |
||||
|
||||
#header { |
||||
margin: 0 auto !important; |
||||
} |
||||
|
||||
#header > nav { |
||||
margin: 0 auto; |
||||
background: none !important; |
||||
} |
||||
|
||||
|
After Width: | Height: | Size: 146 KiB |
Loading…
Reference in new issue