Skip to content

Instantly share code, notes, and snippets.

The Industrial Revolution and its consequences have been a disaster


The Industrial Revolution and its consequences have been a disaster
View GitHub Profile
Morelcia /
Last active Apr 8, 2021
Guide how to install Devuan on Orange Pi One

How to install Devuan or almost anything Debian based on Orange Pi PC/One/Lite/Whatever

sdcard will only have one partition - / aka rootfs. We will borrow kernel, device trees, u-boot, headers and few scripts from Armbian project, so we won't have to compile anything.

You can setup separate /boot partition and encrypted LVM if you want. This guide will only cover first case, but if you want to try encryption you should know these kernel cmdline arguments.

Morelcia /
Last active Mar 20, 2021
Guide how to setup Nextcloud + PostgreSQL + Redis on rootless Podman pod + nginx on host.

Nextcloud on Podman.

Hi! In this guide we will setup NextCloud that will run on rootless Podman pod. Guide has been tested on Debian 11 Bullseye which hasn't released yet. There might be differences especially in Podman commands if you are using older distro.

Installing Podman, Nginx and Certbot.

sudo apt update
sudo apt install podman nginx python3-certbot

Don't use certbot nginx integration because it clutters nginx config and won't work with VPN setup if you want to use it.

Morelcia / .zshrc
Created Mar 11, 2021
modified luke smith zshrc that i use
View .zshrc
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors # Load colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
setopt autocd # Automatically cd into typed directory.
stty stop undef # Disable ctrl-s to freeze terminal.
setopt interactive_comments
# History in cache directory:
View nftables
#!/usr/sbin/nft -f
# Hook order is: ingress -> prerouting -> input/output/forward -> postrouting
# Start by flushing all the rules.
flush ruleset
# Defining variables is easy in nftables scripts.
define wan = eth0
define vpn = wg0
Morelcia / NextcloudBackupToSwift.service
Last active Dec 17, 2020
My shitty Nextcloud backup script. Can be used as systemd service triggered by timer every day.
View NextcloudBackupToSwift.service
ExecStart=/bin/bash /root/backup/
Morelcia / roomservice.xml
Last active Aug 18, 2020
roomservice.xml to build POSP with QS patch for ginkgo
View roomservice.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="Natalcia/device_xiaomi_ginkgo" path="device/xiaomi/ginkgo" remote="github" revision="pospQ" />
<project name="Natalcia/vendor_xiaomi_ginkgo" path="vendor/xiaomi/ginkgo" remote="github" revision="10.0" />
<project name="Natalcia/kernel_xiaomi_ginkgo" path="kernel/xiaomi/ginkgo" remote="github" revision="10.0" />
<project name="Natalcia/vendor_miuicamera" path="vendor/miuicamera" remote="github" revision="10.0" />
<remove-project name="android_hardware_qcom_display" />
<project name="Natalcia/hardware_qcom-caf_sm8150_display" path="hardware/qcom-caf/sm8150/display" remote="github" revision="ten" />
<remove-project name="frameworks_base" />
<project name="Natalcia/natposp_frameworks_base" path="frameworks/base" remote="github" revision="croquette-release" />