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
<?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