Skip to content

Instantly share code, notes, and snippets.

@NorkzYT
NorkzYT / proxmox-lxc-cifs-share.sh
Last active July 7, 2024 03:51
Proxmox CIFS Share Mount Wizard Script
#!/bin/bash
# This script is designed to assist in mounting CIFS/SMB shares to a Proxmox LXC container.
# It automates the process of creating a mount point on the Proxmox VE (PVE) host, adding the
# CIFS share to the /etc/fstab for persistent mounts, and configuring the LXC container to
# recognize the share. This script is intended for use on a Proxmox Virtual Environment and
# requires an LXC container to be specified that will access the mounted share.
#
# Prerequisites:
# - Proxmox Virtual Environment setup.
@pepitooo
pepitooo / sensors2hass.py
Created May 4, 2021 10:02
Post lm-sensor to HASS
#!/usr/bin/env python3
import argparse
import subprocess
import json
import sys
from urllib import parse
from requests import post
@thrnz
thrnz / Dockerfile
Created September 15, 2020 04:18
Helper container to pass forwarded port to Deluge
FROM alpine:latest
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/main/" >> /etc/apk/repositories && \
apk add --no-cache bash deluge
ADD pia-port.sh /scripts/pia-port.sh
RUN chmod +x /scripts/*.sh
CMD ["/scripts/pia-port.sh"]
@ericgcollyer
ericgcollyer / 192.168.1.1 Config
Created July 13, 2018 00:49
Configuration of my router with local ip 192.168.1.1
firewall {
all-ping enable
broadcast-ping disable
ipv6-name WANv6_IN {
default-action drop
description "WAN inbound traffic forwarded to LAN"
rule 10 {
action accept
description "Allow established/related"
state {
@Hengjie
Hengjie / tutorial.md
Last active July 22, 2024 18:07
How to passthrough SATA drives directly on VMWare ESXI 6.5 as RDMs

How to passthrough SATA drives directly on VMWare EXSI 6.5 as RDMs

There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.

A word about VMWare ESXI 6.7

There is now an option while editing your VM's settings to add a New raw disk when you click `Add ha

#include <windows.h>
void SetWindowBlur(HWND hWnd)
{
const HINSTANCE hModule = LoadLibrary(TEXT("user32.dll"));
if (hModule)
{
@wassupdoc
wassupdoc / zone_instructions
Last active July 10, 2024 03:41
Zone settings for edgerouter
#based on http://www.forshee.me/2016/03/02/ubiquiti-edgerouter-lite-setup-part-2-firewall-setup.html
configure
edit firewall name allow-est-drop-inv
set default-action drop
set enable-default-log
set rule 1 action accept
set rule 1 state established enable
set rule 1 state related enable
set rule 2 action drop
@catchdave
catchdave / install_pia_vpn.sh
Last active December 28, 2022 03:21
CLI script to install Private Internet Access VPN on a ubuntu server
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
set -o nounset
set -o errexit
error_exit()
@stevejenkins
stevejenkins / EdgeMax-Google-TV.sh
Last active April 24, 2019 14:50
Additional script for Google Fiber TV customers to run on their EdgeRouter, after running the initial EdgeMax-Google.sh script, to enable TV service.
# Google Fiber TV Service Additional Script
# Based on Atlantisman's TV script
# http://blog.nexusshield.com/google-fiber-ubiquitis-edgerouter/
# Edited by Steve Jenkins to work with his version of the script
#______________________TV Service Config _____________________
#Setup IGMP Proxy
configure
edit protocols igmp-proxy
set interface eth0.2 role upstream
set interface eth2 role downstream
@Zerogiven
Zerogiven / debian-bash-helper-functions.sh
Last active October 2, 2016 13:07
Functions which i need in my bash scripts but could also be nice for other ones
#!/bin/bash
# CSoellinger
######################################################
# Function Vars
APT_INSTALL="apt-get install -yqqq"
APT_UPDATE="apt-get update -yqqq"
NPM_INSTALL="npm --loglevel=silent install -g"
TEXT_DONE="DONE"
TEXT_WAITING_DOTS="... "