Skip to content

Instantly share code, notes, and snippets.

View phpclub's full-sized avatar

Alexandr Smirnov phpclub

View GitHub Profile
@phpclub
phpclub / docker-compose.yml
Created May 15, 2024 08:36 — forked from EvilFreelancer/docker-compose.yml
docker-compose with k3s server and agent
version: '3'
services:
k3s-server:
image: rancher/k3s
command: server --disable-agent
environment:
K3S_KUBECONFIG_OUTPUT: /output/kubeconfig.yaml
volumes:
- ./k3s-server:/var/lib/rancher/k3s
- ./kubeconfig.yaml:/output/kubeconfig.yaml
@phpclub
phpclub / cs35l41_spi.md
Created May 25, 2023 14:12 — forked from lamperez/cs35l41_spi.md
CS35L41 amplifiers in an ASUS Zenbook on linux

Asus Zenbook UX3402 speakers on Linux

I got the speakers working on my Asus Zenbook 14 OLED UX3402, the one with Intel CPU and the two CS35L41 audio amplifiers connected over SPI (not the UM3402YA, with AMD and I²C). The amplifiers are supported by the snd_hda_scodec_cs35l41 module in recent kernel versions, but they require some model-specific configuration paramaters, that should be provided by the BIOS, via ACPI. Of course, they are missing. It seems that the Windows drivers have those parameters somehow hardcoded, instead of using ACPI (bad idea, but who am I to criticise). Since Asus has been nasty and refused/was not able to update the BIOS with the missing data, I have patched the ACPI tables myself.

Warning
As stated by Cirrus developers, if you try this there is a non-zero (low, I hope) possibility of

@phpclub
phpclub / phalconphp_php7_ubuntu_16_04.sh
Created June 29, 2016 10:30 — forked from Tosyn/phalconphp_php7_ubuntu_16_04.sh
PhalconPhp with PHP7 Installation on Ubuntu 16.04
#!/bin/bash
# PhalconPhp with PHP7 installation on ubuntu:16.04
sudo apt-get update
sudo apt-get install -y php7.0-fpm \
php7.0-cli \
php7.0-curl \
php7.0-gd \
[INFO] Using following parameters for creating project from Archetype: webdriver-java-quickstart-archetype:0.7
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: ru.st.selenium
[INFO] Parameter: artifactId, Value: traninng
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: ru.st.selenium
[INFO] Parameter: packageInPathFormat, Value: ru/st/selenium
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: ru.st.selenium
[INFO] Parameter: groupId, Value: ru.st.selenium