Skip to content

Instantly share code, notes, and snippets.

View 7rin0's full-sized avatar

SEVERINO, Luis 7rin0

  • Lyon, France
View GitHub Profile
@7rin0
7rin0 / apache2_vhost_config_vuejs_dist
Created June 18, 2018 13:50
VueJS: Apache / Nginx vhost config examples
<VirtualHost *:80>
DocumentRoot "/home/dev/server/project/dist/"
ServerName vuejs.project.local
<Directory /home/dev/server/project/dist/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
Order allow,deny
allow from all
@7rin0
7rin0 / gist:8c1c88a92216d13619c6b4a77f3643c9
Created May 26, 2017 17:22
git config merge.renameLimit 999999
git config merge.renameLimit 999999
git config --unset merge.renameLimit
@7rin0
7rin0 / test_parse_yaml_file.sh
Last active August 20, 2021 09:29
Parse yaml file using php cli and yaml mod
# Requirements: php, php-yaml (pecl extention)
php -r 'echo print_r(yaml_parse_file(__DIR__ . "/app/config/parameters.yml"), 1);'
@7rin0
7rin0 / convert_to_shell_vars.sh
Created March 28, 2017 09:02
Convert key/value pairs to Shell Variables
#!/bin/bash
# Converting environment to bash variables
export $(cat .env | xargs)
@7rin0
7rin0 / install_ldap_server_centos_7.sh
Last active February 24, 2021 04:23
Install LDAP on Centos 7
#!/bin/bash
# Usage
# First create an encrypted password to be used as connection pass
# and pass as a parameter with the script. To create use: slappasswd
# Clean packages
sudo yum clean all
# Install openldap as service manager
sudo yum -y install openldap-servers openldap-clients
@7rin0
7rin0 / gist:ea890d2d4bf25a890b86aff01290e7d0
Created March 3, 2017 01:52
Docker exec root or default user
# Root.
$ docker exec -u 0 i -t {container_id/image_name} bash
or
# Default container's user.
$ docker exec i -t {container_id/image_name} bash
@7rin0
7rin0 / Drupal8_Devel_VarDumper.md
Last active April 18, 2019 11:57
Debug Drupal 8 with VarDumper
@7rin0
7rin0 / print_progress.py
Created January 30, 2019 09:55 — forked from aubricus/License
Python Progress Bar
# -*- coding: utf-8 -*-
# Print iterations progress
def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
@7rin0
7rin0 / arduino_accelerometer_gyroscope_payload.json
Last active October 24, 2018 10:32
arduino_accelerometer_gyroscope_payload.json
[
{
"sp":"bluetooth",
"spn":"ble_demo_hc06",
"sf":"20",
"smn":[
{
"name":"accelerometer_gyroscope",
"data":[
{
@7rin0
7rin0 / cakephp2.conf
Created July 26, 2018 17:17 — forked from pasela/cakephp2.conf
nginx configuration example for CakePHP 2.x
#
# nginx configuration example for CakePHP 2.x
#
server {
listen 80;
server_name cakephp2.example;
root /var/www/cakephp2/app/webroot;
access_log /var/log/nginx/cakephp2.access.log;
error_log /var/log/nginx/cakephp2.error.log;