New theme development for Jekyll!

rant
jekyll, design, development, blog, Liquid

After a year long use of Wordpress, I decided to move to Jekyll and give it a try. I am loving the full developer feel while using Jekyll, especially while setting it up and designing a custom theme. I love it’s extendibility. I can develop and use my own custom features, plugins, in short, no more bulky and slow performance.

Designing a theme for Jekyll is so much fun, it had been a while I had not wireframed the frontend and the backend, I consider it a headache, even now! Simple designing a website or just developing a backend is easy, wireframing both together to create a complete product is a whole different ball game, interesting too.

I am quite glad, I had short but complicated experience with Ghost Blog, both uses Liquid Templating developed by Shopify. Besides the boring part, you write the blog post or pages in Markdown, how cool is that? I mean, it’s not really new as almost every repositories now a days use Markdown for project pages, including README.md.

Markdown is a lightweight markup language with plain text formatting syntax. It is designed so that it can be converted to HTML and many other formats using a tool by the same name. Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text using a plain text editor. As the initial description of Markdown contained ambiguities and unanswered questions, many implementations and extensions of Markdown appeared over the years to answer these issues. (Source: Wikipedia)

Read More

Encrypting files in Linux machine using OpenSSL.

development
setup, server, private, php, python, upload, postman, api

Image

What my Project FileSec did can be done straight from terminal which is quite nice to hear but CLI isn't for everyone, honestly respect their preference however. I am currently using Ubuntu 17.04 as my main work-space therefore OpenSSL is available through official repository.

Install it using sudo apt install openssl.

The commands are pretty straightforward for OpenSSL which can also be reviewed using man openssl in your terminal. Basically, in order to simply encrypt or decrypt a file, we can make use of -e or -d parameters. Couple examples to easily understand what I am trying to say is shown below.

First, let us create a file which holds secret text/string/data and what not.

echo 'This is my secret string.' >> secret.txt

Verify whether the secret.txt file was created and the string was successfully appended to our secret file. Once verified, run openssl aes-256-cbc -e -in secret.txt -out secret.txt.enc in your terminal where you created your secret.txt file.

Read More

Pymgur - Yet another screenshot and Imgur upload script written in Python.

development
programming, dev, development, python, imgur, upload, screenshot, capture

After using Shutter for almost a year or more if I recall correctly, I got fed up of it’s broken Imgur upload plugin, considering those upload plugins are written in Pearl Scripts .pm I guess I could have tried and edited the script. For those who aren’t familiar with what Imgur is, it is an image host, free, fast, optimized, secure and very resourceful for image sharing. It started from Reddit and now it is one of the most amazing image hosts out there, probably the best if you ignore Google+ Photos.

It gives you an ability to edit/update images with various built-in sets of tools and features.

Nothing wrong with trying and creating one for yourself, I suppose. The script I wrote makes use of Imgur’s OAuth 2.0 authentication using pin to authorize, confirm and revalidate access_tokens.

All the steps are included in the Python script itself, therefore, I don’t think the user will have much trouble configuring things around.

Read More