ffmpeg -f avfoundation -framerate 30 -s "640x480" -i "0" -c:v rawvideo -pix_fmt rgb24 -f caca -s "640x480" output4.mp4
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libcaca
ffmpeg -i vitrine.mp4 -vf scale=1024:-1 -q:vscale 0 vitrine.avi
| // In this version of the cache, we're going to use an internal object with a null | |
| // prototype and then assume that no user-provided cache keys will ever conflict with | |
| // native keys. | |
| function SafeCache() { | |
| var cache = Object.create( null ); | |
| // Reveal the public API. | |
| return({ | |
| get: get, |
ffmpeg -f avfoundation -framerate 30 -s "640x480" -i "0" -c:v rawvideo -pix_fmt rgb24 -f caca -s "640x480" output4.mp4
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libcaca
ffmpeg -i vitrine.mp4 -vf scale=1024:-1 -q:vscale 0 vitrine.avi
| #!/bin/sh | |
| STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$") | |
| if [[ "$STAGED_FILES" = "" ]]; then | |
| exit 0 | |
| fi | |
| PASS=true |
| #!/bin/bash | |
| if [ "$GIT_SSH_KEY" != "" ]; then | |
| echo "Cleaning up SSH config" >&1 | |
| echo "" >&1 | |
| # Now that npm has finished running, | |
| # we shouldn't need the ssh key/config anymore. | |
| # Remove the files that we created. | |
| rm -f ~/.ssh/config | |
| rm -f ~/.ssh/deploy_key |
Dockerfile that is based on your production image and
simply install xdebug into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
| <?php | |
| namespace Acme\Serializer\Normalizer; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| use Doctrine\Common\Collections\Collection; | |
| use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; | |
| use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | |
| use Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer; |
Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.
These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.
Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following
| # Install QEMU OSX port with ARM support | |
| sudo port install qemu +target_arm | |
| export QEMU=$(which qemu-system-arm) | |
| # Dowload kernel and export location | |
| curl -OL \ | |
| https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
| export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
| # Download filesystem and export location |
| #!/bin/bash | |
| #================================================================ | |
| # Let's Encrypt renewal script for Apache on Ubuntu/Debian | |
| # @author Erika Heidi<[email protected]> | |
| # Usage: ./le-renew.sh [base-domain-name] | |
| # More info: http://do.co/1mbVihI | |
| #================================================================ | |
| domain=$1 | |
| le_path='/opt/letsencrypt' | |
| le_conf='/etc/letsencrypt' |