Skip to content

Instantly share code, notes, and snippets.

View mariohuq's full-sized avatar

Dmitry Kondraev mariohuq

View GitHub Profile
@mariohuq
mariohuq / howto.md
Last active November 3, 2022 19:06

Wolfram Engine + Jupyter Notebook

См. также How do I set up the Wolfram Engine?.

1 Регистрация

  1. Зарегистрируйтесь по ссылке. Можно использовать корпоративную почту.
  2. (необязательно) Подтвердите почту (на указанный вами e-mail должно прийти письмо с подтверждением).
  3. Получите бесплатную лицензию для разработчиков по ссылке.
    • Нужно отметить галочку в поле I agree to the Free Wolfram Engine for Developers Terms and Conditions of Use. и нажать на кнопку Get license.
@mariohuq
mariohuq / fix_audio
Created October 5, 2024 17:00
Fix audio on ES8336 via amixer
#!/bin/bash
# Fix audio on ES8336 via amixer
command='amixer --quiet --card 0'
loud_command='amixer --card 0'
# got these values from `amixer controls`
speaker=numid=29,iface=MIXER,name='Speaker Switch'
headphone=numid=30,iface=MIXER,name='Headphone Switch'
if # want speakers === speakers is unmute
@mariohuq
mariohuq / in_body.tex
Last active October 11, 2024 12:44
подпись к таблице по госту
Table \ref{demo-table} has a caption:
\begin{table}
\begin{center}
\caption{Your caption}
\label{demo-table}
\begin{tabular}{||c c c c||}
\hline
Col1 & Col2 & Col2 & Col3 \\ [0.5ex]
\hline\hline
1 & 6 & 87837 & 787 \\