This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::{mem, pin::Pin}; | |
| use futures::task::{Context, Poll}; | |
| use futures::future::poll_fn; | |
| use pin_project_lite::pin_project; | |
| use tokio::io::AsyncBufRead; | |
| use crate::utils::misc::sha256sum_data; | |
| use futures::Stream; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub async fn spawn_heavy<F, R>(func: F) -> Result<R, oneshot::error::RecvError> | |
| where | |
| R: Send + 'static, | |
| F: FnOnce() -> R + Send + 'static, | |
| { | |
| let (tx, rx) = oneshot::channel(); | |
| rayon::spawn_fifo(|| { | |
| if tx.send(func()).is_err() { | |
| debug!("Unable to return heavy result."); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \version "2.19.83" | |
| \header { | |
| title = "Pentatonic Doubling Exercise" | |
| instrument = "Bass Guitar" | |
| } | |
| harmonies = \chordmode { | |
| f1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MDMP�� P1�_�� 8�:Dp����8`�gG� �gGk@OgG2�SgGk�SgG�Xf gG�g | |
| gG(@� | |
| h��=0���`�`��=`���0��0�=Џ�0�8j�9��X�0��l��@`��� | |
| 5XT`��{ 5X@�j��`��� | |
| 5X�e��@h | |
| 5X1������0���-��`��|�]XXq��l��`�����W���W����De������&�����W���W�U��De��+y��l���X�X(2��@2��������X���X@2��t1���������W���W��%�r�Z�lEll��Ĥ X�� X(2��Ϝ���� Xl��9��l��Ĥ X�� Xl���=���� X9:��l��l��η���� X3��L2��3��l������`�Xj�9l� X���W�V��@2��������Xj�90�����W������W���W���W������X����2��j�9������%�3�����������X��%�Ϝ���X+�������V�X����3����%��X���%�3����%���%���3��3����%�j�9��%�0��0A4X0A4Xj"�Ю��k�"�XMPΑ�Ү��k�"�j�9������%���%�ͯ�ۮ��}�"���%���%�e��ۮ��}�"�������%�Q��%�Q���e�� ��?X�4��5��P4��+����5��Q��X5��0X��4���JP�fKU�hRR�gPQ�iL��oX��`�����9����% | |
| ���� ������"��"�`;��:����"���"�\;������ ����^���Z����;�����5��,}��`��c���b:Xc:X� |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name of display: :0 | |
| display: :0 screen: 0 | |
| direct rendering: Yes | |
| server glx vendor string: NVIDIA Corporation | |
| server glx version string: 1.4 | |
| server glx extensions: | |
| GLX_ARB_context_flush_control, GLX_ARB_create_context, | |
| GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile, | |
| GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, | |
| GLX_ARB_multisample, GLX_EXT_buffer_age, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MDMP�� ���_�� 8�*Dp����8`�gG� �gGd@?gG2�CgGk�CgG�PV gG�W | |
| gG(� | |
| 8�����p`�`r����0u�0��Џ�0��(��,�iH���,�0�&����W���Wj�(�����kk)�XMP������kk)�iH��;����,���,��O�����}k)���,���,�ek&�����}k)������,�Q��,�Q��%�e�E'����W�������P���+�������Q��W���pG�W������JP�fKU�hRR�gPQ�iL��oX��`����������, | |
| ���� �����o)�o)�`�������o)��o)�\������� ����^ӑ�Zӑ�����0������,���������x��W���W�s������<������W @�� ��W��� ��W��t�������������٨�����W ��.������W ���W @�� ��Wx��Wl���,���������x��W���W٨�����W ���W @�� ��W��� ��W��`�ߜ���\�x������WFFU]d��W@���ny���,���������x��W���W���x��Wԥ�W� | |
| �WD@�� ��W���y���,���������x��W���W���x��W���W���W<@�� ��W��� ��W��4�������������٨�����W<٨��DH���W<,���������x��W���Wx��W���W @�� ��W��� ��W��ԥ������������٨��,���������x��W���W���W ���W @�� ��W��� ��W��D�������������٨�����W ���WI ��W���W ,���������x��W���W�������W @�� ��W��� ��W��Ԧ������������٨�����W J���W ���W ��W����x��W̦��������H���% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MDMP�� D�_d�H7�4x����8X�gG��gGn8gG2�gGk�gG�P1 gG2 | |
| gG(�~ | |
| ��*P���0�0��*�����@=@>@?@�P������R��xD@�P���R����O��yx�A`uz`S��hT��_9���P��yaS�����������m��Pp��@s�� v���x���{�����������@�����`������1X`XPX@X��X��X��X�X@�X��X0�"X �"X`�"X��"XP"X� X`#X`�X�X`�#X��#X��#X�X��X0�X�X@X@XP | |
| X�XpX��XP�X��Xp�X�_X�bXeX�gX0jX�.X`1X�3X�6X9X�;X0>X�@X��X@�X��X`�X��X��XX�X0X�X0$#X�&#Xp)#X�X��X�X��X��X��X�X��#X`�#Xp�#X@�#X��#X�#X �#X0�#X��#X��#X��#X��#X/home/andrew/.local/share/Steam/ubuntu12_32/steamX0OX RX�UX�RX��X@|X0^X X�X06X��5XX��JX�0X���\����z��P&X�S��\��@���D2XT���y�0X@������� |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| METADATA block #0 | |
| type: 0 (STREAMINFO) | |
| is last: false | |
| length: 34 | |
| minimum blocksize: 4096 samples | |
| maximum blocksize: 4096 samples | |
| minimum framesize: 14 bytes | |
| maximum framesize: 10872 bytes | |
| sample_rate: 44100 Hz | |
| channels: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -ex | |
| # back up the world, skipping if too many people are online | |
| # triggered by user crontab | |
| cd "$(dirname "$0")" | |
| # where to store backups |