Skip to content

Instantly share code, notes, and snippets.

View carlwgeorge's full-sized avatar

Carl George carlwgeorge

View GitHub Profile
# dnf --allowerasing install mariadb100u-server
Using metadata from Fri Feb 19 14:05:17 2016
Dependencies resolved.
================================================================================
 Package               Arch      Version                       Repository  Size
================================================================================
Installing:
 jemalloc              x86_64    3.6.0-1.el7                   epel       105 k
 mariadb100u           x86_64    1:10.0.23-2.ius.centos7       ius        9.9 M
# yum swap -- erase mariadb-libs -- install mariadb100u-{libs,server}
Loaded plugins: fastestmirror, langpacks, replace
Loading mirror speeds from cached hostfile
 * base: mirror.us.leaseweb.net
 * epel: mirror.symnds.com
 * extras: mirror.us.leaseweb.net
 * ius: iad.mirror.rackspace.com
 * updates: mirror.us.leaseweb.net
Resolving Dependencies
# yum replace mariadb-libs --replace-with mariadb100u-server
Loaded plugins: fastestmirror, langpacks, replace
Replacing packages takes time, please be patient...
Loading mirror speeds from cached hostfile
 * base: mirror.us.leaseweb.net
 * epel: mirror.symnds.com
 * extras: mirror.us.leaseweb.net
 * ius: iad.mirror.rackspace.com
 * updates: mirror.us.leaseweb.net

partitioning

parted -s /dev/sda mklabel gpt
parted -s /dev/sda mkpart - 2048s 1050623s
parted -s /dev/sda set 1 boot on
parted -s /dev/sda mkpart - 1050624s 100%

filesystems

mkfs.vfat -F32 -n BOOT /dev/sda1
@carlwgeorge
carlwgeorge / ius-mysql-upgrade.md
Created April 7, 2016 18:12
breakdown of scriptlet ordering when upgrading from mysql56u-server to mysql57u-server
  1. %pre of mysql57u-server
    • groupadd mysql
    • useradd mysql
  2. installation of mysql57u-server
  3. %post of mysql57u-server
    • chkconfig --add mysqld
  4. %preun of mysql56u-server
    • service mysqld stop
    • chkconfig --del mysqld
  5. removal of mysql56u-server
@carlwgeorge
carlwgeorge / php7-module-tracker.md
Last active November 23, 2016 20:52
upstream status of PHP7 module compatibility
#!/bin/sh
#
# mysqld This shell script takes care of starting and stopping
# the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description: MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid
import re
import requests
from packaging.version import LegacyVersion
_default_pattern = '(?i){}[-_]([^-/_\s]+?)\.(?:t(?:ar\.)?(?:[bglx]z|bz2?)|zip)'
def get_all(url=None, name=None, pattern=None):
"""Return all upstream versions."""
$ rhelish mod_security
+---------+----------------+
| BRANCH | VERSION |
+---------+----------------+
| el5 | None |
| el6 | None |
| el7 | 0:2.7.3-5.el7 |
| epel5 | 0:2.6.8-6.el5 |
| epel6 | 0:2.7.3-3.el6 |
| epel7 | None |

current setup:

/var/log/php-fpm/       <-- php-fpm:php-fpm 770
├── error.log           <-- root:root 600
└── www-error.log       <-- php-fpm:php-fpm 644
/var/log/php-fpm/*log {
    missingok
    notifempty