Skip to content

Instantly share code, notes, and snippets.

View arvati's full-sized avatar
💭
Studying online

Ademar Arvati arvati

💭
Studying online
View GitHub Profile
@arvati
arvati / .pacman_on_gitbash.md
Last active May 8, 2023 16:43
Install pacman into git-bash manually

Instalar 7zip para windows
Abrir teminal com direitos de administrador
lista de pacotes disponiveis

cd ~/Downloads/
curl -O https://repo.msys2.org/msys/x86_64/xz-5.2.5-1-x86_64.pkg.tar.xz
curl -O https://repo.msys2.org/msys/x86_64/xz-5.2.6-1-x86_64.pkg.tar.zst
curl -O https://repo.msys2.org/msys/x86_64/liblzma-5.2.5-1-x86_64.pkg.tar.xz
@arvati
arvati / Docker Compose Service.md
Last active August 7, 2022 03:33
Docker Compose Omada Controller
# /etc/systemd/system/docker-compose-app.service

[Unit]
Description=Docker Compose Application Service
Requires=docker.service
After=docker.service

[Service]
Type=oneshot
did:3:kjzl6cwe1jw14a8uqxtxz01cyhcnx7vl4r5ti0tg68158jnefcxb5qqws872hqw

Install LXC Container with Debian on LXC container in OpenWrt

Config LXC Containers

Config fstab btrfs subvolume /containers to hold all LXC Containers
nano /etc/config/fstab

config mount 'lxc'
        option target '/srv/lxc'
        option uuid '68706ead-a626-4209-b3d0-1187b835f803'
        option fstype 'btrfs'
	option btrfs_raid '1'
@arvati
arvati / Create LXC container with Alpine for sound hacks in Openwrt.md
Last active March 20, 2022 21:53
Create LXC container with Alpine for sound hacks in Openwrt

Create Alpine LXC container in OpenWrt

Config LXC Containers

Config fstab btrfs subvolume /containers to hold all LXC Containers
nano /etc/config/fstab

config mount 'lxc'
        option target '/srv/lxc'
        option uuid '68706ead-a626-4209-b3d0-1187b835f803'
        option fstype 'btrfs'
	option btrfs_raid '1'
wsl ~ -d Alpine
sudo nano /etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
@arvati
arvati / .pass_on_gitbash.md
Last active November 30, 2024 20:50
Install pass and rsync into git-bash manually

Instalar 7zip para windows
Abrir teminal com direitos de administrador
lista de pacotes disponiveis

cd ~/Downloads/
curl -O https://repo.msys2.org/msys/x86_64/xz-5.6.2-1-x86_64.pkg.tar.zst
curl -O https://repo.msys2.org/msys/x86_64/liblzma-5.6.2-1-x86_64.pkg.tar.zst
curl -O https://repo.msys2.org/msys/x86_64/libzstd-1.5.6-1-x86_64.pkg.tar.zst
@arvati
arvati / .syslog-ng.md
Last active February 26, 2022 08:59 — forked from mbernson/README.md
Publish openwrt log contents to MQTT

Router logging to MQTT

This configuration sends all (or part of) your OpenWRT logs to a MQTT broker. I'm writing it up here for future reference.

I made this so I can keep track of wireless clients as they associate and disassociate with my home network. This way, my home automation setup can make decisions based on that information. :)

Installation

@arvati
arvati / .mosquitto.md
Last active November 26, 2022 10:49
Config mosquitto openwrt mqtt broker
opkg update
Collected errors:
 * opkg_conf_load: Could not lock /var/lock/opkg.lock: Resource temporarily unavailable.
echo "nameserver 8.8.8.8">/tmp/resolv.conf
rm -f /var/lock/opkg.lock