Skip to content

Instantly share code, notes, and snippets.

@mrzapp
mrzapp / setup.sh
Last active December 15, 2019 12:15
Compiling and installing gnome-flashback on Fedora 31
#!/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 \
@mrzapp
mrzapp / docker-compose.yml
Last active July 6, 2024 01:07
NextCloud setup for Docker (docker-compose) with Collabora, NGINX, Redis and Postgres
version: "3.4"
networks:
example-com--postgres: ~
example-com--redis: ~
services:
# PostgreSQL
postgres:
container_name: example-com--postgres
@mrzapp
mrzapp / index.js
Last active October 16, 2018 09:02
Markdown Processor for HashBrown
'use strict';
// This library comes preloaded with HashBrown
const ToMarkdown = require('to-markdown');
/**
* The processor class
*/
class MarkdownProcessor extends HashBrown.Models.Processor {
// Getters
@mrzapp
mrzapp / google-photos-parser.sh
Last active May 21, 2018 11:55
A bash script for renaming photos downloaded using Google Takeout. It assigns a sensible file name to each photo and copies it to a new location with error logs and replicated directory structure.
#!/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
@mrzapp
mrzapp / mangafox-downloader.sh
Last active January 19, 2017 13:06
A script for downloading manga from mangafox.me. Example usage: ./mangafox-downloader.sh -t sket_dance
#!/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