Skip to content

Instantly share code, notes, and snippets.

View alexandreteles's full-sized avatar
😶‍🌫️
Currently merging my multiple identities

Alexandre Teles (afterSt0rm) alexandreteles

😶‍🌫️
Currently merging my multiple identities
View GitHub Profile
@alexandreteles
alexandreteles / MariaDB.repo
Created May 30, 2014 20:14
MariaDB 10.x series yum repo file
# MariaDB 10.0 CentOS repository list - created 2014-05-30 20:12 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-x86
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
@alexandreteles
alexandreteles / httpd.conf
Last active August 29, 2015 14:02
Default httpd.conf for InstallLAAMPP.sh script
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
@alexandreteles
alexandreteles / optimal.conf
Last active August 29, 2015 14:02
Optimal configuration for apache2
# Based on: Apache Server Configs v1.1.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# Set default index files for directories
# https://httpd.apache.org/docs/current/mod/mod_dir.html
DirectoryIndex index.html index.htm index.php default.html default.htm default.php
# ##############################################################################
# # CROSS-ORIGIN RESOURCE SHARING (CORS) #
# Default Host - Configuration
# ============================
# Here the variable principals of the program are defined in respect
# to the configuration of the different types of directives.
[HOST]
# ServerName:
# -----------
# Allow you to set a host and domain name (e.g monkey.linuxchile.cl). If
# you are working in a local network just set your IP address or if you
[FASTCGI_SERVER]
ServerName php5-fpm
ServerPath /var/run/php5-fpm.sock
MaxConnections 20
[FASTCGI_LOCATION]
LocationName php5_location
ServerNames php5-fpm
KeepAlive On
Match .*\.php
[FASTCGI_SERVER]
ServerName php5-fpm
ServerPath /var/run/php5-fpm.sock
MaxConnections 20
[FASTCGI_LOCATION]
LocationName php5_location
ServerNames php5-fpm
KeepAlive On
Match .*\.php
[mysqld]
log-error = /var/log/mysql/mariadb_err.log
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
@alexandreteles
alexandreteles / backupTools.sh
Created January 13, 2015 22:55
backupTools.sh - A Script to install etckeeper and bup
#!/bin/sh
yum update -y
yum localinstall http://mirror.globo.com/epel/6/i386/epel-release-6-8.noarch.rpm -y
yum update -y
MACHINE_TYPE=`getconf LONG_BIT`
if [ ${MACHINE_TYPE} == '64' ]; then
yum localinstall http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm -y
@alexandreteles
alexandreteles / functions.sh
Created March 25, 2015 14:58
Wrappers for Pandoc and Tidy-html5
corrigiridt () {
echo "Uso: corrigiridt arquivo.html";
tidy5 --indent yes -m -w 160 -utf8 -ashtml --drop-empty-elements no --drop-empty-paras no $1
}
gerarhtml5 () {
echo "Uso: gerarhtml5 pandoc.template header.html footer.html origem distino";
pandoc -S --template=$1 -B $2 -A $3 -f markdown -t html5 -s $4 -o $5;
}
@alexandreteles
alexandreteles / jokes.txt
Last active August 9, 2020 05:06
108 One-Liner Jokes As Punny As They Are Funny
I can’t believe I got fired from the calendar factory: all I did was take a day off!
|
Money talks: mine always says goodbye.
|
I went to see the doctor about my short-term memory problems — the first thing he did was make me pay in advance.
|
You have two parts of the brain, “left” and “right” — in the left side, there’s nothing right and in the right side, there’s nothing left.
|
Why do bees hum? They don’t remember the lyrics!
|