Skip to content

Instantly share code, notes, and snippets.

View mckaygerhard's full-sized avatar
💭
Стойкий мужик I DONT USE GITSHITHUG, use gitlab or gogs or gitea

Герхард PICCORO Lenz McKAY mckaygerhard

💭
Стойкий мужик I DONT USE GITSHITHUG, use gitlab or gogs or gitea
View GitHub Profile
@mckaygerhard
mckaygerhard / server-alpine-NAGIOS-fastforward-alpine3.14.md
Last active October 31, 2024 22:00
Alpine3.14 + Apache2 + Php7 + Nagios4

Alpine3.14 + Apache2 + Php7 + Nagios4

The recommendation its to use apache2 behind a reverse proxy setup, such like lighttpd or hiawatta servers. Check for more at https://venenux.github.io/alpine-wiki.

Warning those are for php 7 (php7) due composer dependencies on alpine 3.14 if you runs newers alpine: 3.19 uses php82, 3.18/3.17 uses php81, 3.16/3.15 uses php8

@mckaygerhard
mckaygerhard / server-alpine-LAMP-fastforward-ospos-alpine-3.14.md
Last active October 31, 2024 02:23
server-alpine-LAMP-fastforward-ospos-alpine-3.14.md

Alpine3.14 + Apache2 + Mysql + Php7 + Ospos3

The recommendation its to use apache2 behind a reverse proxy setup, such like lighttpd or hiawatta servers. Check for more at https://venenux.github.io/alpine-wiki.

Warning those are for php 7 (php7) due composer dependencies on alpine 3.14 if you runs newers alpine: 3.19 uses php82, 3.18/3.17 uses php81, 3.16/3.15 uses php8

@mckaygerhard
mckaygerhard / server-alpine-LAMP-fastforward-ospos-alpine-3.20.md
Last active October 31, 2024 02:23
server-alpine-LAMP-professional-ospos-3.20.md

alpine3.20 + Apache2 + Mysql + Php8 + Ospos4

The recommendation its to use apache2 behind a reverse proxy setup, such like lighttpd or hiawatta servers. Check for more at https://venenux.github.io/alpine-wiki.

Warning those are for php 8.3 (php83) due composer dependencies on alpine 3.20 if you runs olders alpine: 3.19 uses php82, 3.18/3.17 uses php81, 3.16/3.15 uses php8

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* KAI eCRM
*
* 画像操作クラス
*
* @package application
* @author an
* @version 1.0α
* @filesource
@mckaygerhard
mckaygerhard / git_create_orphan.sh
Last active May 3, 2023 14:00 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo, new branch with empty history
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name
@mckaygerhard
mckaygerhard / CI_Date.php
Created August 11, 2017 15:59 — forked from kylefarris/CI_Date.php
Codeigniter Date Library
<?php
class CI_Date {
public $sec_in_min, $min_in_hour, $hr_in_day, $day_in_wk, $sec_in_wk, $sec_in_day, $min_in_wk, $min_in_day, $hr_in_wk;
public function __construct() {
$this->sec_in_min = 60;
$this->min_in_hr = 60;
$this->hr_in_day = 24;
$this->day_in_wk = 7;
$this->day_in_yr = 365;
$this->sec_in_hr = $this->sec_in_min * $this->min_in_hr;
@mckaygerhard
mckaygerhard / gist:e8dac3a65a086914817f
Created April 27, 2015 21:42
ejabberd 2.1.13 2.1.11 timeout error
enhanched the time ... in line https://github.com/processone/ejabberd/blob/2.1.x/src/ejabberd_listener.erl#L44 and test again

Servers with multiple IP addresses

The Courier mail server's default configuration listens on port 25 on all IP addresses. If the server has more than one IP address, Courier accepts connections on any IP address. Adjust the settings in the esmtpd configuration file to explicitly enumerate IP addresses that Courier listens on. This also applies to the ESMTP over SSL server on port 465 configured by esmtpd-ssl, and the MSA server on port 587, configured by