Skip to content

Instantly share code, notes, and snippets.

@extremecoders-re
extremecoders-re / android-emulator-lxd.md
Last active July 8, 2025 10:04
Running android emulator in a LXD container on a headless server with KVM accleration

Android Emulator in LXD

lxc init ubuntu:24.04 -c security.nesting=true android-emulator
lxc config device add android-emulator port5555 proxy listen=tcp:10.0.0.1:5555 connect=tcp:127.0.0.1:5555
lxc config device add android-emulator kvm unix-char source=/dev/kvm
lxc config device add android-emulator vhost-net unix-char source=/dev/vhost-net
lxc config device add android-emulator vhost-vsock unix-char source=/dev/vhost-vsock
lxc start android-emulator
#!/usr/bin/env python
import json
import requests
import urllib3
urllib3.disable_warnings()
cookie = open("cookie.txt").readline().strip()
csrf_token = [x.split("=") for x in cookie.split(";") if "csrf" in x][0][1]
@juancsr
juancsr / mac-docker-withot-docker-destop.md
Last active November 11, 2025 18:32
Use docker in mac without docker-
@mwolter805
mwolter805 / create_group.yaml
Last active November 11, 2025 15:37
Home Assistant Blueprint: Create a group with either dynamic or with static members.
blueprint:
name: Create Group
description: |
# Create Group Blueprint
This blueprint creates a group with either static or dynamic members.
It has two main functions to add members
- Dynamically include multiple members based on a common string in their object ID's. (```Dynamic Include List```)
- Or statically add individual members. (```Static Entities To Add```)
@emorydunn
emorydunn / led_strip_1.yaml
Last active June 9, 2025 22:21
Sonoff L1 ESPHome Component
esphome:
name: led_strip_1
platform: ESP8266
board: esp8285
includes:
- custom_components/sonoff_l1.h
wifi:
@karoltheguy
karoltheguy / Program.cs
Last active February 1, 2017 19:08
Start Citrix Session with reference wfica.ocx(not embedded interop)
using System;
using System.Threading;
using WFICALib;
class Program
{
public static AutoResetEvent onLogonResetEvent = null;
/// This program demo's the basic of launching and ICO session from within an application.
static void Main(string[] args)
@stormoz
stormoz / install.bat
Last active February 10, 2022 08:57
Start Selenium Grid hub and nodes as Windows services
nssm install SeleniumHub java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role hub
nssm start SeleniumHub
nssm install SeleniumNode1 java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role node -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=C:\Selenium\chromedriver.exe
nssm set SeleniumNode1 DependOnService SeleniumHub
nssm start SeleniumNode1
nssm install SeleniumNode2 java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role node -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=C:\Selenium\chromedriver.exe
nssm set SeleniumNode2 DependOnService SeleniumHub
nssm start SeleniumNode2
@feklee
feklee / README.md
Last active April 24, 2019 16:38
Notes and experiments concerning HTML5 streaming, with an emphasis on live streaming

Introduction

Collection of solutions for streaming via DASH, Dynamic Adaptive Streaming over HTTP, as of November 2014.

Recommended client: Chrome 38

Tool used for encoding live streams: FFmpeg

@koola
koola / selenium_node_install.bat
Last active January 8, 2024 16:55
Install Selenium grid node as a windows service
@echo off
powershell.exe -executionpolicy unrestricted -command "%~dp0\selenium_node_install.ps1 -nodes ie -hub 192.168.1.1"
REM powershell.exe -executionpolicy unrestricted -command "%~dp0\selenium_node_install.ps1 -nodes ie,chrome -hub 192.168.1.1"
REM powershell.exe -executionpolicy unrestricted -command "%~dp0\selenium_node_install.ps1 -nodes ie,chrome,firefox -hub 192.168.1.1"
pause