Skip to content

Instantly share code, notes, and snippets.

View vadimstasiev's full-sized avatar

AName* name("Vadim"); vadimstasiev

View GitHub Profile
@SgtBatten
SgtBatten / frigate_0.11_notification.yaml
Last active December 7, 2023 20:09 — forked from hunterjm/frigate_0.10_notification.yaml
Frigate Notifications have moved
blueprint:
name: Frigate Notifications by SgtB have moved
description: |
## ANNOUNCEMENT
I have moved from this gist to a github repositry.
Please checkout https://github.com/SgtBatten/HA_blueprints for the latest versions
domain: automation
@r15ch13
r15ch13 / iommu.sh
Last active May 5, 2024 18:26
List IOMMU Groups and the connected USB Devices
#!/usr/bin/env bash
shopt -s nullglob
lastgroup=""
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
for d in $g/devices/*; do
if [ "${g##*/}" != "$lastgroup" ]; then
echo -en "Group ${g##*/}:\t"
else
echo -en "\t\t"
@Terkea
Terkea / index.js
Created March 30, 2021 22:02
ECDH and AES 256 in NODE JS
const crypto = require('crypto');
const assert = require('assert')
// THIS SECTION COVERS THE KEY GENERATION
// AND PROOFS THAT THE SHARES KEYS ARE IDENTIAL
// SOURCE: https://asecuritysite.com/encryption/js_ecdh
// DOCS: https://nodejs.org/api/crypto.html#crypto_crypto_createecdh_curvename
type = 'secp256k1';
// a list with all the curves that can be used
@kiler129
kiler129 / prevent-host-driver-in-pci-pass.md
Last active April 13, 2024 02:02
Definitely prevent stubborn devices from being bound by the host driver in PCI passthrough scenario

Scenario

You're running a KVM-based virtualization. You want to do PCI/PCIe passthrough of some device. You don't want it to attach to the host OS at all.

Your device looks like that:

00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller [8086:1c02] (rev 05)
	Subsystem: Hewlett-Packard Company 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller [103c:330d]
	Kernel driver in use: ahci
	Kernel modules: ahci
@Zeinok
Zeinok / wine-breeze-dark-theme.md
Last active May 11, 2024 08:23
Breeze Dark theme for Wine

Made possible with this reddit post.

Install

wine regedit wine-breeze-dark.reg

Uninstall (Reset Wine color scheme)

wine regedit wine-reset-theme.reg

@Beyarz
Beyarz / Dockerfile
Last active March 14, 2024 10:52 — forked from jcavat/Dockerfile
Updated version of: docker-compose with Php 7.2.6, Mysql 8.0.16, Phpmyadmin 4.8 & Apache
FROM php:7.2.6-apache
RUN docker-php-ext-install mysqli
import javax.crypto.*;
import javax.crypto.spec.SecretKeySpec;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.InvalidKeyException;
@PlatinumMaster
PlatinumMaster / archlinux-steamlink_install.sh
Last active May 25, 2022 16:07
Arch Linux chroot installation on the Steam Link.
@paulspencerwilliams
paulspencerwilliams / docker-compose.yml
Created July 25, 2017 07:53
Can't access docker hosted Samba container from local Mac
samba:
image: dperson/samba
command: -u "example1;badpass" -s "media;/media;no;no;no;example1" -p
ports:
- "139:139"
- "445:445"
volumes:
- ~/bcam/samba/media:/media
- ~/bcam/samba/usershares:/var/lib/samba/usershares