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 | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get install pkg-config libmagickwand-dev -y | |
cd /tmp | |
wget https://pecl.php.net/get/imagick-3.4.4.tgz | |
tar xvzf imagick-3.4.4.tgz |
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
#define SPI_INSTANCE 1 /**< SPI instance index. */ | |
#define BUFF_LENGTH 2 /**< Transfer length. */ | |
static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(SPI_INSTANCE); /**< SPI instance. */ | |
static uint8_t m_tx_buf[BUFF_LENGTH]; /**< TX buffer. */ | |
static uint8_t m_rx_buf[BUFF_LENGTH]; /**< RX buffer. */ | |
static volatile bool burst_completed = false; | |
static volatile bool spi_xfer_done = false; /**< Flag used to indicate that SPI instance completed the transfer. */ |
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
#!/usr/bin/perl -w | |
# svg-to-dxf.pl - convert SVG files to DXF files on Mac OS X | |
# by Patrick Pelletier, public domain (or cc0) | |
# based on the commands suggested here: | |
# https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_2D_formats | |
# assumes Inkscape.app is installed in /Applications | |
# and pstoedit is installed in PATH, such as via "brew install pstoedit" | |
use Cwd qw(abs_path); |
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
<?php | |
namespace AppBundle\DQL; | |
use Doctrine\ORM\Query\Lexer; | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
/** | |
* FromUnixtimeFunction ::= | |
* "unix_timestamp" "(" ArithmeticPrimary "," ArithmeticPrimary ")" |
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 | |
# | |
# Diffusion youtube avec ffmpeg | |
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
VBR="2500k" # Bitrate de la vidéo en sortie | |
FPS="30" # FPS de la vidéo en sortie | |
QUAL="medium" # Preset de qualité FFMPEG | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |