The following would show a similar output if a key is already added to your agent, and you are good to go.
$ ssh-add -l
2048 d7:8e:3d:03:9c:4f:f8:9d:04:0f:11:c5:24:e1:2f:3a rsa w/o comment (RSA)
The following will show if no agent is running.
This is a script to change the sound speed in real time like for example background music in pygame.
The script generates the raw data of a sound file each time there is space in the queue. The sample will scale to the desired speed which you can modify with sound_Factor.
To play the music, you just need to get buffers from the queue and pass them to your music stream. Exemple for pygame :
# musique update
if channel.get_queue() == None:
""" | |
This gist shows how to run asyncio loop in a separate thread. | |
It could be useful if you want to mix sync and async code together. | |
Python 3.7+ | |
""" | |
import asyncio | |
from datetime import datetime | |
from threading import Thread | |
from typing import Tuple, List, Iterable |
"""Simple demo of using Flask with aiohttp via aiohttp-wsgi's | |
WSGIHandler. | |
""" | |
import asyncio | |
from aiohttp import web | |
from aiohttp_wsgi import WSGIHandler | |
from flask import Flask, render_template |
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
#define BOOST_RESULT_OF_USE_DECLTYPE | |
#include <chrono> | |
#include <thread> | |
#include <boost/mpi.hpp> | |
#include <iostream> | |
#include <sstream> | |
#include <utility> |
ansible-playbook --connection=local 127.0.0.1 playbook.yml
127.0.0.1 ansible_connection=local
#ifndef __CONSUMERPRODUCERQUEUE_H__ | |
#define __CONSUMERPRODUCERQUEUE_H__ | |
#include <queue> | |
#include <mutex> | |
#include <condition_variable> | |
/* | |
* Some references in order | |
* |
MIT License | |
Copyright (c) 2018 Oleg Yamnikov | |
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 | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |