Skip to content

Instantly share code, notes, and snippets.

@mnemocron
mnemocron / STM32HAL_printf_uart.c
Created May 17, 2018 13:48
Redirect printf() to UART on STM32 microcontroller
/* USER CODE BEGIN Includes */
#include <stdio.h>
/* USER CODE BEGIN 0 */
@iJackUA
iJackUA / ffmpeg_build.sh
Last active May 30, 2023 20:03
Build ffmpeg and all needed codecs from latets git revisions
#!/bin/bash
sudo apt-get update
sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev libmp3lame-dev libopus-dev libtheora-dev libtool libvorbis-dev libvpx-dev pkg-config texi2html yasm zlib1g-dev
# YASM
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure
<?php
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* AES implementation in PHP */
/* (c) Chris Veness 2005-2011 www.movable-type.co.uk/scripts */
/* Right of free use is granted for all commercial or non-commercial use providing this */
/* copyright notice is retainded. No warranty of any form is offered. */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
class Aes {
@jgornick
jgornick / gist:208754
Created October 12, 2009 21:14
PHP: Capture phpinfo() Output
<?php
function pinfo() {
ob_start();
phpinfo();
$data = ob_get_contents();
ob_clean();
return $data;
}