Skip to content

Instantly share code, notes, and snippets.

View ramasofficial's full-sized avatar

Ramas Win ramasofficial

  • Lithuania
View GitHub Profile
@ramasofficial
ramasofficial / meta-tags.md
Created June 30, 2023 09:41 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@ramasofficial
ramasofficial / deploy.sh
Created January 13, 2023 21:50 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master
@ramasofficial
ramasofficial / php-docker-ext
Created September 28, 2022 19:55 — 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/
@ramasofficial
ramasofficial / class-naming-convention.md
Created May 31, 2021 10:44 — forked from whizark/class-naming-convention.md
HTML/CSS Class Naming Convention #html #css #sass
@ramasofficial
ramasofficial / app.php
Created June 1, 2018 08:27
Simple way: How to get not working days in month
<?php
public function getDays($post_data)
{
$DaysInMonth = cal_days_in_month(CAL_GREGORIAN, $post_data['month'], $post_data['year']);
/*$NotWorkingDays = [
'01-01', '02-16', '03-11', '04-01', '04-02', '05-01', '05-06', '06-03', '06-24', '07-06', '08-15', '11-01', '12-24', '12-25', '12-26',
];*/
$NotWorkingDays = [
'1-1', '2-16', '3-11', '4-1', '4-2', '5-1', '5-6', '6-3', '6-24', '7-6', '8-15', '11-1', '12-24', '12-25', '12-26',