Skip to content

Instantly share code, notes, and snippets.

Boris KOUMONDJI brexis

Block or report user

Report or block brexis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9e5eb4e0019774691bd3d8f69515c598
php -d suhosin.executor.include.whitelist=phar composer install
php -d suhosin.executor.include.whitelist=phar -d memory_limit=-1 composer install
@brexis
brexis / schema.sql
Created Oct 28, 2017
Radius Mysql schema.sql
View schema.sql
###########################################################################
# 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 <mike@innercite.com> #
###########################################################################
View elasticsearch image dokku
# 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
View gist:4ca65c3e96016ded81286a174252b376
$ composer config --global repo.packagist composer https://packagist.org
@brexis
brexis / laravel5_shared_hosting_project.sh
Created Mar 4, 2016 — forked from meganlkm/laravel5_shared_hosting_project.sh
setup a laravel5 project to deploy to a shared hosting provider
View laravel5_shared_hosting_project.sh
#!/bin/bash
myproject='myproject'
mywww='public_html'
# initialize project
composer create-project laravel/laravel $myproject --prefer-dist
cd $myproject
# fix paths to public
@brexis
brexis / ssl_puma.sh
Created Jan 22, 2016 — forked from tadast/ssl_puma.sh
localhost SSL with puma
View ssl_puma.sh
# 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
@brexis
brexis / GIF-Screencast-OSX.md
Last active Aug 29, 2015 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@brexis
brexis / gist:0018f3a3921b6816c7a6
Created Jun 12, 2015
Image to dataurl Node.js
View gist:0018f3a3921b6816c7a6
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
});
@brexis
brexis / Application.php
Created Jul 5, 2014
Fixe Netbeans console interactive in Symfony >= 2.3
View Application.php
//File vendor/symfony/symfony/src/Symfony/Component/Console
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
You can’t perform that action at this time.