Added First Post, Removed templates

This commit is contained in:
Jun Wei Woon 2020-07-05 13:15:24 +08:00
parent 2880de699f
commit 8de665a759
54 changed files with 209 additions and 1539 deletions

View File

@ -21,9 +21,3 @@
name = "Showcase" name = "Showcase"
url = "showcase" url = "showcase"
weight = 4 weight = 4
[[main]]
identifier = "publication"
name = "Pub"
url = "publication"
weight = 5

View File

@ -6,9 +6,9 @@ header:
paddingY: 0 paddingY: 0
align: center align: center
title: title:
- HUGO - Devoalda
subtitle: subtitle:
- The worlds fastest framework for building websites - My Tutorial Website
titleColor: titleColor:
titleShadow: true titleShadow: true
titleFontSize: 44 titleFontSize: 44
@ -93,4 +93,4 @@ header:
titleFontSize: 44 titleFontSize: 44
subtitleFontSize: 16 subtitleFontSize: 16
spaceBetweenTitleSubtitle: 20 spaceBetweenTitleSubtitle: 20
--- ---

View File

@ -1,27 +1,25 @@
+++ +++
title = "About" title = "About"
description = "Hugo, the worlds fastest framework for building websites" description = "About page for my tutorial website"
type = "about" type = "about"
date = "2019-02-28" date = "05-07-2020"
+++ +++
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. # About
This page will contain my tutorials on certain programs I use on GNU/Linux. It will also contain documentation on certain scripts I created while using my system.
Hugo makes use of a variety of open source projects including:
* https://github.com/russross/blackfriday
* https://github.com/alecthomas/chroma
* https://github.com/muesli/smartcrop
* https://github.com/spf13/cobra
* https://github.com/spf13/viper
Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
Learn more and contribute on [GitHub](https://github.com/gohugoio).
# System Information
These are my system information on my daily driver.
- Distribution: Arch Linux
- Window Manager: Xmonad
- Status Bar: Xmobar
# Programming
A hobbyist programmer with experience and interests in:
* Python
* Bash
* Golang
* Java
* C#
* ASP.Net

View File

@ -1,10 +0,0 @@
---
title: "Cartoon"
date: 2019-10-31T10:20:16+09:00
type: "gallery"
mode: "at-once" # at-once is a default value
description: "cartoon gallery"
image: images/feature2/bam.png
---
Sample images from [Pixabay](https://pixabay.com)

View File

@ -1,20 +0,0 @@
---
title: Photo
date: 2019-10-31T10:20:16+09:00
description: Photo Gallery
type: gallery
mode: one-by-one
description: "photo gallery"
images:
- image: beach.jpg
caption: beach, women, car
- image: beautiful.jpg
caption: beautiful women
- image: people.jpg
caption: man
- image: child.jpg
caption: child
image: images/feature2/gallery.png
---
Sample images from [Pixabay](https://pixabay.com)

View File

@ -1,7 +1,7 @@
+++ +++
aliases = ["posts","articles","blog","showcase","docs"] aliases = ["posts","articles","blog","showcase","docs"]
title = "Posts" title = "Posts"
author = "Hugo Authors" author = "Devoalda"
tags = ["index"] tags = ["index"]
description = "Post page" description = "Post page"
+++ +++

View File

@ -1,56 +0,0 @@
---
author: "Hugo Authors"
title: "Emoji Support"
date: 2019-12-16T12:00:06+09:00
description: "Guide to emoji usage in Hugo"
draft: false
hideToc: false
enableToc: true
enableTocContent: false
author: Kim
authorEmoji: 👻
tags:
- emoji
- gamoji
- namoji
- bamoji
- amoji
---
Emoji can be enabled in a Hugo project in a number of ways.
<!--more-->
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
To enable emoji globally, set `enableEmoji` to `true` in your sites [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
<br>
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
***
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
{{< highlight html >}}
.emoji {
font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
}
{{< /highlight >}}
{{< css.inline >}}
<style>
.emojify {
font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
font-size: 2rem;
vertical-align: middle;
}
@media screen and (max-width:650px) {
.nowrap {
display: block;
margin: 25px 0;
}
}
</style>
{{< /css.inline >}}

View File

@ -0,0 +1,119 @@
---
author: "Devoalda"
title: "Fail2ban"
date: 2020-07-05T12:08:03+08:00
description: "Guide to setup fail2ban on Linux Workstations/Servers"
draft: false
hideToc: false
enableToc: true
enableTocContent: false
tags:
- linux
- arch
- program
- fail2ban
categories:
- linux
- program
series:
- Linux Programs
---
# Fail2ban Setup guide
## Introduction
Fail2ban scans log files (e.g. /var/log/apache/error_log) and bans IPs that show the malicious signs -- too many password failures, seeking for exploits, etc. Generally Fail2Ban is then used to update firewall rules to reject the IP addresses for a specified amount of time, although any arbitrary other action (e.g. sending an email) could also be configured. Out of the box Fail2Ban comes with filters for various services (apache, courier, ssh, etc).
Fail2Ban is able to reduce the rate of incorrect authentications attempts however it cannot eliminate the risk that weak authentication presents. Configure services to use only two factor or public/private authentication mechanisms if you really want to protect services.
I have Fail2Ban set up on my personal workstation to help protect my machine from bruteforce attacks. Fail2Ban is a free and open source software that helps in securing your Linux server against malicious logins. If you have set up an SSH server on your machine, you might find a huge number of IPs trying to login to your machine via SSH, hence Fail2Ban will be able to protect your system from unwanted malicious logins.
## Installation
Install fail2ban on machine
```bash
yay -S fail2ban
```
*Note* that I use Arch, and use yay as my package manager. Fail2Ban should be in many of the popular repositories.
## Configuration
### Edit /etc/fail2ban/jail.local file
```bash
sudo vim /etc/fail2ban/jail.local
```
Insert the following
```bash
[DEFAULT]
bantime = 1d
```
### Edit /etc/fail2ban/jail.d/sshd.local
```bash
sudo vim /etc/fail2ban/jail.d/sshd.local
```
Insert the following
```bash
[sshd]
enabled = true
filter = sshd
banaction = ufw
backend = systemd
maxretry = 5
findtime = 1d
bantime = 2w
ignoreip = 127.0.0.1/8
```
#### Command Syntax
* banaction - Specify firewall used (iptables ufw etc)
* maxretry - Able to lower if you want
* ignoreip - Insert IP Addresses to ignore
### Edit file /etc/systemd/system/fail2ban.service.d/override.conf
```bash
sudo vim /etc/systemd/system/fail2ban.service.d/override.conf
```
Add the following
```bash
[Service]
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=read-only
ProtectSystem=strict
NoNewPrivileges=yes
ReadWritePaths=-/var/run/fail2ban
ReadWritePaths=-/var/lib/fail2ban
ReadWritePaths=-/var/log/fail2ban
ReadWritePaths=-/var/spool/postfix/maildrop
ReadWritePaths=-/run/xtables.lock
CapabilityBoundingSet=CAP_AUDIT_READ CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW
```
### Edit file /etc/fail2ban/fail2ban.local with the correct logtarget path
```bash
sudo vim /etc/fail2ban/fail2ban.local
```
Add the following
```bash
[Definition]
logtarget = /var/log/fail2ban/fail2ban.log
```
### Create directory /var/log/fail2ban/ as root
```bash
sudo mkdir /var/log/fail2ban/
```
### Start and enable fail2ban.service
```bash
systemctl daemon-reload
systemctl start fail2ban
systemctl enable fail2ban
```
### Restart fail2ban-client and view status
```bash
sudo fail2ban-client restart
sudo fail2ban-client status
```

View File

@ -1,151 +0,0 @@
---
title: Markdown Syntax Guide
date: 2019-12-20T12:00:06+09:00
description: Sample article showcasing basic Markdown syntax and formatting for HTML elements.
draft: false
hideToc: false
enableToc: true
enableTocContent: true
author: Choi
authorEmoji: 🤖
tags:
- markdown
- css
- html
- themes
categories:
- themes
- syntax
series:
- Themes Guide
image: images/feature1/markdown.png
---
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
<!--more-->
## Headings
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
# H1
## H2
### H3
#### H4
##### H5
###### H6
## Paragraph
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
## Blockquotes
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
#### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
> **Note** that you can use *Markdown syntax* within a blockquote.
#### Blockquote with attribution
> Don't communicate by sharing memory, share memory by communicating.</p>
> — <cite>Rob Pike[^1]</cite>
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
## Tables
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name | Age
--------|------
Bob | 27
Alice | 23
#### Inline Markdown within tables
| Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |
| ---------- | --------- | ----------------- | ---------- |
| *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | `code` |
## Code Blocks
#### Code block with backticks
```
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
```
#### Code block indented with four spaces
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
#### Code block with Hugo's internal highlight shortcode
{{< highlight html >}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example HTML5 Document</title>
</head>
<body>
<p>Test</p>
</body>
</html>
{{< /highlight >}}
## List Types
#### Ordered List
1. First item
2. Second item
3. Third item
#### Unordered List
* List item
* Another item
* And another item
#### Nested list
* Item
1. First Sub-item
2. Second Sub-item
## Other Elements — abbr, sub, sup, kbd, mark
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
H<sub>2</sub>O
X<sup>n</sup> + Y<sup>n</sup>: Z<sup>n</sup>
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.

View File

@ -1,48 +0,0 @@
---
author: Hugo Authors
title: Math Typesetting
date: 2019-12-17T12:00:06+09:00
description: A brief guide to setup KaTeX
draft: false
hideToc: false
enableToc: true
enableTocContent: false
author: Park
authorEmoji: 👽
libraries:
- katex
---
{{< box >}}
We need goldmark katex entension which is not yet we have:
[https://github.com/gohugoio/hugo/issues/6544](https://github.com/gohugoio/hugo/issues/6544)
{{< /box >}}
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
<!--more-->
In this example we will be using [KaTeX](https://katex.org/)
- Create a partial under `/layouts/partials/math.html`
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
- Include the partial in your templates like so:
```
{{ if or .Params.math .Site.Params.math }}
{{ partial "math.html" . }}
{{ end }}
```
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
- To enable KaTex on a per page basis include the parameter `math: true` in content files.
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
### Examples
Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
Block math:
$$
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$

View File

@ -1,47 +0,0 @@
---
title: "Rich Content"
date: 2019-12-19T12:00:06+09:00
description: "A brief description of Hugo Shortcodes"
draft: false
hideToc: false
enableToc: true
enableTocContent: false
author: Lee
authorEmoji: 👺
tags:
- shortcodes
- privacy
image: images/feature2/content.png
---
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
<!--more-->
---
## Instagram Simple Shortcode
{{< instagram_simple BGvuInzyFAe hidecaption >}}
<br>
---
## YouTube Privacy Enhanced Shortcode
{{< youtube ZJthWmvUzzc >}}
<br>
---
## Twitter Simple Shortcode
{{< twitter_simple 1085870671291310081 >}}
<br>
---
## Vimeo Simple Shortcode
{{< vimeo_simple 48912912 >}}

View File

@ -1,135 +0,0 @@
---
title: "Shortcodes"
date: 2020-01-25T06:40:51+09:00
description: tabs, code-tabs, expand, alert, warning, notice, img, box
draft: false
hideToc: false
enableToc: true
enableTocContent: true
tocPosition: inner
tags:
- shortcode
series:
-
categories:
-
image: images/feature3/code-file.png
---
## Markdownify box
{{< boxmd >}}
This is **boxmd** shortcode
{{< /boxmd >}}
## Simple box
{{< box >}}
This is **box** shortcode
{{< /box >}}
## Code tabs
Make it easy to switch between different code
{{< codes java javascript >}}
{{< code >}}
```java
System.out.println('Hello World!');
```
{{< /code >}}
{{< code >}}
```javascript
console.log('Hello World!');
```
{{< /code >}}
{{< /codes >}}
## Tabs for general purpose
{{< tabs Windows MacOS Ubuntu >}}
{{< tab >}}
### Windows section
```javascript
console.log('Hello World!');
```
Becareful that the content in the tab should be different from each other. The tab makes unique id hashes depending on the tab contents. So, If you just copy-paste the tabs with multiple times, since it has the same contents, the tab will not work.
{{< /tab >}}
{{< tab >}}
### MacOS section
Hello world!
{{< /tab >}}
{{< tab >}}
### Ubuntu section
Great!
{{< /tab >}}
{{< /tabs >}}
## Expand
{{< expand "Expand me" >}}
### Title
contents
{{< /expand >}}
{{< expand "Expand me2" >}}
### Title2
contents2
{{< /expand >}}
## Alert
Colored box
{{< alert theme="warning" >}}
**this** is a text
{{< /alert >}}
{{< alert theme="info" >}}
**this** is a text
{{< /alert >}}
{{< alert theme="success" >}}
**this** is a text
{{< /alert >}}
{{< alert theme="danger" >}}
**this** is a text
{{< /alert >}}
## Notice
{{< notice success >}}
success text
{{< /notice >}}
{{< notice info >}}
info text
{{< /notice >}}
{{< notice warning >}}
warning text
{{< /notice >}}
{{< notice error >}}
error text
{{< /notice >}}

View File

@ -1,326 +0,0 @@
---
title: "Syntax highlighting"
date: 2019-12-18T10:33:41+09:00
description: "Syntax highlighting test"
draft: false
hideToc: false
enableToc: true
enableTocContent: false
author: Jeus
authorEmoji: 🎅
pinned: true
tags:
- hugo
series:
-
categories:
- hugo
image: images/feature2/color-palette.png
---
## Code Syntax Highlighting
Verify the following code blocks render as code blocks and highlight properly.
More about tuning syntax highlighting is the [Hugo documentation](https://gohugo.io/content-management/syntax-highlighting/).
### Diff
``` diff {hl_lines=[4,"6-7"]}
*** /path/to/original ''timestamp''
--- /path/to/new ''timestamp''
***************
*** 1 ****
! This is a line.
--- 1 ---
! This is a replacement line.
It is important to spell
-removed line
+new line
```
```diff {hl_lines=[4,"6-7"], linenos=false}
*** /path/to/original ''timestamp''
--- /path/to/new ''timestamp''
***************
*** 1 ****
! This is a line.
--- 1 ---
! This is a replacement line.
It is important to spell
-removed line
+new line
```
### Makefile
``` makefile {linenos=false}
CC=gcc
CFLAGS=-I.
hellomake: hellomake.o hellofunc.o
$(CC) -o hellomake hellomake.o hellofunc.o -I.
```
``` makefile
CC=gcc
CFLAGS=-I.
hellomake: hellomake.o hellofunc.o
$(CC) -o hellomake hellomake.o hellofunc.o -I.
```
### JSON
``` json
{"employees":[
{"firstName":"John", "lastName":"Doe"},
]}
```
### Markdown
``` markdown
**bold**
*italics*
[link](www.example.com)
```
### JavaScript
``` javascript
document.write('Hello, world!');
```
### CSS
``` css
body {
background-color: red;
}
```
### Objective C
``` objectivec
#import <stdio.h>
int main (void)
{
printf ("Hello world!\n");
}
```
### Python
``` python
print "Hello, world!"
```
### XML
``` xml
<employees>
<employee>
<firstName>John</firstName> <lastName>Doe</lastName>
</employee>
</employees>
```
### Perl
``` perl
print "Hello, World!\n";
```
### Bash
``` bash
echo "Hello World"
```
### PHP
``` php
<?php echo '<p>Hello World</p>'; ?>
```
### CoffeeScript
``` coffeescript
console.log(“Hello world!”);
```
### C#
``` cs
using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}
```
### C++
``` cpp
#include <iostream.h>
main()
{
cout << "Hello World!";
return 0;
}
```
### SQL
``` sql
SELECT column_name,column_name
FROM table_name;
```
### Go
``` go
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
}
```
### Ruby
```ruby
puts "Hello, world!"
```
### Java
```java
import javax.swing.JFrame; //Importing class JFrame
import javax.swing.JLabel; //Importing class JLabel
public class HelloWorld {
public static void main(String[] args) {
JFrame frame = new JFrame(); //Creating frame
frame.setTitle("Hi!"); //Setting title frame
frame.add(new JLabel("Hello, world!"));//Adding text to frame
frame.pack(); //Setting size to smallest
frame.setLocationRelativeTo(null); //Centering frame
frame.setVisible(true); //Showing frame
}
}
```
### Latex Equation
```latex
\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).
```
```javascript
import {x, y} as p from 'point';
const ANSWER = 42;
class Car extends Vehicle {
constructor(speed, cost) {
super(speed);
var c = Symbol('cost');
this[c] = cost;
this.intro = `This is a car runs at
${speed}.`;
}
}
for (let num of [1, 2, 3]) {
console.log(num + 0b111110111);
}
function $initHighlight(block, flags) {
try {
if (block.className.search(/\bno\-highlight\b/) != -1)
return processBlock(block.function, true, 0x0F) + ' class=""';
} catch (e) {
/* handle exception */
var e4x =
<div>Example
<p>1234</p></div>;
}
for (var i = 0 / 2; i < classes.length; i++) {
// "0 / 2" should not be parsed as regexp
if (checkCondition(classes[i]) === undefined)
return /\d+[\s/]/g;
}
console.log(Array.every(classes, Boolean));
}
export $initHighlight;
```
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello world</title>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="index.css" />
</head>
<body>
<div id="app"></div>
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js"></script>
<script src="vendor/prism.js"></script>
<script src="examples.bundle.js"></script>
</body>
</html>
```
```css
/*********************************************************
* General
*/
pre[class*="language-"],
code {
color: #5c6e74;
font-size: 13px;
text-shadow: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
line-height: 1.5;
tab-size: 4;
hyphens: none;
}
pre[class*="language-"]::selection,
code::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
pre[class*="language-"],
code {
text-shadow: none;
}
}
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
background: #f8f5ec;
}
:not(pre) > code {
padding: .1em .3em;
border-radius: .3em;
color: #db4c69;
background: #f9f2f4;
}
```

View File

@ -1,54 +0,0 @@
---
title: "Chart support"
date: 2019-11-18T12:00:06+09:00
description: "Simple yet flexible JavaScript charting for designers & developers"
draft: false
enableToc: false
enableTocContent: false
tags:
-
series:
-
categories:
- diagram
libraries:
- chart
image: images/feature1/graph.png
---
```chart
{
"type": "bar",
"data":
{
"labels": ["One", "Two", "Three", "Four", "Five", "Six"],
"datasets": [{
"label": "# of Votes",
"data": [12, 19, 3, 5, 3, 8]
}]
}
}
```
```chart
{
"type": "line",
"data": {
"labels": ["One", "Two", "Three", "Four", "Five", "Six"],
"datasets": [
{
"label": "# of Votes",
"data": [12, 19, 3, 5, 2, 3],
"backgroundColor":"transparent",
"borderColor":"orange"
},
{
"label": "Some other set",
"data": [15, 8, 13, 5, 5, 9],
"backgroundColor":"transparent",
"borderColor":"#44ccff"
}
]
}
}
```

View File

@ -1,36 +0,0 @@
---
title: "Flowchart support"
date: 2019-11-14T12:00:06+09:00
description: "flowchart.js is a flowchart DSL and SVG render that runs in the browser and terminal.
Nodes and connections are defined in separately so that nodes can be reused and connections can be quickly changed."
draft: false
enableToc: false
enableTocContent: false
tags:
-
series:
-
categories:
- diagram
libraries:
- flowchartjs
image: images/feature1/flowchart.png
---
```flowchart
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End|future:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|future
st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e
```

View File

@ -1,31 +0,0 @@
---
title: "JS Sequence Diagram support"
date: 2019-11-18T12:00:06+09:00
description: "Generates UML sequence diagrams from simple text"
draft: false
enableToc: false
enableTocContent: false
tags:
-
series:
-
categories:
- diagram
libraries:
- msc
image: images/feature2/transfer.png
---
```msc
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
```
```msc
Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow
```

View File

@ -1,47 +0,0 @@
---
title: "Katex support"
date: 2019-11-15T12:00:06+09:00
description: "KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web."
draft: false
enableToc: false
enableTocContent: false
tags:
-
series:
-
categories:
- math
libraries:
- katex
image: images/feature2/mathbook.png
---
The following
$$ \int_{a}^{b} x^2 dx $$
Is an integral
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$
Enable Katex in the config file by setting the `katex` param to `true`. This will import the necessary Katex CSS/JS.
See the online reference of [supported TeX functions](https://katex.org/docs/supported.html).
**Note:** For inline math to render correctly, your content file extension must be `.mmark`. See the [official mmark site](https://mmark.nl/).
```
Inline math: $ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $
```
Inline math: $ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $
```
Block math:
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$
```
Block math:
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$

View File

@ -1,20 +0,0 @@
---
title: "MathJax support"
date: 2019-11-16T12:00:06+09:00
description: "A JavaScript display engine for mathematics that works in all browsers.No more setup for readers. It just works."
draft: false
enableToc: false
enableTocContent: false
tags:
-
series:
-
categories:
- math
libraries:
- mathjax
image: images/feature1/infinity.png
---
When $a \ne 0$, there are two solutions to $\(ax^2 + bx + c = 0\)\$ and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

View File

@ -1,94 +0,0 @@
---
title: "Mermaid support"
date: 2019-11-17T12:00:06+09:00
description: "Generate diagrams, charts, graphs or flows from markdown-like text via javascript."
draft: false
enableToc: false
enableTocContent: false
tags:
- diagram
series:
-
categories:
- diagram
libraries:
- mermaid
image: images/feature2/workflow.png
---
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
```mermaid
sequenceDiagram
participant Alice
participant Bob
Alice->John: Hello John, how are you?
loop Healthcheck
John->John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail...
John-->Alice: Great!
John->Bob: How about you?
Bob-->John: Jolly good!
```
```mermaid
graph TD
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
```
```mermaid
gantt
section Section
Completed :done, des1, 2014-01-06,2014-01-08
Active :active, des2, 2014-01-07, 3d
Parallel 1 : des3, after des1, 1d
Parallel 2 : des4, after des1, 1d
Parallel 3 : des5, after des3, 1d
Parallel 4 : des6, after des4, 1d
```
```mermaid
classDiagram
Class01 <|-- AveryLongClass : Cool
<<interface>> Class01
Class09 --> C2 : Where am i?
Class09 --* C3
Class09 --|> Class07
Class07 : equals()
Class07 : Object[] elementData
Class01 : size()
Class01 : int chimp
Class01 : int gorilla
class Class10 {
<<service>>
int id
size()
}
```
```mermaid
stateDiagram
[*] --> Still
Still --> [*]
Still --> Moving
Moving --> Still
Moving --> Crash
Crash --> [*]
```
```mermaid
pie
"Dogs" : 386
"Cats" : 85
"Rats" : 15
```

View File

@ -1,48 +0,0 @@
---
title: "Viz support"
date: 2019-11-18T21:00:06+09:00
description: "A hack to put Graphviz on the web."
draft: false
enableToc: false
enableTocContent: false
tags:
-
series:
-
categories:
- diagram
libraries:
- viz
image: images/feature2/graph.png
---
```viz-dot
digraph G {
subgraph cluster_0 {
style=filled;
color=lightgrey;
node [style=filled,color=white];
a0 -> a1 -> a2 -> a3;
label = "process #1";
}
subgraph cluster_1 {
node [style=filled];
b0 -> b1 -> b2 -> b3;
label = "process #2";
color=blue
}
start -> a0;
start -> b0;
a1 -> b3;
b2 -> a3;
a3 -> a0;
a3 -> end;
b3 -> end;
start [shape=Mdiamond];
end [shape=Msquare];
}
```

View File

@ -1,27 +0,0 @@
---
title: "Wavedrom support"
date: 2019-11-18T18:00:06+09:00
description: "WaveDrom is a Free and Open Source online digital timing diagram (waveform) rendering engine that uses javascript, HTML5 and SVG to convert a WaveJSON input text description into SVG vector graphics."
draft: false
enableToc: false
enableTocContent: false
tags:
-
series:
-
categories:
- diagram
libraries:
- wavedrom
image: images/feature1/wave.png
---
```wave
{
"signal": [ {"name": "CLK", "wave": "p.....|..."},
{"name":"DAT", "wave":"x.345x|=.x", "data":["A","B","C","D"]},
{"name": "REQ", "wave": "0.1..0|1.0"},
{},
{"name": "ACK", "wave": "1.....|01."}
]}
```

View File

@ -0,0 +1,38 @@
---
author: "Devoalda"
title: "Welcome"
date: 2020-07-05T12:34:33+08:00
description: "Welcome to Devoalda!"
draft: false
hideToc: false
enableToc: true
enableTocContent: false
tocPosition: inner
tocLevels: ["h2", "h3", "h4"]
tags:
- general
---
# Welcome!
This is a new website where I will be posting my tutorials and documentations for certain programs I use. These are programs or scripts I have used during my past year of using Linux.
Read more about me [here]({{< ref "/about/index.md" >}})
# History
I have used a few Linux distributions in the past, mainly:
* Debian Variants
* Ubuntu
* Raspbian
* Linux mint
* Kali Linux
* Parrot Security OS
* Tails OS
* Arch Variants
* Manjaro
* Arch Linux
* RHEL Variants
* CentOS
Using Ubuntu for around 6 months, I have switch to Arch-based distributions like Manjaro and Arch and have not switch back since.

View File

@ -1,4 +0,0 @@
---
title: "Presentations"
description: "Presentation list with reveal.js"
---

View File

@ -1,87 +0,0 @@
---
title: "Fourth"
date: 2019-10-30T20:48:10+09:00
description: "My fourth presentation"
tags:
-
series:
-
categories:
-
image: images/feature1/number-four.png
plugins:
- highlight
- zoom
- notes
- math
highlightTheme: monokai
revealTheme: bagie
revealBackgroundColor: "" # #fff or rgba() or hsl()
revealBackgroundImage: "" # /images/myImage.png <= static folder path
revealBackgroundPosition: "" # left top, left center, left bottom, right top, right center ...
revealBackgroundRepeat: "" # repeat, repeat-x, repeat-y, no-repeat, inherit
revealBackgroundOpacity: "" # 0~1
revealBackgroundVideo: "" # /videos/myVideo.mp4 <= static folder path, A single video source, or a comma separated list of video sources.
revealBackgroundVideoLoop: false # true, false
revealBackgroundVideoMuted: false # true, false
revealBackgroundSize: "" # cover, contain, ...
reveal:
- main:
- sub:
- |
# Hugo
## The worlds fastest framework for building websites
- sub:
- |
Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.
- main:
- sub:
- |
# Reveal.js
## A framework for easily creating beautiful presentations using HTML.
- [Check out the live demo](https://revealjs.com/#/)
- main:
- sub:
- |
You can easily create presentation documents using Markdown.
- fragment:
- sub:
- |
# here
- sub:
- |
#### you
- sub:
- |
#### go
- main:
- sub:
- |
# POINT OF VIEW
Press *ESC* to enter the slide overview.
Hold down the alt key (ctrl in Linux) and click on any element to zoom towards it using zoom.js. click again to zoom back out.
(NOTE\: Use ctrl + click in Linux)
- fragment:
- sub:
- |
## FRAGMENTS
- sub:
- |
Hit the next arrow...
- sub:
- |
... to step through ...
- sub:
- |
.. a
- sub:
- |
.. a fragmented
- sub:
- |
.. a fragmented slide.
---

View File

@ -1,30 +0,0 @@
---
title: "First"
date: 2019-10-30T19:45:20+09:00
description: "My first presentation"
tags:
-
series:
-
categories:
-
image: images/feature1/number-one.png
revealBackgroundColor: "" # #fff or rgba() or hsl()
revealBackgroundImage: "" # /images/myImage.png <= static folder path
revealBackgroundPosition: "" # left top, left center, left bottom, right top, right center ...
revealBackgroundRepeat: "" # repeat, repeat-x, repeat-y, no-repeat, inherit
revealBackgroundOpacity: "" # 0~1
revealBackgroundVideo: "" # /videos/myVideo.mp4 <= static folder path, A single video source, or a comma separated list of video sources.
revealBackgroundVideoLoop: false # true, false
revealBackgroundVideoMuted: false # true, false
revealBackgroundSize: "" # cover, contain, ...
reveal:
- main:
- sub:
- |
test 1
- main:
- sub:
- |
test 2
---

View File

@ -1,30 +0,0 @@
---
title: "Second"
date: 2019-10-30T20:45:24+09:00
description: "My second presentation"
tags:
-
series:
-
categories:
-
image: images/feature1/number-two.png
revealBackgroundColor: "" # #fff or rgba() or hsl()
revealBackgroundImage: "" # /images/myImage.png <= static folder path
revealBackgroundPosition: "" # left top, left center, left bottom, right top, right center ...
revealBackgroundRepeat: "" # repeat, repeat-x, repeat-y, no-repeat, inherit
revealBackgroundOpacity: "" # 0~1
revealBackgroundVideo: "" # /videos/myVideo.mp4 <= static folder path, A single video source, or a comma separated list of video sources.
revealBackgroundVideoLoop: false # true, false
revealBackgroundVideoMuted: false # true, false
revealBackgroundSize: "" # cover, contain, ...
reveal:
- main:
- sub:
- |
test 1
- main:
- sub:
- |
test 2
---

View File

@ -1,75 +0,0 @@
---
title: "Third"
date: 2019-10-30T20:46:30+09:00
description: "My third presentation"
tags:
-
series:
-
categories:
-
image: images/feature1/number-three.png
plugins:
- highlight
- zoom
- math
highlightTheme: monokai
revealBackgroundColor: "" # #fff or rgba() or hsl()
revealBackgroundImage: "" # /images/myImage.png <= static folder path
revealBackgroundPosition: "" # left top, left center, left bottom, right top, right center ...
revealBackgroundRepeat: "" # repeat, repeat-x, repeat-y, no-repeat, inherit
revealBackgroundOpacity: "" # 0~1
revealBackgroundVideo: "" # /videos/myVideo.mp4 <= static folder path, A single video source, or a comma separated list of video sources.
revealBackgroundVideoLoop: false # true, false
revealBackgroundVideoMuted: false # true, false
revealBackgroundSize: "" # cover, contain, ...
revealTheme: league
reveal:
- main:
- sub:
- |
## Syntax highlighting
```go
// If an unknown or empty style is provided, AP style is what you get.
func GetTitleFunc(style string) func(s string) string {
switch strings.ToLower(style) {
case "go":
return strings.Title
case "chicago":
return transform.NewTitleConverter(transform.ChicagoStyle)
default:
return transform.NewTitleConverter(transform.APStyle)
}
}
```
- main:
- sub:
- |
## Mathjax 1
\\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\
\frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\
\frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0
\end{vmatrix} \\]
- main:
- sub:
- |
## Mathjax 2
\\[\begin{aligned}
\dot{x} &amp; = \sigma(y-x) \\
\dot{y} &amp; = \rho x - y - xz \\
\dot{z} &amp; = -\beta z + xy
\end{aligned} \\]
- main:
- sub:
- |
## Mathjax 3
\\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \\]
- main:
- sub:
- |
## Mathjax 4
\\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \\]
---

View File

@ -1,5 +0,0 @@
---
title: article
date: 2020-03-05 14:08:48.459816
description: Publication - article
---

View File

@ -1,14 +0,0 @@
@article{articleExample1,
abstract = {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.},
author = {zzossig},
copyright = {Copyright (c) 2018 zzossig},
journal = {Lorem},
keywords = {⛔ No DOI found},
language = {en},
month = {June},
title = {Crossdressing, {Crossculture}},
url = {https://google.com},
urldate = {2019-12-13},
year = {2018}
}

View File

@ -1,16 +0,0 @@
---
keywords: ['example']
authors: ['zzossig']
publication: "abc"
abstract: "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."
links:
- name: url
link: https://google.com
copyright: "Copyright (c) 2018 zzossig"
title: "Good Title"
ENTRYTYPE: "article"
enableToc: False
enableWhoami: True
pinned: true
publishDate: "2018-06-01"
---

View File

@ -1,5 +0,0 @@
---
title: book
date: 2020-03-05 14:08:48.402839
description: Publication - book
---

View File

@ -1,13 +0,0 @@
@book{bookExample1,
abstract = {Donec vel ipsum vulputate, dapibus magna quis, auctor mauris. Aliquam ut dapibus risus. Duis sit amet magna posuere, interdum metus sed, maximus tortor. Maecenas tempus ut magna nec facilisis. Pellentesque vel ultrices nunc, eget ultrices mauris. Ut eget ligula quis purus porta rhoncus eget at eros. In id felis ullamcorper, vehicula ante sed, cursus magna. Curabitur libero nibh, posuere in urna in, viverra pulvinar lectus. Pellentesque rutrum tempus elit at hendrerit. Sed enim est, bibendum in augue iaculis, viverra venenatis sapien. Nullam sagittis augue maximus mi interdum maximus. Praesent a cursus massa.},
author = {zzossig},
copyright = {All rights reserved},
isbn = {978-1-311-04245-3},
language = {English},
month = {June},
publisher = {Self-Published},
shorttitle = {Donec vel ipsum vulputate},
title = {Donec vel ipsum vulputate, dapibus magna quis},
year = {2017}
}

View File

@ -1,14 +0,0 @@
---
authors: ['zzossig']
publisher: "Self-Published"
abstract: "Donec vel ipsum vulputate, dapibus magna quis, auctor mauris. Aliquam ut dapibus risus. Duis sit amet magna posuere, interdum metus sed, maximus tortor. Maecenas tempus ut magna nec facilisis. Pellentesque vel ultrices nunc, eget ultrices mauris. Ut eget ligula quis purus porta rhoncus eget at eros. In id felis ullamcorper, vehicula ante sed, cursus magna. Curabitur libero nibh, posuere in urna in, viverra pulvinar lectus. Pellentesque rutrum tempus elit at hendrerit. Sed enim est, bibendum in augue iaculis, viverra venenatis sapien. Nullam sagittis augue maximus mi interdum maximus. Praesent a cursus massa."
shorttitle: "Donec vel ipsum vulputate"
isbn: "978-1-311-04245-3"
copyright: "All rights reserved"
title: "Donec vel ipsum vulputate, dapibus magna quis"
ENTRYTYPE: "book"
enableToc: False
enableWhoami: True
pinned: true
publishDate: "2017-06-01"
---

View File

@ -1,5 +0,0 @@
---
title: misc
date: 2020-03-05 14:08:48.469815
description: Publication - misc
---

View File

@ -1,14 +0,0 @@
@misc{miscExample1,
abstract = {Review by Katelyn Smith In his first full-length book, Annals of Pornographie: How Porn Became Bad (2016), Brian Watson traces the long history of pornography in the West, reiterating throughout hi…},
author = {Clutterbuck-Cook, Anna and Watson, Brian M.},
copyright = {All rights reserved},
journal = {Dósis},
language = {en},
month = {November},
shorttitle = {Book {Review}},
title = {Book {Review}: {Annals} of {Pornographie}},
url = {https://medhumdosis.com/2016/11/23/book-review-annals-of-pornographie/},
urldate = {2019-12-13},
year = {2016}
}

View File

@ -1,16 +0,0 @@
---
authors: ['zzossig', 'teemo']
publication: "abc"
abstract: "Duis vulputate odio vitae consectetur lacinia. Vivamus tellus nisi, hendrerit eget tortor eget, rutrum lobortis tellus. Donec convallis scelerisque egestas. Vestibulum ex urna, commodo at interdum vitae, malesuada id arcu. Praesent et enim libero. Proin et felis nisi. Duis imperdiet placerat dapibus."
links:
- name: url
link: https://google.com
shorttitle: "Book Review"
copyright: "All rights reserved"
title: "Book Review: Duis vulputate"
ENTRYTYPE: "misc"
enableToc: False
enableWhoami: True
pinned: true
publishDate: "2016-11-01"
---

View File

@ -1,6 +1,6 @@
--- ---
title: "Showcase overview" title: "Showcase"
date: 2020-01-19T15:43:38+09:00 date: 2020-07-05T13:04:22+08:00
description: My portfolio, repos, works overview page description: My portfolio, repos, works overview page
enableBio: false enableBio: False
--- ---

View File

@ -1,7 +0,0 @@
---
title: "Hugo"
date: 2020-01-19T21:04:11+09:00
description: Hugo theme collection
category: theme
enableBio: false
---

View File

@ -1,10 +0,0 @@
---
title: "Hugo zDoc Theme"
date: 2020-01-19T21:13:42+09:00
description: Make a documentation with hugo zdoc theme!
weight: 2
link: https://github.com/zzossig/hugo-theme-zdoc
repo: https://github.com/zzossig/hugo-theme-zdoc
pinned: true
thumb: feature3/css3-bare.png
---

View File

@ -1,10 +0,0 @@
---
title: "Hugo Zzo Theme"
date: 2020-01-19T21:13:42+09:00
description: Make a blog with hugo zzo theme!
weight: 1
link: https://github.com/zzossig/hugo-theme-zzo
repo: https://github.com/zzossig/hugo-theme-zzo
pinned: true
thumb: feature3/css3.png
---

View File

@ -0,0 +1,8 @@
---
title: "Linux"
date: 2020-07-05T13:05:31+08:00
description: Linux Repositories
category: repo
categoryIcon: code
enableBio: False
---

View File

@ -0,0 +1,9 @@
---
title: "Devoalda.gitlab.io"
date: 2020-07-05T13:05:36+08:00
description: Source for this website!
weight: 2
link: https://gitlab.com/devoalda/devoalda.gitlab.io
repo: https://gitlab.com/devoalda/devoalda.gitlab.io
pinned: true
---

View File

@ -0,0 +1,9 @@
---
title: "Dotfiles"
date: 2020-07-05T13:05:36+08:00
description: My Dotfiles
weight: 1
link: https://gitlab.com/devoalda/dotdrop-dotfiles
repo: https://gitlab.com/devoalda/dotdrop-dotfiles
pinned: true
---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB