Skip to content

Instantly share code, notes, and snippets.

View zakriyarahman's full-sized avatar
🎯
Focusing

Zak Sharief zakriyarahman

🎯
Focusing
View GitHub Profile
@zakriyarahman
zakriyarahman / Dockerfile
Created July 8, 2021 15:38 — forked from evansims/Dockerfile
Dockerfile: php-fpm 7.4-fpm alpine w/ gd bz2 intl mbstring redis mongodb xdebug opcache
FROM php:7.4-fpm-alpine
WORKDIR "/application"
# Install essential build tools
RUN apk add --no-cache \
git \
yarn \
autoconf \
g++ \
make \
@zakriyarahman
zakriyarahman / gist:d3c7f102d0c23f1310ff780673fb8673
Created March 22, 2020 21:40
Determine if a column needs indexing in a relational database.
- Does the column have a particular set of specific values? Will the column have values that will occur more than once.
- Is the table a read intensive or write intensive. Does the table anticipate more read or write operations?
If a table is read intensive then it is possible for the column to be indexed.
@zakriyarahman
zakriyarahman / gist:b39199918e776bea367dc2aa1bfdf3f2
Created July 10, 2018 02:55 — forked from davepoon/gist:4371622
Added the .gitignore, and refresh the file index so the files get ignored properly.
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"