Skip to content

Instantly share code, notes, and snippets.

View jasuarez's full-sized avatar

Juan A. Suárez Romero jasuarez

View GitHub Profile
@jasuarez
jasuarez / 20-wired.network
Created January 25, 2024 09:56
Enable "lan" custom domain for devices in "Shared Connection"
# /etc/systemd/network/20-wired.network
[Match]
Name=enp0*
MACAddress="10.42.0.1"
[Network]
DNS=10.42.0.1
Domains=lan
@jasuarez
jasuarez / borgmatic.service
Created April 26, 2021 11:10
Systemd's timer to run daily (borgmatic-based) home backups
# ~/.config/systemd/user/borgmatic.service
[Unit]
Description=Borgmatic Backup
Wants=network-online.target
After=network-online.target
ConditionACPower=true
[Service]
Type=oneshot
@jasuarez
jasuarez / orgfiles.prf
Created April 26, 2021 10:59
Systemd timer to synchronize my orgfiles against a (nextcloud) server
# Unison preferences
# ~/.unison/orgfiles.prf
# This file is actually a link to the real file located in the NextCloud server.
# So when the cloud folder is mounted, the file is available
label = Sync Orgfiles with Nextcloud
root = /home/jasuarez/Misc/orgfiles
root = /run/user/1000/gvfs/dav:host=cloud.igalia.com,ssl=true,user=jasuarez,prefix=%2Fremote.php%2Fwebdav/OrgFiles
dontchmod = true
perms = 0
@jasuarez
jasuarez / Makefile
Last active November 13, 2023 08:50
Makefile to crosscompile and install Raspberry Pi kernel
.EXPORT_ALL_VARIABLES:
# User-defined paramers (default is building 32-bit kernel for rpi 3)
ver = 32
rpi = 3
dest = raspberrypi-wb.local
KERNEL_VER_1_32 = ""
KERNEL_VER_2_32 = 7
KERNEL_VER_3_32 = 7

Keybase proof

I hereby claim:

  • I am jasuarez on github.
  • I am jasuarez (https://keybase.io/jasuarez) on keybase.
  • I have a public key whose fingerprint is A5CC 9FEC 93F2 F837 CB04 4912 3369 09B6 B25F ADFA

To claim this, I am signing this object:

<?xml version="1.0"?><!--*- mode: nxml; indent-tabs-mode: nil -*-->
<!DOCTYPE moduleset SYSTEM "moduleset.dtd">
<?xml-stylesheet type="text/xsl" href="moduleset.xsl"?>
<!-- vim:set ts=2 expandtab: -->
<moduleset>
<repository type="git" name="freedesktop"
href="git://anongit.freedesktop.org/"/>
<repository type="git" name="github"
href="git://github.com/"/>