Skip to content

Instantly share code, notes, and snippets.

View Izumi-kun's full-sized avatar
🍺
hoegaarden

Viktor Khokhryakov Izumi-kun

🍺
hoegaarden
View GitHub Profile
@Izumi-kun
Izumi-kun / Dockerfile
Last active February 14, 2025 11:19
PHP 8.4 on Ubuntu 16.04
FROM ubuntu:16.04
RUN apt update \
&& apt upgrade -y \
&& apt install -y \
sudo \
wget \
build-essential \
software-properties-common \
autoconf \
@Izumi-kun
Izumi-kun / upload.php
Last active February 14, 2016 20:32
Полезные функццции
<?php
/**
* Парсинг заголовков
* @param $rawHeaders
* @return array
*/
public function httpParseHeaders($rawHeaders)
{
$headers = [];
$key = '';
@Izumi-kun
Izumi-kun / die_thrice.php
Last active October 30, 2015 12:52 — forked from sanmai/die_twice.php
If you want to die more than once
<?php
register_shutdown_function(function(){ new one(); });
class one
{
public function __construct()
{
die("DIED ONCE\n");
}