Skip to content

Instantly share code, notes, and snippets.

@JohnBat26
JohnBat26 / gist:95fda52ffb8d94c9fbc0fc69505556e0
Created December 23, 2021 14:01
markdown with russian symbols in listings
# Глава 1
Тестовый текст на русском языке. Надеюсь, что он будет нормально работать.
Не факт, конечно, но по идее проблем не должно быть.
## Подглава
Список всяких штук:
- Штука 1
@JohnBat26
JohnBat26 / gist:6c09c55980ce91904ebc02524dbc0722
Created January 18, 2021 09:16
rasa-for-botfront Dockerfile
FROM python:3.8-slim as base
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
# required by psycopg2 at build and runtime
libpq-dev \
# required for health check
curl \
&& apt-get autoremove -y
@JohnBat26
JohnBat26 / gist:7de4d11166ae0877761bb3100d7d48e4
Created January 18, 2021 09:14
docker-compose-template.yml
########################################################################
# This file is used as a template for the docker-compose.yaml file #
# you will find at the root of your project when running `botfront up` #
########################################################################
version: "3.0"
services:
botfront:
image: botfront/botfront
container_name: botfront-app
@JohnBat26
JohnBat26 / gist:c90ed5609867cdc2c673145250c3791f
Created November 23, 2020 15:55
"device or resource busy" when update k3s
kubectl describe node rnd-cloud1-master2
Name: rnd-cloud1-master2
Roles: etcd,master
Labels: beta.kubernetes.io/arch=amd64
beta.kubernetes.io/instance-type=k3s
beta.kubernetes.io/os=linux
k3s-upgrade=true
k3s.io/hostname=rnd-cloud1-master2
k3s.io/internal-ip=172.20.1.1
kubernetes.io/arch=amd64
@JohnBat26
JohnBat26 / gist:4700466f401c69ed3000237034f22e28
Created November 20, 2020 15:45
k3s + helm drupal installation: 0/7 nodes are available: 7 node(s) didn't have free ports for the requested pod ports.
kubectl describe pod svclb-mysite-drupal-9mzk4
Name: svclb-mysite-drupal-9mzk4
Namespace: drupal
Priority: 0
Node: <none>
Labels: app=svclb-mysite-drupal
controller-revision-hash=d7c8d884f
pod-template-generation=1
svccontroller.k3s.cattle.io/svcname=mysite-drupal
Annotations: <none>
@JohnBat26
JohnBat26 / gist:7e6ad47d9115eca6666f948722f2d5b9
Created June 2, 2020 13:51
alsa info Asus Zenbook 15 UX533 FTC
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.65
!!################################
!!Script ran on: Tue Jun 2 13:48:51 UTC 2020
!!Linux Distribution
!!------------------
[ 3.145656] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 3.260153] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 3.306115] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[ 3.306117] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 3.306117] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 3.306118] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 3.306119] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 3.306119] snd_hda_codec_realtek hdaudioC0D0: Headset Mic=0x19
[ 3.306120] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x12
python-matplotlib 3.1.0 Extracting
gzip -d -c /home/johnbat26/.nerves/dl/python-matplotlib/v3.1.0.tar.gz | /home/johnbat26/kingston/projects/IoT/custom_rpi3/.nerves/artifacts/custom_rpi3-portable-1.7.2/host/bin/tar --strip-components=1 -C /home/johnbat26/kingston/projects/IoT/custom_rpi3/.nerves/artifacts/custom_rpi3-portable-1.7.2/build/python-matplotlib-3.1.0 --no-same-owner -xf -
>>> python-matplotlib 3.1.0 Patching
>>> python-matplotlib 3.1.0 Configuring
>>> python-matplotlib 3.1.0 Building
(cd /home/johnbat26/kingston/projects/IoT/custom_rpi3/.nerves/artifacts/custom_rpi3-portable-1.7.2/build/python-matplotlib-3.1.0//; _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata_m_linux_arm-linux-gnueabihf" PATH="/home/johnbat26/kingston/projects/IoT/custom_rpi3/.nerves/artifacts/custom_rpi3-portable-1.7.2/host/bin:/home/johnbat26/kingston/projects/IoT/custom_rpi3/.nerves/artifacts/custom_rpi3-portable-1.7.2/host/sbin:/home/johnbat26/.asdf/shims:/home/johnbat26/.asdf/bin:/home/johnbat26/.cargo/bin:/home/johnbat26/.rvm/ge
make python-scipy
WARNING: no hash file for numpy-1.16.4.tar.gz
>>> host-python-numpyf 1.16.4 Extracting
gzip -d -c /home/johnbat26/.nerves/dl/python-numpyf/numpy-1.16.4.tar.gz | /home/johnbat26/kingston/projects/IoT/custom_rpi3/.nerves/artifacts/custom_rpi3-portable-1.7.2/host/bin/tar --strip-components=1 -C /home/johnbat26/kingston/projects/IoT/custom_rpi3/.nerves/artifacts/custom_rpi3-portable-1.7.2/build/host-python-numpyf-1.16.4 --no-same-owner -xf -
>>> host-python-numpyf 1.16.4 Patching
>>> host-python-numpyf 1.16.4 Configuring
>>> host-python-numpyf 1.16.4 Building
.....
Copying numpy.egg-info to /home/johnbat26/kingston/projects/IoT/custom_rpi3/.nerves/artifacts/custom_rpi3-portable-1.7.2/host/lib/python3.7/site-packages/numpy-1.16.4-py3.7.egg-info
################################################################################
#
# python-numpyf
#
################################################################################
PYTHON_NUMPYF_VERSION = 1.16.4
PYTHON_NUMPYF_SOURCE = numpy-$(PYTHON_NUMPYF_VERSION).tar.gz
PYTHON_NUMPYF_SITE = https://github.com/numpy/numpy/releases/download/v$(PYTHON_NUMPYF_VERSION)
PYTHON_NUMPYF_LICENSE = BSD-3-Clause