Skip to content

Instantly share code, notes, and snippets.

View miooochi's full-sized avatar
🧬
Linux DNA.

kev miooochi

🧬
Linux DNA.
  • /dev/null
View GitHub Profile
@miooochi
miooochi / auto-artifact-export.yml
Last active March 19, 2024 01:20
mosdns-v5 config template
---
- name: Update dat files
hosts: all
become: yes
vars:
- base_path: /etc/mosdns
- restart_daemon: yes
- daemon_service_name: mosdns
- clean_up_after: yes
@miooochi
miooochi / qnap_emby_nvidia.md
Last active January 30, 2024 15:57
Some hacks around using NVIDIA GPU for Emby Container with QNAP

Hacks

Some hacks around using NVIDIA GPU for Emby Container with QNAP

Make sure you have NVIDIA driver installed already

Check NVIDIA Driver Path

find /share/ -name "NVIDIA_GPU_DRV"
@miooochi
miooochi / Dockerfile
Last active February 11, 2023 13:48
AWS Lambda + Serverless Framework Demo
ARG FUNCTION_DIR="/function"
### Production Stage ###
FROM python:slim-bullseye as staging-image
# Include global args in this stage of the build
ARG FUNCTION_DIR
# Set working directory to function root
WORKDIR ${FUNCTION_DIR}
@miooochi
miooochi / pve-trick-sriov-vf-configuration
Last active February 1, 2024 10:46
Enable SR-IOV VF on Proxmox 7+
# The following is a step-by-step example for enabling SR-IOV VF on Promxox 7+ with BCM57810 10G NIC
---
References
https://forum.proxmox.com/threads/enabling-sr-iov-for-intel-nic-x550-t2-on-proxmox-6.56677/
https://zhuanlan.zhihu.com/p/91197211
https://zhuanlan.zhihu.com/p/356437308
https://zhiliao.h3c.com/Theme/details/24770
https://blog.csdn.net/Jackykxy/article/details/120585563

RouterOS

SSH Configuration

$ ssh admin@router
[user@router] > /file print file=mykey;
[user@router] > /file set mykey contents="copy and paste contents of ~/.ssh/id_rsa.pub here";
[user@router] > /user ssh-keys import public-key-file=mykey.txt
[user@router] > /ip ssh set always-allow-password-login=yes"
@miooochi
miooochi / cilium_writeup.md
Created October 3, 2022 02:03
Cilium Writeup

Cilium WriteUp

@miooochi
miooochi / ansible_regex_example.yml
Last active February 17, 2023 15:58 — forked from erbrito/regex_test.yml
Ansible example to use regex_search filter.
---
## References
# - https://stackoverflow.com/questions/61598412/regex-after-matched-string-and-white-space-in-ansible
# - https://stackoverflow.com/questions/69475907/extract-a-substring-from-a-variable-in-ansible
## Example of use of filter regex_search
- hosts: localhost
remote_user: root
@miooochi
miooochi / freshrss-deploy.md
Last active August 26, 2022 11:44
FreshRSS Deployment

FreshRSS Deployment

Docker-Compose

mkdir -p /etc/freshrss
# docker-compose.yml
@miooochi
miooochi / README.md
Last active August 24, 2022 12:39
mosdns deployment

mosdns deployment

@miooochi
miooochi / vaultwarden-deploy.md
Last active August 22, 2022 16:48
Vaultwarden Deployment

Vaultwarden Deployment with Docker-Compose

Prerequisites

Install Docker and Docker-Compose if you have not done so

# Install Docker
$ sudo wget -qO- https://get.docker.com/ | sh
$ sudo usermod -aG docker $USER