docker stop $(docker ps -qa) && docker rm $(docker ps -qa) && docker rmi -f $(docker images -qa) && docker volume rm $(docker volume ls -q) && docker network rm $(docker network ls -q)| <?php | |
| define('_JEXEC', 1); | |
| // Connect with Joomla | |
| define('JPATH_BASE', __DIR__); | |
| require_once JPATH_BASE . '/includes/defines.php'; | |
| require_once JPATH_BASE . '/includes/framework.php'; | |
| // Database connection | |
| $db = JFactory::getDBO(); |
| <?php | |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) Ozgur (Ozzy) Giritli <ozgur@zeronights.com> | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
| #!/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 \ |
| <?php | |
| /** | |
| * Front end controller for OC app | |
| * | |
| * @package OC | |
| * @category Controller | |
| * @author Chema <chema@open-classifieds.com> | |
| * @copyright (c) 2009-2013 Open Classifieds Team | |
| * @license GPL v3 | |
| */ |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: admin-user | |
| namespace: kube-system | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: admin-user |
Setup etcdctl using the instructions at https://github.com/etcd-io/etcd/releases/tag/v3.4.13 (changed path to /usr/local/bin):
Note: if you want to match th etcdctl binaries with the embedded k3s etcd version, please run the curl command for getting the version first and adjust ETCD_VER below accordingly:
curl -L --cacert /var/lib/rancher/k3s/server/tls/etcd/server-ca.crt --cert /var/lib/rancher/k3s/server/tls/etcd/server-client.crt --key /var/lib/rancher/k3s/server/tls/etcd/server-client.key https://127.0.0.1:2379/version
Important
THIS IS NOW OBSOLETE WITH KERNEL VERSIONS ≥ 6.7.0
A recent announcement in the kernel mail list by Cirrus developers will solve the problem described here. Therefore, the proposed solutions will be soon obsolete. See this comment (thanks, @flukejones, for the tip).
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
| 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 |
The NGINX Unit control API includes a /status endpoint for usage statistics. This is a solution for exposing these metrics in Prometheus format.
The application (run by Unit) queries the /status URI on the control socket and converts the JSON response into Prometheus text format. PHP and Python implementations are available.
These instructions assume an existing Unit installation with a working configuration. We will add a new listener on the default prometheus port (9090) and route it directly to the Prometheus app.
Step 0. Install the preferred Unit language module (unit-php or unit-python)