Skip to content

Instantly share code, notes, and snippets.

View Actpohomoc's full-sized avatar

ACTPO HOMOC Actpohomoc

View GitHub Profile
@Actpohomoc
Actpohomoc / autoshutdown-proxmox-ve.sh
Created August 27, 2021 10:39 — forked from peterlavelle/autoshutdown-proxmox-ve.sh
#Quick script to shutdown a laptop when AC power is no longer being supplied and the battery is low. Can optionally send an alert out via Pushover or email (Need a functioning mail server for email) Tested on Proxmox VE. Needs the following packages installed on the target server: powermgmt-base, curl, util-linux
#!/bin/bash
#Quick script to shutdown a laptop when AC power is no longer being supplied and the battery is low.
#Can optionally send an alert out via Pushover or email (Need a functioning mail server for this)
#Tested on Proxmox VE. Needs the following packages installed on the target server: powermgmt-base curl util-linux
#Set alerting method (pushover/email/off)
#a value of 'off' here will disable all alerts
#Alerting method
@Actpohomoc
Actpohomoc / proxmox-proxy
Created August 9, 2021 19:41 — forked from basoro/proxmox-proxy
Running Proxmox behind a single IP address
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.
Network configuration
Here’s how it’s done:
Create a virtual interface that serves as the gateway for your VMs:
@Actpohomoc
Actpohomoc / gist:57d53f1f26e2d9a266623dc22ee2b4e9
Created July 26, 2021 10:01 — forked from whiskerz007/gist:53c6aa5d624154bacbbc54880e1e3b2a
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
@Actpohomoc
Actpohomoc / Alarm system.md
Created December 7, 2020 16:55 — forked from MatthewFlamm/Alarm system.md
Esp32 home alarm system with home assistant and esphome

Alarm system using esp32 with esphome and home assistant

@Actpohomoc
Actpohomoc / telegram.bsl
Created August 19, 2020 11:53 — forked from PlugFox/telegram.bsl
Отправка ТабличныйДокумент в телеграм
/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/// The MIT License
///
/// Copyright (c) 2019 Plague Fox
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation the rights
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
/// copies of the Software, and to permit persons to whom the Software is
@Actpohomoc
Actpohomoc / Макет.html
Created August 19, 2020 11:30 — forked from PlugFox/Макет.html
Журнал Регистрации ➜ Телеграмм
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Журнал регистрации</title>
<style>.container{margin:0 auto;width:100%}@media only screen and (min-width:601px){.container{width:95%}}@media only screen and (min-width:993px){.container{width:90%}}.deep-orange{background-color:#ff5722!important}table,th,td{border:0}table{width:100%;display:table;border-collapse:collapse;border-spacing:0}table.striped tr{border-bottom:0}table.striped>tbody>tr:nth-child(odd){background-color:rgba(242,242,242,0.5)}table.striped>tbody>tr>td{border-radius:0}table.highlight>tbody>tr{-webkit-transition:background-color .25s ease;transition:background-color .25s ease}table.highlight>tbody>tr:hover{background-color:rgba(255,87,34,0.5)}table.centered thead tr th{text-align:center}tr{border-bottom:1px solid rgba(0,0,0,0.12)}td,th{padding:15px 5px;display:table-cell;text-align:left;vertical-align:middle;border-r
@Actpohomoc
Actpohomoc / .proxyauth
Created August 19, 2020 11:30 — forked from PlugFox/.proxyauth
Установка и настройка прокси-сервера 3proxy на Debian/Ubuntu
## addusers in this format:
#user:CL:password
##see for documentation: http://www.3proxy.ru/howtoe.asp#USERS
#
# Username
MyUser:CL:MyPassword
@Actpohomoc
Actpohomoc / manifest.json
Last active August 19, 2020 11:31 — forked from kennedyshead/abuseipdb.py
folder "abuseipdb"
{
"domain": "abuseipdb",
"name": "abuseipdb",
"documentation": "https://gist.github.com/Actpohomoc/8775869f81b11d8f53833cad1b229f3a",
"dependencies": [],
"codeowners": ["@kennedyshead"],
"requirements": []
}
@Actpohomoc
Actpohomoc / get_dns_records.py
Created September 23, 2019 07:38 — forked from akshaybabloo/get_dns_records.py
Printing all DNS records using DNSPython in Python 3
#!/usr/bin/env python
# -*- coding utf-8 -*-
#
# Copyright 2016 Akshay Raj Gollahalli
import dns.resolver
def get_records(domain):
"""