diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ca8682 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +_site/ +.sass-cache/ +.jekyll-cache/ +.jekyll-metadata diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..a3d9386 --- /dev/null +++ b/Gemfile @@ -0,0 +1,29 @@ +source "https://rubygems.org" + +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! +gem "jekyll", "~> 3.8.5" + +# This is the default theme for new Jekyll sites. You may change this to anything you like. +gem 'jekyll-theme-console', '> 0' + +# If you want to use GitHub Pages, remove the "gem "jekyll"" above and +# uncomment the line below. To upgrade, run `bundle update github-pages`. +# gem "github-pages", group: :jekyll_plugins + +# If you have any plugins, put them here! +group :jekyll_plugins do + gem "jekyll-feed", "~> 0.6" +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1.0" if Gem.win_platform? diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..95303f9 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,71 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + colorator (1.1.0) + concurrent-ruby (1.1.5) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + eventmachine (1.2.7) + ffi (1.11.1) + forwardable-extended (2.6.0) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.6) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-feed (0.12.1) + jekyll (>= 3.7, < 5.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.6.1) + jekyll (>= 3.3, < 5.0) + jekyll-theme-console (0.3.6) + jekyll (>= 3.5) + jekyll-seo-tag + jekyll-watch (2.2.1) + listen (~> 3.0) + kramdown (1.17.0) + liquid (4.0.3) + listen (3.2.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.3.6) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (4.0.1) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + rouge (3.12.0) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + +PLATFORMS + ruby + +DEPENDENCIES + jekyll (~> 3.8.5) + jekyll-feed (~> 0.6) + jekyll-theme-console (> 0) + tzinfo-data + +BUNDLED WITH + 2.0.2 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3f7550a --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Bryan Siegfried + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..f88a393 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# jekyll-theme-console demo +This is a demo site for the jekyll-theme-console theme. diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..76ba6b6 --- /dev/null +++ b/_config.yml @@ -0,0 +1,18 @@ +title: 'b2a3e8.github.io' +description: "A jekyll theme inspired by linux consoles for hackers, developers and script kiddies." +baseurl: "/jekyll-theme-console-demo-hacker" +url: "https://b2a3e8.github.io" + +header_pages: + - index.md + - peter.md + - about.md + - contact.md + +style: hacker + +footer: 'follow us on twitter' + +# Build settings +markdown: kramdown +remote_theme: b2a3e8/jekyll-theme-console diff --git a/_posts/2018-11-04-dear-morons.markdown b/_posts/2018-11-04-dear-morons.markdown new file mode 100644 index 0000000..3185e42 --- /dev/null +++ b/_posts/2018-11-04-dear-morons.markdown @@ -0,0 +1,12 @@ +--- +layout: post +title: "Dear morons..." +date: 2018-11-04 12:32:45 +0100 +categories: +--- + +# Dear morons... +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +## Another title +Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? diff --git a/_posts/2018-11-06-viva-la-vulva.markdown b/_posts/2018-11-06-viva-la-vulva.markdown new file mode 100644 index 0000000..4d7c547 --- /dev/null +++ b/_posts/2018-11-06-viva-la-vulva.markdown @@ -0,0 +1,12 @@ +--- +layout: post +title: "Viva la Vulva!" +date: 2018-11-06 12:32:45 +0100 +categories: +--- + +# Viva la Vulva! +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +## Another title +Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? diff --git a/_posts/2018-11-07-welcome-to-valhalla.markdown b/_posts/2018-11-07-welcome-to-valhalla.markdown new file mode 100644 index 0000000..6cf065e --- /dev/null +++ b/_posts/2018-11-07-welcome-to-valhalla.markdown @@ -0,0 +1,12 @@ +--- +layout: post +title: "Welcome to Valhalla!" +date: 2018-11-07 12:32:45 +0100 +categories: +--- + +# Welcome to Valhalla! +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. + +## Another title +Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? diff --git a/_posts/2019-11-06-syntax-highlighting.markdown b/_posts/2019-11-06-syntax-highlighting.markdown new file mode 100644 index 0000000..be7dc24 --- /dev/null +++ b/_posts/2019-11-06-syntax-highlighting.markdown @@ -0,0 +1,156 @@ +--- +layout: post +title: "Syntax highlighting" +date: 2019-11-06 01:11:00 +0100 +categories: +--- + +# Syntax highlighting +This theme supports syntax respectively code highlighting. Below you find some examples of different programming languages. + +
ruby: +{% highlight ruby %} +def foo + puts 'foo' +end + +def bubble_sort(list) + return list if list.size <= 1 # already sorted + swapped = true + while swapped do + swapped = false + 0.upto(list.size-2) do |i| + if list[i] > list[i+1] + list[i], list[i+1] = list[i+1], list[i] # swap values + swapped = true + end + end + end + + list +end +{% endhighlight %} + + +

python: +{% highlight python %} +def func(): + # function body + print("hello world!") + + def setup(app): + # enable Pygments json lexer + try: + import pygments + if pygments.__version__ >= '1.5': + # use JSON lexer included in recent versions of Pygments + from pygments.lexers import JsonLexer + else: + # use JSON lexer from pygments-json if installed + from pygson.json_lexer import JSONLexer as JsonLexer + except ImportError: + pass # not fatal if we have old (or no) Pygments and no pygments-json + else: + app.add_lexer('json', JsonLexer()) + + return {"parallel_read_safe": True} + +words = ['cat', 'window', 'defenestrate'] +for w in words: + print w, len(w) +{% endhighlight %} + + +

php: +{% highlight php %} + +{% endhighlight %} + + +

js: +{% highlight javascript %} +function sayHello(name) { + if (!name) { + console.log('Hello World'); + } else { + console.log(`Hello ${name}`); + } +} + +function myFunc(a, b) { + return a * b; +} +document.getElementById('demo').innerHTML = myFunc(4, 3); +{% endhighlight %} + + +

java: +{% highlight java %} +class HelloWorldApp { + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} +{% endhighlight %} + + +
objective c: +{% highlight objective_c %} +- (int)method:(int)i { + return [self square_root:i]; +} +{% endhighlight %} + + +

perl: +{% highlight perl %} +while (<>) { + chomp; + if (s/$//) { + $_ .= <>; + redo unless eof(); + } +} +{% endhighlight %} + + +

sql: +{% highlight sql %} +SELECT Country FROM Customers WHERE Country <> 'USA' +{% endhighlight %} + + +

c++: +{% highlight c++ %} +#include +using namespace std; +int main () { + cout << "Hello World!"; + return 0; +} +{% endhighlight %} + + +

c sharp: +{% highlight c# %} +class Foo { + public int Value; + public static explicit operator Foo(int value) { + return new Foo(value); + } +} +Foo foo = (Foo)2; +{% endhighlight %} + + +

vb: +{% highlight vb linenos %} +Private Sub Form_Load() + MsgBox "Hello, World!" +End Sub +{% endhighlight %} diff --git a/about.md b/about.md new file mode 100644 index 0000000..9e6163a --- /dev/null +++ b/about.md @@ -0,0 +1,15 @@ +--- +layout: page +title: /about +permalink: /about/ +--- + +# jekyll-theme-console + +A jekyll theme with inspiration from linux consoles for hackers, developers and script kiddies. +You can find the source code for this theme at [github.com/b2a3e8/jekyll-theme-console](https://github.com/b2a3e8/jekyll-theme-console). + +## What is jekyll? + +Jekyll is a simple, blog-aware, static site generator for personal, project, or organization sites. Written in Ruby by Tom Preston-Werner, GitHub's co-founder, it is distributed under an open source license. +
Instead of using databases, Jekyll takes the content, renders Markdown or Textile and Liquid templates, and produces a complete, static website ready to be served by Apache HTTP Server, Nginx or another web server. Jekyll is the engine behind GitHub Pages, a GitHub feature that allows users to host websites based on their GitHub repositories for no additional cost. diff --git a/contact.md b/contact.md new file mode 100644 index 0000000..3de237d --- /dev/null +++ b/contact.md @@ -0,0 +1,16 @@ +--- +title: /contact +layout: page +permalink: /contact +--- + +# Get in touch? + +
+ + + + +
+ +

(This is a demo site, the form doesn't work - If you want to implement a form on your site, you need an external service) diff --git a/index.md b/index.md new file mode 100644 index 0000000..f73ae7c --- /dev/null +++ b/index.md @@ -0,0 +1,14 @@ +--- +title: / +layout: home +permalink: / +--- + +# Other Demo Pages + +[Dark](https://b2a3e8.github.io/jekyll-theme-console-demo-dark/) +[Light](https://b2a3e8.github.io/jekyll-theme-console-demo-light/) + +# Welcome + +Bla bla bla bla. Bla bla bla bla bla bla bla bla. diff --git a/peter.md b/peter.md new file mode 100644 index 0000000..880e606 --- /dev/null +++ b/peter.md @@ -0,0 +1,20 @@ +--- +title: /peter +layout: page +permalink: /peter +--- + +# Peter principle + +The Peter principle is a concept in management developed by Laurence J. Peter, which observes that people in a hierarchy tend to rise to their "level of incompetence". In other words, an employee is promoted based on their success in previous jobs until they reach a level at which they are no longer competent, as skills in one job do not necessarily translate to another. The concept was elucidated in the 1969 book The Peter Principle by Peter and Raymond Hull. + +The Peter Principle was published by William Morrow and Company in 1969. Peter and Hull intended the book to be satire, but it became popular as it was seen to make a serious point about the shortcomings of how people are promoted within hierarchical organizations. Hull wrote the text, based on Peter's research. + +The Peter principle has been the subject of much later commentary and research. + +## What does it mean? + +The Peter principle states that a person who is competent at their job will earn promotion to a more senior position which requires different skills. If the promoted person lacks the skills required for their new role, then they will be incompetent at their new level, and so they will not be promoted again. But if they are competent at their new role, then they will be promoted again, and they will continue to be promoted until they eventually reach a level at which they are incompetent. Being incompetent, they do not qualify to be promoted again, and so remain stuck at that final level for the rest of their career (termed "Final Placement" or "Peter's Plateau"). This outcome is inevitable, given enough time and assuming that there are enough positions in the hierarchy to promote competent employees to. The "Peter Principle" is therefore expressed as: "In a hierarchy every employee tends to rise to his level of incompetence." This leads to Peter's Corollary: "In time, every post tends to be occupied by an employee who is incompetent to carry out its duties." Hull calls the study of how hierarchies work "hierarchiology." + +## References +[wikipedia.org/wiki/Peter_principle](https://wikipedia.org/wiki/Peter_principle)