This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
//File vendor/symfony/symfony/src/Symfony/Component/Console | |
<?php | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. |
var request = require('request').defaults({encoding: null}); | |
var imgUrl = 'URL_OF_IMG'; | |
request.get(imgUrl, function (error, rep, body) { | |
var data = ''; | |
if (!error && rep.statusCode === 200) { | |
data = 'data:' + rep.headers['content-type'] + ';base64,' + new Buffer(body).toString('base64'); | |
} | |
// Do something with data | |
}); |
# 1) Create your private key (any password will do, we remove it below) | |
$ cd ~/.ssh | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
########################################################################### | |
# db_mysql.sql rlm_sql - FreeRADIUS SQL Module # | |
# # | |
# Database schema for MySQL rlm_sql module # | |
# # | |
# To load: # | |
# mysql -uroot -prootpass radius < db_mysql.sql # | |
# # | |
# Mike Machado <[email protected]> # | |
########################################################################### |
$ composer config --global repo.packagist composer https://packagist.org |
# Change elasticsearch image | |
export ELASTICSEARCH_IMAGE="elasticsearch" | |
export ELASTICSEARCH_IMAGE_VERSION="5.6.6" | |
# set vm.max_map_count=262144 in /etc/sysctl.conf permanently | |
$ grep vm.max_map_count /etc/sysctl.conf | |
vm.max_map_count=262144 | |
# To apply the setting on a live system type: | |
$ sysctl -w vm.max_map_count=262144 |
php -d suhosin.executor.include.whitelist=phar composer install | |
php -d suhosin.executor.include.whitelist=phar -d memory_limit=-1 composer install |
{ | |
"version": "2020-12-19T12:41:30.720Z", | |
"data": { | |
"Maths": [ | |
{ | |
"name": "Triangles", | |
"TDS": [ | |
{ | |
"name": "Nombres réels", | |
"video": { |