Skip to content

Instantly share code, notes, and snippets.

@zawyelwin
zawyelwin / bootstrap-custom-columns.css
Created March 25, 2020 08:14 — forked from FirstVertex/bootstrap-custom-columns.css
Bootstrap Grid with column widths in 10ths and 8ths
/* custom bootstrap grid by Hugh Anderson */
.col-xs-110 { width: calc(100% / 10) } /* 1/10 */
.col-xs-18 { width: calc(100% / 8) } /* 1/8 */
.col-xs-15 { width: calc(100% / 5) } /* 1/5 */
.col-xs-38 { width: calc(300% / 8) } /* 3/8 */
.col-xs-310 { width: calc(300% / 10) } /* 3/10 */
.col-xs-25 { width: calc(200% / 5) } /* 2/5 */
.col-xs-35 { width: calc(300% / 5) } /* 3/5 */
.col-xs-58 { width: calc(500% / 8) } /* 5/8 */
@zawyelwin
zawyelwin / scale.sh
Last active April 5, 2020 10:42
Scale all deployment under a namespace
for i in $(kubectl get deploy -n namespace | awk '{print $1}'); do kubectl scale --replicas=1 deploy -n namespace $i; done
@zawyelwin
zawyelwin / Dockerfile
Last active November 16, 2019 19:16
Simple Laravel Dockerfile
FROM php:7.2.2-fpm
RUN apt-get update -y && apt-get install -y libmcrypt-dev openssl
RUN docker-php-ext-install pdo mbstring
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-install pdo mbstring
WORKDIR /app
COPY . /app
RUN composer install
CMD php artisan serve --host=0.0.0.0 --port=8000
@zawyelwin
zawyelwin / Git push deployment in 7 easy steps.md
Created July 20, 2018 04:59 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook