Skip to content

Instantly share code, notes, and snippets.

View vadimstasiev's full-sized avatar

AName* name("Vadim"); vadimstasiev

View GitHub Profile
@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
@PlatinumMaster
PlatinumMaster / archlinux-steamlink_install.sh
Last active May 30, 2025 06:35
Arch Linux chroot installation on the Steam Link.
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;
@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
@Zeinok
Zeinok / wine-breeze-dark-theme.md
Last active December 1, 2025 09:37
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

@kiler129
kiler129 / prevent-host-driver-in-pci-pass.md
Last active October 20, 2025 16:55
Definitely prevent stubborn devices from being bound by the host driver in PCI passthrough scenario

Deprecated

The method described in this gist has been deprecated/superceeded by kiler129/early-vfio-pci-isolate tool.
It is more robust, configurable, and doesn't hack around scripts that are sometimes overwritten by system updates. The tool uses similar methods to the ones described below, but extends the capabilities by e.g. easy NVMe passthrough by S/N.

The description below has been preserved for historical context. At the time of writing, the tool above has been tested for ~6 months across multiple systems.




@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
@r15ch13
r15ch13 / iommu.sh
Last active November 23, 2025 17:10
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"
@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