Skip to content

Instantly share code, notes, and snippets.

View Irvyne's full-sized avatar

Thibaud BARDIN Irvyne

  • Devoteam
  • Paris, France
View GitHub Profile
@Irvyne
Irvyne / mariadb.list
Last active April 16, 2018 14:47
Extra repository for MariaDB "/etc/apt/sources.list.d/mariadb.list" on Debian 9 Stretch.
deb [arch=amd64,i386,ppc64el] http://mariadb.mirrors.ovh.net/MariaDB/repo/10.2/debian stretch main
deb-src http://mariadb.mirrors.ovh.net/MariaDB/repo/10.2/debian stretch main
@Irvyne
Irvyne / .bash_aliases
Created April 16, 2018 14:43
Default ~/.bash_aliases for a newly created server.
alias l='ls -ACFlh'
@Irvyne
Irvyne / php-fpm.ini
Last active April 18, 2018 13:09
Default configuration for "fpm/conf.d/php.ini"
date.timezone=Europe/Paris
memory_limit=256M
post_max_size=512M
upload_max_filesize=256M
@Irvyne
Irvyne / php-cli.ini
Last active April 15, 2018 21:42
Default configuration for "cli/conf.d/php.ini"
date.timezone=Europe/Paris
max_execution_time=0
var fezfzef = "zefzef"
#!/usr/bin/env bash
printf "worker_processes %s\n" "$(grep processor /proc/cpuinfo | wc -l)"
printf "worker_connections %s\n" "$(ulimit -n)"
printf ""

Generate SSL certificate

#!/usr/bin/env bash
# Version 0.0.4
##########
# Config #
##########
red=`tput setaf 1`
green=`tput setaf 2`
@Irvyne
Irvyne / osx-autoconnect.sh
Created July 23, 2015 09:51
Autoconnect as root when ur logged as Guets account
#!/bin/bash
echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s
@Irvyne
Irvyne / osx-nginx-pma.conf
Last active August 29, 2015 14:15
Configure Nginx conf file on MAC OSX
server {
listen 80;
server_name phpmyadmin.dev;
root /Users/irvyne/www/phpMyAdmin;
index index.php;
location / {
try_files $uri $uri/ =404;
}