Skip to content

Instantly share code, notes, and snippets.

View UnconventionalMindset's full-sized avatar
👋
Ciao! :3

Jac UnconventionalMindset

👋
Ciao! :3
View GitHub Profile
@cemarriott
cemarriott / homeassistant-docker-venv run (diff)
Last active April 6, 2025 15:43
homeassistant-docker-venv run script diff - modifications to run as the 'core' user in Fedora CoreOS.
diff --git a/run b/run
index 970dd83..8f4b234 100755
--- a/run
+++ b/run
@@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
-USER="homeassistant"
+USER="core"
@mariusrugan
mariusrugan / build-image.yaml
Last active April 1, 2025 05:05
Gitea self-hosted runner
# Inspired by:
# https://blog.gitea.com/creating-go-actions/
# https://gitea.com/Zettat123/test-simple-go-action/src/branch/main/.gitea/workflows/call-username.yml
# https://gitea.com/actions/release-action
# https://gitea.com/gitea/runner-images
# https://github.com/vegardit/docker-gitea-act-runner
# https://github.com/catthehacker/docker_images
#
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
#!/bin/bash
# iPXE build depends
set -e
apt-get install -y liblzma-dev git build-essential
# clone iPXE
[ ! -d ./ipxe ] && git clone http://git.ipxe.org/ipxe.git
cd ipxe/src
make clean
$reboot
bash: /sbin/reboot: Input/output error
$shutdown -r now
bash: /sbin/shutdown: Input/output error
#
# if the above reboot commands doesn't work try either forced reboot or shutdown
#

Given a subscribed calendar with a url like

https://example.com/example.ics

To force Google Calendar to refresh and reload the contents right now, unsubscribe from the calendar and subscribe to a new calendar with a URL like

https://example.com/example.ics#1

Adding the anchor tag will force Google Calendar to think of it as a new calendar

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active April 19, 2025 05:22
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@mosquito
mosquito / README.md
Last active April 13, 2025 18:03
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/[email protected]. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service