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:
require_once('vendor/autoload.php'); | |
$token = "sk_sandbox_WNxERQEilcpD-fYboNG2-Twy"; | |
\FedaPay\FedaPay::setApiKey($token); | |
\FedaPay\FedaPay::setEnvironment('sandbox'); //ou setEnvironment('live'); | |
// Créer une transaction | |
try { | |
$transaction = \FedaPay\Transaction::create(array( | |
"description" => "Transaction for [email protected]", | |
"amount" => 2000, |
{ | |
"version": "2020-12-19T12:41:30.720Z", | |
"data": { | |
"Maths": [ | |
{ | |
"name": "Triangles", | |
"TDS": [ | |
{ | |
"name": "Nombres réels", | |
"video": { |
php -d suhosin.executor.include.whitelist=phar composer install | |
php -d suhosin.executor.include.whitelist=phar -d memory_limit=-1 composer install |
# 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 |
$ composer config --global repo.packagist composer https://packagist.org |
########################################################################### | |
# 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]> # | |
########################################################################### |
# 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 |
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 | |
}); |