Skip to content

Instantly share code, notes, and snippets.

View MayMeow's full-sized avatar
❄️
😏📚🐈🧐💬👑🌙💼🌸😑

May Meow MayMeow

❄️
😏📚🐈🧐💬👑🌙💼🌸😑
View GitHub Profile
@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 = "";
@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 / 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 \

Keybase proof

I hereby claim:

  • I am maymeow on github.
  • I am maymeow (https://keybase.io/maymeow) on keybase.
  • I have a public key ASAxIycd_OqFuSqd6MB_qNDMwedVIO3b94-yqla6NNm2vQo

To claim this, I am signing this object:

@MayMeow
MayMeow / mattermost.json
Created February 6, 2018 19:39
Rainglow's Warlock high contrast inspired mattermost theme
{"sidebarBg":"#221934","sidebarText":"#ffffff","sidebarUnreadText":"#ffffff","sidebarTextHoverBg":"#291e3e","sidebarTextActiveBorder":"#f46036","sidebarTextActiveColor":"#ffffff","sidebarHeaderBg":"#221934","sidebarHeaderTextColor":"#ffffff","onlineIndicator":"#f9ac97","awayIndicator":"#9eb7cd","dndIndicator":"#cf433e","mentionBj":"#5b85aa","mentionColor":"#5867dd","centerChannelBg":"#171123","centerChannelColor":"#ffffff","newMessageSeparator":"#9816f4","linkColor":"#9559c6","buttonBg":"#9559c6","buttonColor":"#ffffff","errorTextColor":"#f4516c","mentionHighlightBg":"#ffb822","mentionHighlightLink":"#ffffff","codeTheme":"monokai","mentionBg":"#5b85aa"}
@MayMeow
MayMeow / list.sh
Created April 11, 2018 12:54 — forked from rwjblue/list.sh
List account and distribution list details in Zimbra
sudo su - zimbra
# list all accounts and print out account name and aliases
for i in `zmprov -l gaa` ; do zmprov ga $i zimbraMailAlias ; done
# list all distribution lists and any members and/or aliases
for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done
<?php
namespace MayMeow\Cake\Bl\Service;
use Cake\Core\ObjectRegistry;
trait ServiceAvareTrait
{
protected $serviceLocator;
@MayMeow
MayMeow / keybase.md
Created April 2, 2019 07:33 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

@MayMeow
MayMeow / CreateDefaultUser.php
Last active August 20, 2019 20:05
Creating default users and groups
<?php
use Migrations\AbstractMigration;
class CreateDefaultUser extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-change-method
@MayMeow
MayMeow / ApplicationUser.php
Last active September 6, 2019 12:11
Users -> Profiles
<?php
namespace PostBox\Model\Entity;
use Identity\Model\Entity\User;
/**
* Class ApplicationUser
* @package PostBox\Model\Entity
*