Skip to content

Instantly share code, notes, and snippets.

View vmintam's full-sized avatar

Vũ Minh Tâm ( Killua ) vmintam

View GitHub Profile
{"done": "1"}
@vmintam
vmintam / 00_copy_key.lua
Created September 6, 2019 08:49 — forked from itamarhaber/00_copy_key.lua
The fastest, type-agnostic way to copy a Redis key, as discussed in https://redislabs.com/blog/the-7th-principle-of-redis-we-optimize-for-joy
-- @desc: The fastest, type-agnostic way to copy a Redis key
-- @usage: redis-cli --eval copy_key.lua <source> <dest> , [NX]
local s = KEYS[1]
local d = KEYS[2]
if redis.call("EXISTS", d) == 1 then
if type(ARGV[1]) == "string" and ARGV[1]:upper() == "NX" then
return nil
else
@vmintam
vmintam / php-docker-ext
Created April 6, 2019 12:02 — forked from hoandang/php-docker-ext
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
@vmintam
vmintam / golang_job_queue.md
Created November 26, 2016 10:59 — forked from harlow/golang_job_queue.md
Job queues in Golang