Skip to content

Instantly share code, notes, and snippets.

View shantanoo-desai's full-sized avatar

Shan Desai shantanoo-desai

View GitHub Profile
@beriberikix
beriberikix / QEMU_cheat_sheat.md
Last active July 10, 2024 09:20
QEMU cheat sheet for the most basic setup

Create system drive

qemu-img create -f qcow2 alpine.qcow2 16G

Install image

Linux

@signed-log
signed-log / proxy_wifi.md
Created February 11, 2023 17:09
[NetworkManager] Assign proxy to a specific wifi network

Assign proxy to a specific wifi network

Step 1.

Have connected at least once to the WiFi network... obviously

Step 2.

Create a Proxy Auto-Config File

@utoddl
utoddl / av-filter
Last active July 31, 2024 18:52
Filter for "ansible-vault"ing YAML Data Values
#!/usr/bin/env python
"""Filter for "ansible-vault"ing YAML Data Values
https://gist.github.com/utoddl/66baa4154618ba1fc8ec8127483e7e89
This script allows an ansible user to pass lines of yaml data
through it to get string values vaulted and/or already-vaulted values
unvaulted, thus simplifying the maintenance of vaulted strings in
Ansible vars files and eliminating the need to vault entire files.
@dbkinghorn
dbkinghorn / user-data-server
Created September 28, 2021 21:49
Ubuntu 20.04 user-data files for autoinstall ISO
#cloud-config
autoinstall:
version: 1
refresh-installer: # start with an up-to-date installer
update: yes
interactive-sections: # Install groups listed here will wait for user input
- storage
storage: # should set the interactive default but doesn't seem to work??
layout:
name: direct
@alexellis
alexellis / kubernetes-live-show-notes.md
Last active February 16, 2021 14:52
Live show notes - “Is Kubernetes right for us?”
@Noschvie
Noschvie / docker-compose.yml
Last active October 11, 2022 08:50
Node-Red and Traefik : Configuration and Setup
version: '3.3'
services:
###############################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:latest
container_name: traefik
restart: always
@tlhakhan
tlhakhan / user-data.yml
Last active October 30, 2024 21:45
Ubuntu 20.04 example autoinstall user-data file
#cloud-config
autoinstall:
version: 1
early-commands:
- systemctl stop ssh # otherwise packer tries to connect and exceed max attempts
- hostnamectl set-hostname ubuntu-00 # update hostname even for the installer environment
- dhclient # re-register the updated hostname
network:
@gimiki
gimiki / traefik_tcp_mqtt_mosquitto_docker_compose.md
Last active July 21, 2024 20:38
Traefik Reverse Proxy - Mosquitto MQTT Broker - Docker Container

This gist is to configure a Mosquitto MQTT Broker behind a Traefik reverse-proxy, both in a docker container. Mosquitto will be configuread as a TCP Service.

This is a simple configuration used on the same single server. Probably to be adapted for other cases. Having mosquitto behind a reverse proxy enables you to configure TLS on Traefik (likely you already do that for other applications as well) and to load balance different MQTT instances, but that goes beyond this gist.

As noted in Traefik docs, in the router you must use the rule HostSNI(`*`) when using non-TLS routers like in this example. Ref. https://docs.traefik.io/routing/routers/#rule_1

docker-compose.yml

@ismail0352
ismail0352 / Dockerfile.deb_rpm_nginx
Last active May 26, 2024 10:49
Creating your own .deb file repo and host it using Nginx container with "autoindex on;"
FROM ubuntu as ubuntu
RUN apt-get update
RUN apt-get install -y dpkg-dev wget gnupg2 curl
ARG ubuntu_packages="wget htop default-jre-headless apt-transport-https nvidia-container-toolkit cuda-drivers libopengl0 linux-image-extra-virtual omnisci"
WORKDIR /opt/packages/deb
# Nvidia-Docker
@doino-gretchenliev
doino-gretchenliev / README.md
Last active October 12, 2022 16:01
Node-RED Radius custom authentication and authorization. #node-red #nodered #radius #authentication #javascript

Node-RED Radius custom authentication and authorization

Requirements

Installation

  1. Save user-authentication.js to <node-red>/user-authentication.js.
  2. Add the following line to setting.js: