Skip to content

Instantly share code, notes, and snippets.

View xqft's full-sized avatar
💭
zk

Estéfano Bargas xqft

💭
zk
  • LambdaClass
  • Uruguay
View GitHub Profile
@kabili207
kabili207 / Rclone systemd service.md
Last active May 6, 2024 03:20
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
#!/bin/bash
SOURCE="${1/.*/}"
# Clean
rm "$SOURCE" "$SOURCE".o
# Build
z80-unknown-coff-as -z80 -g -as -gstabs+ -o "$SOURCE".o "$SOURCE".s
z80-unknown-coff-ld --oformat coff-z80 -e 0xB000 -Ttext 0xB000 -o "$SOURCE" "$SOURCE".o