Skip to content

Instantly share code, notes, and snippets.

View Xerkus's full-sized avatar
:octocat:
Open Sourcing!

Aleksei Khudiakov Xerkus

:octocat:
Open Sourcing!
View GitHub Profile
@Xerkus
Xerkus / Makefile
Last active November 29, 2023 16:06
Full build log for php 8.3.0 on centos 8. For https://github.com/php/php-src/issues/12774
srcdir = /tmp/php-build/source/8.3.0
builddir = /tmp/php-build/source/8.3.0
top_srcdir = /tmp/php-build/source/8.3.0
top_builddir = /tmp/php-build/source/8.3.0
EGREP = /usr/bin/grep -E
SED = /usr/bin/sed
CONFIGURE_COMMAND = './configure' '--with-config-file-path=/tmp/php-build-test-20231124174343/8.3.0/etc' '--with-config-file-scan-dir=/tmp/php-build-test-20231124174343/8.3.0/etc/conf.d' '--prefix=/tmp/php-build-test-20231124174343/8.3.0' '--libexecdir=/tmp/php-build-test-20231124174343/8.3.0/libexec' '--datadir=/tmp/php-build-test-20231124174343/8.3.0/share/php' '--mandir=/tmp/php-build-test-20231124174343/8.3.0/share/man' '--enable-sockets' '--enable-exif' '--with-zlib' '--with-zlib-dir=/usr' '--with-bz2' '--enable-intl' '--with-openssl' '--enable-soap' '--enable-xmlreader' '--with-xsl' '--enable-ftp' '--enable-cgi' '--with-curl=/usr' '--with-tidy' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-pdo-sqlite' '--enable-pcntl' '--with-readline'
@Xerkus
Xerkus / gist:3840496
Last active November 24, 2023 00:21
Mime and mail related RFCs

Mime and mail related RFCs

  1. RFC 1847 Security Multiparts for MIME: Multipart/Signed and Multipart/Encrypted
  2. RFC 2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
  3. RFC 2046 Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
  4. RFC 2047 Multipurpose Internet Mail Extensions (MIME) Part Three: Message Header Extensions for Non-ASCII Text
  5. RFC 2049 Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples
  6. RFC 2076 Common Internet Message Headers
  7. RFC 2183 Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field
@Xerkus
Xerkus / gitcheats.txt
Created June 11, 2019 20:33 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# get a list of all commit messages for a repo
git log --pretty=format:'%s'
# find the nearest parent branch of the current git branch
git show-branch -a | grep '\*' | grep -v `git rev-parse --abbrev-ref HEAD` | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'
# push changes to an empty git repository for the first time
@Xerkus
Xerkus / passgen
Last active March 17, 2019 05:23
password generation command and shell script for creating hash based deterministic passwords from master password and string, eg: `passgen string 16`
head -c 500 /dev/urandom | tr -dc a-z0-9 | head -c 32; echo
@Xerkus
Xerkus / gist:0c348fb343193eae8a998b3805d4fc21
Created June 27, 2018 09:21
Check docker image top layer changes with overlay2 fs
sudo tree "$(sudo docker inspect --format '{{.GraphDriver.Data.UpperDir}}' <image>)"
@Xerkus
Xerkus / files-first.php
Last active March 14, 2018 09:16
find . -type f | ../test.php
#!/usr/bin/env php
<?php
$input = stream_get_contents(fopen("php://stdin", "r"));
$files = explode("\n", $input);
$treeFiles = [];
foreach ($files as $file) {
if (empty($file)) {
continue;
}
<?php
namespace SpeckCatalog\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class ProductController extends AbstractActionController
{
protected $services = array(
<?php
$subSelect = new Select();
$subSelect
->from(['head_parent' => $this->config->getTable()])
->columns([])
->join(
['parent' => $this->config->getTable()],
new Expression(
'?.? >= ?.? AND ?.? < ?.?',
@Xerkus
Xerkus / Module.php
Last active February 26, 2017 19:05
<?php
/**
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Application;
use Zend\Mvc\ModuleRouteListener;

Keybase proof

I hereby claim:

  • I am Xerkus on github.
  • I am xerkus (https://keybase.io/xerkus) on keybase.
  • I have a public key whose fingerprint is 0685 C1EA 2A75 2A47 F205 1D9A 1C2A 28CA 4BA0 08D8

To claim this, I am signing this object: