Skip to content

Instantly share code, notes, and snippets.

View MayMeow's full-sized avatar
❄️
Writing bugs, then patching them

May Meow MayMeow

❄️
Writing bugs, then patching them
View GitHub Profile
@MayMeow
MayMeow / Dockerfile
Last active February 11, 2021 11:55
CakePHP PHP-FPM docker image with pgsql and redis
FROM php:fpm
MAINTAINER CakeHub <[email protected]>
RUN requirements="libmcrypt-dev g++ libicu-dev libpq-dev libmcrypt4 libicu52 netcat" \
&& apt-get update && apt-get install -y $requirements \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql \
&& docker-php-ext-install mcrypt \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install intl \
@MayMeow
MayMeow / .gitlab-ci.yml
Created May 25, 2016 17:42
Full Latex Image and Gitlab CI file to generate books with Mathgen.
image: latex-full:latest
variables:
GIT_SSL_NO_VERIFY: "true"
cache:
paths:
- vendor
pages:
@MayMeow
MayMeow / NumberConverter.php
Last active January 15, 2022 08:16
I found this on internet when i need something to shorten link... This is class but its not problem to create cakephp component... (i can post this one too if anyone want it)
<?php
class Converter {
public function convert ($number = null) {
$codeset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$base = strlen($codeset);
$n = $number;
$converted = "";