Skip to content

Instantly share code, notes, and snippets.

View benjivesterby's full-sized avatar
🧬
Always Building

Benji Vesterby benjivesterby

🧬
Always Building
View GitHub Profile
@benjivesterby
benjivesterby / rsacrypto.go
Created October 8, 2024 20:31 — forked from dadencukillia/rsacrypto.go
Golang rsa module with chunk encryption and decryption
// Adapted from: https://gist.github.com/miguelmota/3ea9286bd1d3c2a985b67cac4ba2130a
package rsacrypto
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"fmt"
@benjivesterby
benjivesterby / sec_news.opml
Created September 23, 2024 17:10 — forked from sathwikv143/sec_news.opml
Cyber Sec News Feeds
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>MyFeed</title>
</head>
<body>
<outline title="Blogs" text="Blogs">
<outline title="The Cloudflare Blog" type="rss" xmlUrl="https://blog.cloudflare.com/rss/" text="The Cloudflare Blog" htmlUrl="https://blog.cloudflare.com/" />
<outline xmlUrl="https://www.rossmanngroup.com/feed/" title="Rossmann Repair Group" text="Rossmann Repair Group" type="rss" htmlUrl="https://rossmanngroup.com" />
<outline text="Google Online Security Blog" type="rss" htmlUrl="http://security.googleblog.com/" xmlUrl="https://security.googleblog.com/feeds/posts/default?alt=rss" title="Google Online Security Blog" />
@benjivesterby
benjivesterby / windows_open_thermo.yaml
Created August 27, 2024 22:39
Turn off Thermostat when Windows Are Open
#ver. 1.7
blueprint:
name: HVAC Pause V1.7
description: Pauses HVAC when windows/doors open; resumes last state once closed
domain: automation
source_url: https://gist.github.com/raffy-ops/2bdf967036d8d274fb1f62572ed5e545
input:
climate_device:
description: Climate entity used for climate control.
name: Climate Device
@benjivesterby
benjivesterby / protect_doorbell.yaml
Last active August 25, 2024 22:39
UniFi Protect Doorbell Ring Notifications
blueprint:
name: UniFi Protect Doorbell Ring Notifications
domain: automation
source_url: https://raw.githubusercontent.com/AngellusMortis/unifiprotect_blueprints/main/blueprints/automation/unifiprotect/notification_ring_event.yaml
description: "## UniFi Protect Doorbell Ring Notifications\n\nThis blueprint will
send push notifications to a Home Assistant mobile app when a doorbell ring is
detected.\n\n### Required Settings\n\n - UniFi Protect Doorbell Sensor\n\n###
Optional Settings\n\n - Notification target for the [mobile app notification
target][1].\n - Cutoff time before ring event for video clips.\n - Time formatting
strings. Timestamp is injected into the notification in case the notification
@benjivesterby
benjivesterby / protect_motion.yaml
Last active August 25, 2024 22:40
UniFi Protect Motion / Smart Detection Notifications
blueprint:
name: UniFi Protect Motion / Smart Detection Notifications
domain: automation
source_url: https://raw.githubusercontent.com/AngellusMortis/unifiprotect_blueprints/main/blueprints/automation/unifiprotect/notification_smart_motion_event.yaml
description: "## UniFi Protect Motion / Smart Detection Notifications\n\nThis blueprint
will send push notifications to a Home Assistant mobile app when a camera detections
motion or a\nsmart detection.\n\n### Required Settings\n\n - UniFi Protect Detection
Sensor\n\n### Optional Settings\n\n - Notification target for the [mobile app
notification target][1].\n - Presence filter - list of mobile phones or other
entities that should be within the \"home\" zone\n - Alarm entity to check arm
@benjivesterby
benjivesterby / protect_license_plate.yaml
Last active August 25, 2024 22:40
UniFi Protect License Plate Notifications
blueprint:
name: UniFi Protect License Plate Notifications
domain: automation
source_url: https://raw.githubusercontent.com/AngellusMortis/unifiprotect_blueprints/main/blueprints/automation/unifiprotect/notification_smart_licenseplate_event.yaml
description:
"## UniFi Protect License Plate Notifications\n\nThis blueprint will
send push notifications to a Home Assistant mobile app when an AI series series
camera detects\na License Plate.\n\n### Required Settings\n\n - UniFi Protect
License Plate Sensor\n\n### Optional Settings\n\n - Notification target for the
[mobile app notification target][1].\n - Time formatting strings. Timestamp is
@benjivesterby
benjivesterby / gist:08f951988c7d4815b89a171789771f8c
Created August 4, 2024 15:46 — forked from shiritrong/gist:d85bb1e16c66d1a09896727780b4fc7c
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
Windows 7 All Online/Offline [Retail-MAK] Activation Keys
=================================================================================
. Run "Command Prompt" as Administrator
. slmgr.vbs -ipk Product Key
. slui4
=================================================================================
Windows 7 Ultimate Retail Phone Activation Keys
RHTBY-VWY6D-QJRJ9-JGQ3X-Q2289
V77DJ-CT8WB-Y3GXT-X3FBP-6F987
JC7BV-94FD2-D86PH-XRMHR-BXKDG
@benjivesterby
benjivesterby / mac-vendor.txt
Created April 7, 2024 18:14 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@benjivesterby
benjivesterby / init.vim
Created January 19, 2024 17:55
minimal vim config
"source ~/.config/nvim/bv.lua
"source ~/.config/nvim/config/quickload.vim
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'kyazdani42/nvim-web-devicons'
Plug 'morhetz/gruvbox'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-sensible'
@benjivesterby
benjivesterby / install.sh
Last active December 3, 2023 19:44
Server Environment Installer
#!/bin/bash
wd=$(pwd)
mkdir /root/bin
apt-get update
apt-get install -y git curl