This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install build tools if necessary: | |
# sudo dnf install -y @development-tools cmake gcc-c++ autoconf autoreconf-archive automake make intltool libtool | |
LIBS=" \ | |
gettext-devel \ | |
glib2-devel \ | |
gnome-bluetooth-libs-devel \ | |
ibus-devel \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.4" | |
networks: | |
example-com--postgres: ~ | |
example-com--redis: ~ | |
services: | |
# PostgreSQL | |
postgres: | |
container_name: example-com--postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// This library comes preloaded with HashBrown | |
const ToMarkdown = require('to-markdown'); | |
/** | |
* The processor class | |
*/ | |
class MarkdownProcessor extends HashBrown.Models.Processor { | |
// Getters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INPUT_FOLDER=$1 | |
OUTPUT_FOLDER=$2 | |
if [ -z "$INPUT_FOLDER" ] || [ -z "$OUTPUT_FOLDER" ]; then | |
echo "Usage: sort.sh <input folder> <output folder>" | |
exit 1; | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#################### | |
# Parse chapters | |
#################### | |
function parse_chapters { | |
# Find all chapter links | |
LINK_HTML_REGEX="<a href=\"$BASE_URL/v([0-9a-zA-Z]+)/c([0-9.]+)/([0-9]+).html\" title=\"(?:[a-zA-Z0-9.,?! -]+)?\" class=\"tips\">" | |
# Loop through matches |